continue icon indicating copy to clipboard operation
continue copied to clipboard

Header is not defined error

Open jingwanha opened this issue 1 year ago • 6 comments

Before submitting your bug report

Relevant environment info

HOST OS: Window
SERVER OS : Ubuntu
Continue: v0.9.41
IDE: VSCode 1.80.1

Description

I run codellama7b on docker(ollama) on ubuntu server. Then, try to use in vscode with continue on window

When I run the command, an error message saying "header is not defined" like below attached image

err_msg

To reproduce

No response

Log output

No response Uploading err_msg.jpg…

jingwanha avatar Feb 01 '24 09:02 jingwanha

@jingwanha would you mind clicking the "Show Logs" button and sharing the full error that appears in the console? It would also help me debug if you could share your config.json.

sestinj avatar Feb 01 '24 21:02 sestinj

@sestinj This is error page of "Show Logs" log Uploading log.jpg…

And, this is config information. ` { "allowAnonymousTelemetry": false, "models": [ { "title": "codellama_7b", "provider": "ollama", "model": "codellama:7b", "apiBase": "http://172.21.62.50.12:18819" } ], "embeddingsProvider": { "provider": "ollama", "model":"codellama:7b", "apiBase": "http://172.21.62.50.12:18819"

}, "slashCommands": [ { "name": "edit", "description": "Edit selected code" }, { "name": "comment", "description": "Write comments for the selected code" }, { "name": "share", "description": "Download and share this session" }, { "name": "cmd", "description": "Generate a shell command" } ], "customCommands": [ { "name": "test", "prompt": "Write 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" } ], "contextProviders": [ { "name": "diff", "params": {} }, { "name": "open", "params": {} }, { "name": "terminal", "params": {} }, { "name": "problems", "params": {} }, { "name": "codebase", "params": {} } ] } `

jingwanha avatar Feb 02 '24 02:02 jingwanha

@jingwanha Try upgrading Visual Studio Code to the latest version. I encountered the same error, and it was resolved after upgrading.

unreal-wind avatar Feb 02 '24 08:02 unreal-wind

@jingwanha everything in your config looks correct, so I do think that unreal-wind's suggestion is probably the solution. Let me know if not!

sestinj avatar Feb 02 '24 17:02 sestinj

@unreal-wind @sestinj Thanks for your help. I updated both vscode and continue plugin versions, but I'm still getting the error. (VSCODE : 1.80.1 -> 1.86.0) (Continue Plugin : v0.9.41 -> v0.9.43)

error show_logs

jingwanha avatar Feb 05 '24 02:02 jingwanha

@jingwanha Try upgrading Visual Studio Code to the latest version. I encountered the same error, and it was resolved after upgrading.

works like a charm.

Neutrino1998 avatar Apr 23 '24 09:04 Neutrino1998