Open sltelitsyn opened 6 months ago
It works fine with http://IP:11434/v1/chat/completions endpoint, but chat history isn't being sent in that case.
2 URLs are available:
If you change CodeGPT to /api/chat you will see a blue Test Connection but an Unknown API response
, so CodeGPT doesn't implement that API, only /v1/chat/completions.
It doesn't look like a bug, but a feature request 😉
I have the same problem. I try to connect to this endpoint http://localhost:11434/v1/chat/completions
but I get a 404 error POST "/v1/chat/completions/completion"
. You can see that the plugin adds completion
that doesn't match with API. Is there any way to suppress this addition?
2 URLs are available:
- http://localhost:11434/api/chat (GUI Client uses this)
- http://localhost:11434/v1/chat/completions (CodeGPT uses this)
If you change CodeGPT to /api/chat you will see a blue Test Connection but an
Unknown API response
, so CodeGPT doesn't implement that API, only /v1/chat/completions. It doesn't look like a bug, but a feature request 😉
The issue is that it was unclear. I had to make trial and error to find a correct setting. Anyways, I'll change a type to Feature request. Thank you for the response.
UPD: or I guess, I can't.
Ollama provides an OpenAI-compatible chat completions endpoint, which can be configured in the Custom OpenAI Service configuration panel.
What happened?
Unknown API response. Code: 200, Body: {"model":"deepseek-coder:33b-instruct","created_at":"2024-04-04T18:08:49.964872346Z","message":{"role":"assistant","content":"As an AI developed by JetBrains, I have a variety of capabilities including but not limited to:\n\n1. Code Generation
Relevant log output or stack trace
Steps to reproduce
CodeGPT version
2.5.1
Operating System
macOS