CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

Problems with code completion using custom openai service (ollama)

Open samyIO opened this issue 1 year ago • 1 comments

What happened?

In Pycharm 2023.3.4 i get an error message for every key i press when writing code. msg-too-short

here are the configs i use:

completion

Any idea?

Relevant log output or stack trace

No response

Steps to reproduce

No response

CodeGPT version

2.6.3-233

Operating System

Windows

samyIO avatar Apr 25 '24 15:04 samyIO

You can not use the /v1/chat/completions API of Ollama for code-completions, you would need an OpenAI compatible /v1/completions API, which Ollama does not yet include. https://github.com/carlrobertoh/CodeGPT/pull/510 will introduce Ollama as a high-level service and enable code-completions with the native Ollama API. Same problem as in https://github.com/carlrobertoh/CodeGPT/issues/517

Crustack avatar Apr 27 '24 15:04 Crustack