diff options
| author | sigoden <sigoden@gmail.com> | 2023-11-04 06:28:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-04 06:28:40 +0800 |
| commit | 4380b4f20bed88221a3dcf90d2f6e8b23b539794 (patch) | |
| tree | 16e609e84dcacbb9f8c15ba23027a136bf5df5f4 /src/config | |
| parent | 887bf0a744646c6d9cfb361ba0c929d4a4342337 (diff) | |
| download | aichat-4380b4f20bed88221a3dcf90d2f6e8b23b539794.tar.gz | |
refactor: rename azure to azure_openai, improve register_client! (#208)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 4749c2a..1720772 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -717,7 +717,7 @@ impl Config { } } - if let Some(ClientConfig::OpenAI(client_config)) = self.clients.get_mut(0) { + if let Some(ClientConfig::OpenAIConfig(client_config)) = self.clients.get_mut(0) { if let Some(api_key) = value.get("api_key").and_then(|v| v.as_str()) { client_config.api_key = Some(api_key.to_string()) } |
