mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
feat: implement error handling for Azure AI model API interactions
This commit is contained in:
@@ -246,7 +246,9 @@ const AzureAiModelPicker: React.FC = () => {
|
||||
onClick: () => {
|
||||
const apiConfig = {
|
||||
...apiConfiguration,
|
||||
azureAiModelConfig: azureAiModelInfoSaneDefaults,
|
||||
azureAiModelConfig: {
|
||||
...azureAiModelInfoSaneDefaults,
|
||||
},
|
||||
}
|
||||
setApiConfiguration(apiConfig)
|
||||
onUpdateApiConfig(apiConfig)
|
||||
@@ -300,14 +302,12 @@ const AzureAiModelPicker: React.FC = () => {
|
||||
const apiConfig = {
|
||||
...apiConfiguration,
|
||||
azureAiModelConfig: {
|
||||
...(apiConfiguration?.azureAiModelConfig ||
|
||||
azureAiModelInfoSaneDefaults),
|
||||
...azureAiModelInfoSaneDefaults,
|
||||
...(apiConfiguration?.azureAiModelConfig || {}),
|
||||
contextWindow:
|
||||
e.target.value === ""
|
||||
? undefined
|
||||
: isNaN(parsed)
|
||||
? azureAiModelInfoSaneDefaults.contextWindow
|
||||
: parsed,
|
||||
isNaN(parsed) || e.target.value === ""
|
||||
? azureAiModelInfoSaneDefaults.contextWindow
|
||||
: parsed,
|
||||
},
|
||||
}
|
||||
setApiConfiguration(apiConfig)
|
||||
|
||||
Reference in New Issue
Block a user