diff --git a/webview-ui/src/components/settings/AzureAiModelPicker.tsx b/webview-ui/src/components/settings/AzureAiModelPicker.tsx new file mode 100644 index 0000000..81ea4e7 --- /dev/null +++ b/webview-ui/src/components/settings/AzureAiModelPicker.tsx @@ -0,0 +1,57 @@ +import { VSCodeLink, VSCodeTextField } from "@vscode/webview-ui-toolkit/react" +import { memo } from "react" +import { useExtensionState } from "../../context/ExtensionStateContext" + +const AzureAiModelPicker: React.FC = () => { + const { apiConfiguration, handleInputChange } = useExtensionState() + + return ( + <> + + Azure AI Endpoint + + + + Azure AI Key + + + + Deployment Name + + +

+ Configure your Azure AI Model Inference endpoint and model deployment. The API key is stored locally. + {!apiConfiguration?.azureAiKey && ( + + {" "} + Learn more about Azure AI Model Inference endpoints. + + )} +

+ + ) +} + +export default memo(AzureAiModelPicker)