From 90fbad5b643cd06c23179f055a309ec6a7cba161 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Thu, 3 Oct 2024 09:26:41 +0300 Subject: [PATCH] Update sample & default OpenAI provider configs to use gpt-4o (instead of gpt-4o-2024-08-06) Since 2024-10-02, `gpt-4o` is actually the same as `gpt-4o-2024-08-06`. We previously used `gpt-4o-2024-08-06`, because it was pointing to a much better (longer context) model. Since they're both the same now, we'd better stick to the unpinned model and make it easier for future users to get upgrades. --- docs/sample-provider-configs/openai.yml | 2 +- etc/app/config.yml.dist | 2 +- src/agent/provider/openai/config.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sample-provider-configs/openai.yml b/docs/sample-provider-configs/openai.yml index 3d5bc9c..2c5db6c 100644 --- a/docs/sample-provider-configs/openai.yml +++ b/docs/sample-provider-configs/openai.yml @@ -1,7 +1,7 @@ base_url: https://api.openai.com/v1 api_key: YOUR_API_KEY_HERE text_generation: - model_id: gpt-4o-2024-08-06 + model_id: gpt-4o prompt: "You are a brief, but helpful bot called {{ baibot_name }} powered by the {{ baibot_model_id }} model. The date/time now is: {{ baibot_now_utc }}." temperature: 1.0 max_response_tokens: 16384 diff --git a/etc/app/config.yml.dist b/etc/app/config.yml.dist index 6842e48..b661937 100644 --- a/etc/app/config.yml.dist +++ b/etc/app/config.yml.dist @@ -72,7 +72,7 @@ agents: # base_url: https://api.openai.com/v1 # api_key: "" # text_generation: - # model_id: gpt-4o-2024-08-06 + # model_id: gpt-4o # prompt: "You are a brief, but helpful bot called {{ baibot_name }} powered by the {{ baibot_model_id }} model. The date/time now is: {{ baibot_now_utc }}." # temperature: 1.0 # max_response_tokens: 16384 diff --git a/src/agent/provider/openai/config.rs b/src/agent/provider/openai/config.rs index 2a4cfab..bcfd623 100644 --- a/src/agent/provider/openai/config.rs +++ b/src/agent/provider/openai/config.rs @@ -75,7 +75,7 @@ impl Default for TextGenerationConfig { } fn default_text_model_id() -> String { - "gpt-4o-2024-08-06".to_owned() + "gpt-4o".to_owned() } #[derive(Debug, Clone, Serialize, Deserialize)]