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 8d816ef commit 4332215Copy full SHA for 4332215
aiscript-vm/src/ai/mod.rs
@@ -34,9 +34,9 @@ pub(crate) fn openai_client() -> OpenAIClient {
34
35
pub(crate) fn default_model() -> &'static str {
36
if env::var("OPENAI_API_KEY").is_ok() {
37
- return GPT3_5_TURBO;
+ GPT3_5_TURBO
38
} else if env::var("DEEPSEEK_API_KEY").is_ok() {
39
- return DEEPSEEK_CHAT;
+ DEEPSEEK_CHAT
40
} else {
41
panic!("No API key found.");
42
}
0 commit comments