-
Notifications
You must be signed in to change notification settings - Fork 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
OpenAI extension: Does not respect default_model setting #19346
Comments
OK, looks like I missed configuring the I'm now getting a error re: the ResponseStreamResult — the zed log doesn't give me any output to debug with that I can see:
|
Can you try your |
@notpeter Doesn't work (as expected) — Note that:
Is there an easy way to log the response body that the zed/crates/open_ai/src/open_ai.rs Lines 363 to 392 in 781fff2
|
Apologies, I was thinking of our Anthropic API which confusingly appends the v1: zed/crates/anthropic/src/anthropic.rs Line 159 in 92c29be
To confirm, is there anything notable in the Zed log ( My recommendation is to make a dev build and add some If you can't figure it out, in the coming days I'll try to standup a similar CF setup an see if I can reproduce or get things working. |
Let me sprinkle some debug! macros throughout and see why the response
isn’t matching the struct.
Will report back.
…On Sun, Oct 20, 2024 at 10:31 Peter Tripp ***@***.***> wrote:
Apologies, I was thinking of our Anthropic API which confusingly appends
the v1:
https://github.com/zed-industries/zed/blob/92c29be74cc2ac09dfe0d71d5a1048121b6ab4c6/crates/anthropic/src/anthropic.rs#L159
To confirm, is there anything notable in the Zed log (
~/Library/Logs/Zed/Zed.log)?
My recommendation is to make a dev build and add some dbg!() statements.
It's pretty easy to get a dev environment setup, a few pre-reqs and and
then cargo run -- project_dir and away you go.
https://zed.dev/docs/development/macos
If you can't figure it out, in the coming days I'll try to standup a
similar CF setup an see if I can reproduce or get things working.
—
Reply to this email directly, view it on GitHub
<#19346 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEQ4AULVFZIVL7OHXTWM3Z4O5FNAVCNFSM6AAAAABQDEMCL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVGAYTINZQGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Check for existing issues
Describe the bug / provide steps to reproduce it
Summary: Attempting to override the
default_model
does not apply when using theopenai
provider - it continues to attempt to set the model asgpt-3.5-turbo
.Repro:
default_model
for the OpenAI providerapi_url
gpt-3.5-turbo
model instead of the"@cf/meta/llama-3.2-3b-instruct"
model set inassistant.default_model.model
insettings.json
.Note: I work at Cloudflare and thus was able to see the request our API infra accepted (and rejected due to the model mismatch).
I can see that the model should be passed per https://github.com/zed-industries/zed/blob/main/crates/open_ai/src/open_ai.rs#L159 and https://github.com/zed-industries/zed/blob/main/crates/open_ai/src/open_ai.rs#L306-L312 but can't see where it the settings override is getting reset/ignored.
Relevant
settings.json
Environment
Zed: v0.156.2 (Zed)
OS: macOS 14.7.0
Memory: 32 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
Assistant error:
Model selection resets/never includes the default model I set:
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: