diff options
| author | sigoden <sigoden@gmail.com> | 2025-01-21 21:45:20 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-21 21:45:20 +0800 |
| commit | b666fc6bd24a039d2d23a312fa453d0fe3ed79ab (patch) | |
| tree | c19b5c07ca3fba94ed99e2f34b0e96b04d43ba6d /src/client/azure_openai.rs | |
| parent | e522289b61bbf0d253f03433120ab3222da5e4d3 (diff) | |
| download | aichat-b666fc6bd24a039d2d23a312fa453d0fe3ed79ab.tar.gz | |
refactor: optimize configuration initialization (#1110)
Diffstat (limited to 'src/client/azure_openai.rs')
| -rw-r--r-- | src/client/azure_openai.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/client/azure_openai.rs b/src/client/azure_openai.rs index cd1d9e4..fc856b2 100644 --- a/src/client/azure_openai.rs +++ b/src/client/azure_openai.rs @@ -19,16 +19,13 @@ impl AzureOpenAIClient { config_get_fn!(api_base, get_api_base); config_get_fn!(api_key, get_api_key); - pub const PROMPTS: [PromptAction<'static>; 4] = [ - ("api_base", "API Base:", true, PromptKind::String), - ("api_key", "API Key:", true, PromptKind::String), - ("models[].name", "Model Name:", true, PromptKind::String), + pub const PROMPTS: [PromptAction<'static>; 2] = [ ( - "models[].max_input_tokens", - "Max Input Tokens:", - false, - PromptKind::Integer, + "api_base", + "API Base", + Some("e.g. https://{RESOURCE}.openai.azure.com"), ), + ("api_key", "API Key", None), ]; } |
