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 ed1ef78 commit 160e8edCopy full SHA for 160e8ed
aiscript-vm/src/ai/mod.rs
@@ -49,9 +49,9 @@ pub(crate) fn openai_client() -> OpenAIClient {
49
50
pub(crate) fn default_model() -> &'static str {
51
if env::var("OPENAI_API_KEY").is_ok() {
52
- return GPT3_5_TURBO;
+ GPT3_5_TURBO
53
} else if env::var("DEEPSEEK_API_KEY").is_ok() {
54
- return DEEPSEEK_CHAT;
+ DEEPSEEK_CHAT
55
} else {
56
panic!("No API key found.");
57
}
0 commit comments