Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong HTTP Verb (GET) when OpenAI API URL ends with / #172

Open
schniggie opened this issue Jul 14, 2024 · 0 comments
Open

Wrong HTTP Verb (GET) when OpenAI API URL ends with / #172

schniggie opened this issue Jul 14, 2024 · 0 comments

Comments

@schniggie
Copy link

I run into the following issue, which feels like a bug. When adding a custom provider/model, eg. ollama, the OpenAI API url MUST NOT end with a /. If the URL ends with a /, plandex-server will try to communicate wth a GET request, which will fail on OpenAPI-comptabile APIs.

Example:

API: http://localhost:11434/v1/
Results in GET http://localhost:11434/v1/v1/chat/completions and this gives a 404

API: http://localhost:11434/v1
Results in POST http://localhost:11434/v1/v1/chat/completions and this works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant