We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4332215 commit a836820Copy full SHA for a836820
1 file changed
aiscript-vm/src/ai/mod.rs
@@ -33,11 +33,9 @@ pub(crate) fn openai_client() -> OpenAIClient {
33
}
34
35
pub(crate) fn default_model() -> &'static str {
36
- if env::var("OPENAI_API_KEY").is_ok() {
37
- GPT3_5_TURBO
38
- } else if env::var("DEEPSEEK_API_KEY").is_ok() {
+ if env::var("DEEPSEEK_API_KEY").is_ok() {
39
DEEPSEEK_CHAT
40
} else {
41
- panic!("No API key found.");
+ GPT3_5_TURBO
42
43
0 commit comments