From e28b53a405256f040db329fbb23676b0e9f10774 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 6 Apr 2024 09:10:42 +0800 Subject: refactor: update models (#388) --- src/client/openai.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/openai.rs') diff --git a/src/client/openai.rs b/src/client/openai.rs index a1bd3db..83dd65d 100644 --- a/src/client/openai.rs +++ b/src/client/openai.rs @@ -13,13 +13,13 @@ use serde_json::{json, Value}; const API_BASE: &str = "https://api.openai.com/v1"; const MODELS: [(&str, usize, &str); 5] = [ - // https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo - ("gpt-4-turbo-preview", 128000, "text"), - ("gpt-4-vision-preview", 128000, "text,vision"), - ("gpt-4-1106-preview", 128000, "text"), // https://platform.openai.com/docs/models/gpt-3-5-turbo ("gpt-3.5-turbo", 16385, "text"), ("gpt-3.5-turbo-1106", 16385, "text"), + // https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo + ("gpt-4-turbo-preview", 128000, "text"), + ("gpt-4-1106-preview", 128000, "text"), + ("gpt-4-vision-preview", 128000, "text,vision"), ]; pub const OPENAI_TOKENS_COUNT_FACTORS: TokensCountFactors = (5, 2); -- cgit v1.2.3