Skip to content

Commit 4332215

Browse files
committed
Make clippy happy
1 parent 8d816ef commit 4332215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aiscript-vm/src/ai/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ pub(crate) fn openai_client() -> OpenAIClient {
3434

3535
pub(crate) fn default_model() -> &'static str {
3636
if env::var("OPENAI_API_KEY").is_ok() {
37-
return GPT3_5_TURBO;
37+
GPT3_5_TURBO
3838
} else if env::var("DEEPSEEK_API_KEY").is_ok() {
39-
return DEEPSEEK_CHAT;
39+
DEEPSEEK_CHAT
4040
} else {
4141
panic!("No API key found.");
4242
}

0 commit comments

Comments
 (0)