Skip to content

Commit

Permalink
Use "mini" model by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-markin committed Sep 19, 2024
1 parent 056d5a9 commit 7201f44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/jutella.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ api_key = "<API key>"
url = "https://models.inference.ai.azure.com/"

# Model to use.
model = "gpt-4o"
model = "gpt-4o-mini"

# Optional system message to initialize the model.
system_message = "You are a helpful assistant."
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Default for ChatClientConfig {
fn default() -> Self {
Self {
api_url: String::from("https://models.inference.ai.azure.com/"),
model: String::from("gpt-4o"),
model: String::from("gpt-4o-mini"),
system_message: None,
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct Args {
#[arg(short, long)]
url: Option<String>,

/// Model. Default: "gpt-4o".
/// Model. Default: "gpt-4o-mini".
#[arg(short, long)]
model: Option<String>,

Expand Down Expand Up @@ -132,7 +132,7 @@ impl AppConfiguration {

let model = model
.or_else(|| config.as_ref().and_then(|c| c.model.clone()))
.unwrap_or_else(|| String::from("gpt-4o"));
.unwrap_or_else(|| String::from("gpt-4o-mini"));

let system_message =
system.or_else(|| config.as_ref().and_then(|c| c.system_message.clone()));
Expand Down

0 comments on commit 7201f44

Please sign in to comment.