Ollama models use json output format
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: macOS
- Continue version: dev branch
- IDE version: 1.95 insider
- Model: all ollama models
- config.json:
Description
https://github.com/continuedev/continue/blob/694a044a608e0700cab027dec9ad580f111a234a/core/llm/llms/Ollama.ts#L248 forces the model to output json
To reproduce
No response
Log output
No response
removing the line fixes it
My ollama models recently stopped working and my tabAutoCompletion only suggests "{" anymore. I think this might be the cause. This renders the autocompletion unusable.
Just confirmed. I have the same config.json file for IntelliJ and VS Code.
In VSCode, I get meaningful autocomplete suggestions. In IntelliJ, I just see "{".
I am on the latest Continue@IntelliJ 0.0.79 running on IntelliJ Ultimate 2024.2.4
I'm also experiencing this bug on IntelliJ.
Continue@IntelliJ 0.0.79 running on IntelliJ Ultimate 2024.2.4
every chat response I get is in Json format.
It also often only prints part of the response.
Relevant Environment information:
- OS: Ubuntu
- Continue version: 0.0.79
- IDE version: IntelliJ Ultimate 2024.2.4
- Model: all ollama models
- config.json:
{
"models": [
{
"title": "Llama 3",
"provider": "ollama",
"model": "llama3"
},
{
"title": "Phi3",
"provider": "ollama",
"model": "phi3"
}
],
"customCommands": [
{
"name": "test",
"prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
"description": "Write unit tests for highlighted code"
}
],
"tabAutocompleteModel": {
"title": "Starcoder 3b",
"provider": "ollama",
"model": "starcoder2:3b"
},
"allowAnonymousTelemetry": true,
"embeddingsProvider": {
"provider": "transformers.js"
}
}
@kohlerm good find 0.79 is broken for a couple issues, we're gonna hide it
Fixed by https://github.com/continuedev/continue/pull/2759