Skip to content

Commit 160e8ed

Browse files
Uchiha007Folyd
authored andcommitted
Make clippy happy
1 parent ed1ef78 commit 160e8ed

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
@@ -49,9 +49,9 @@ pub(crate) fn openai_client() -> OpenAIClient {
4949

5050
pub(crate) fn default_model() -> &'static str {
5151
if env::var("OPENAI_API_KEY").is_ok() {
52-
return GPT3_5_TURBO;
52+
GPT3_5_TURBO
5353
} else if env::var("DEEPSEEK_API_KEY").is_ok() {
54-
return DEEPSEEK_CHAT;
54+
DEEPSEEK_CHAT
5555
} else {
5656
panic!("No API key found.");
5757
}

0 commit comments

Comments
 (0)