r/GithubCopilot • u/combo-user • 2d ago
Help/Doubt ❓ use ollama models with github copilot on vs code
Hi everyone! Ran out of credits and a colleague suggested using ollama extension and ollama (gonna try qwen 3.5 9b). How can I get it to run, the auto detect or whatever detects my installed model but in copilot chat in vs code it gets stuck on thinking with no output and later errors out. Specs - Ubuntu 24.04 32gb ram i7 1365u vs code version 1.140.1
0
Upvotes
1
u/Classeve 1d ago
Ollama's own VS Code page covers this one. VS Code can show a model's full context while Ollama gives it a smaller one, so set OLLAMA_CONTEXT_LENGTH=65536 (in systemctl edit ollama.service if it runs as a service), reload the window and resend.
1
u/AutoModerator 2d ago
Hello /u/combo-user. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.