summaryrefslogtreecommitdiffstats
path: root/src/client/openai.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-04-28 10:14:12 +0800
committerGitHub <noreply@github.com>2024-04-28 10:14:12 +0800
commitd6df1e84a7d4fece6c9107de867a1c4d7d2fee56 (patch)
tree5557d35d080e665370a7663d1317df14700d0ea4 /src/client/openai.rs
parenteac01fb129ce5a06e00cc2cc24e31b40e81eb66b (diff)
downloadaichat-d6df1e84a7d4fece6c9107de867a1c4d7d2fee56.tar.gz
refactor: extract prelude models to models.yaml (#451)
Diffstat (limited to 'src/client/openai.rs')
-rw-r--r--src/client/openai.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/client/openai.rs b/src/client/openai.rs
index a0abc25..54197ac 100644
--- a/src/client/openai.rs
+++ b/src/client/openai.rs
@@ -25,20 +25,6 @@ pub struct OpenAIConfig {
}
impl OpenAIClient {
- list_models_fn!(
- OpenAIConfig,
- [
- // https://platform.openai.com/docs/models
- ("gpt-3.5-turbo", "text", 16385),
- ("gpt-3.5-turbo-1106", "text", 16385),
- ("gpt-4-turbo", "text,vision", 128000),
- ("gpt-4-turbo-preview", "text", 128000),
- ("gpt-4-1106-preview", "text", 128000),
- ("gpt-4-vision-preview", "text,vision", 128000, 4096),
- ("gpt-4", "text", 8192),
- ("gpt-4-32k", "text", 32768),
- ]
- );
config_get_fn!(api_key, get_api_key);
config_get_fn!(api_base, get_api_base);