-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VertexAi Codestral autocompletion response undefined #3595
Comments
I am also experiencing the same issue on MacOS. Codestral works as expected when invoked using the MistralGoogleCloud python library and running code locally, or within a Colab runtime environment within GCP. Other VertexAI models work as expected. I do not see anything interesting in the GCP Project Audit logs for either successful calls to Gemini VertexAI models or unsuccessful calls to codestral. This issue occurs in both the release and prerelease 0.8.66 versions of continue To Reproduce
Relevant environment info
Log Output:
|
Same error:
|
Also bumping into this on Continue v0.8.66 on VSCode. However the issue seems related to #3303 . The discussions may be consolidated into 1 issue? |
same here |
Same here (windows) Continue Version 0.9.259 on VSCode |
I've performed the following test to figure out where those undefined values are coming from: curl \
-X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
"https://us-central1-aiplatform.googleapis.com/v1/projects/[REDACTED]/locations/us-central1/publishers/mistralai/models/codestral-2501:streamRawPredict" \
--data '{
"model": "codestral-2501",
"max_tokens": 4096,
"temperature": 0.01,
"stop": [
"[PREFIX]",
"[SUFFIX]",
"/src/",
"#- coding: utf-8",
"```"
],
"stream": true,
"prompt": "[SUFFIX] ",
"suffix": "[SUFFIX] 123 ",
"top_p" : 0.2
}' It outputs something like:
Line 87 in af175c6
and Line 43 in af175c6
but continue/core/llm/llms/VertexAI.ts Line 340 in af175c6
So |
I've added a fix for this in my PR here: #4016 |
Before submitting your bug report
Relevant environment info
Description
Setup is working but it seems the autocomplete answer from gcp is mangled.
To reproduce
Use autocomplete with the given settings.
Log output
The text was updated successfully, but these errors were encountered: