You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure OpenAI Service Integration: This release introduces support for Azure OpenAI services. Users can now configure the application to connect to their Azure OpenAI deployments, in addition to the standard OpenAI API.
Configuration for Azure services (API key, endpoint, and API version) can be set via environment variables or a .env file.
A new "Service Type" selector has been added to the UI, allowing users to switch between "OpenAI (Standard)" and "Azure OpenAI" at runtime.
The application will dynamically fetch available models or use appropriate defaults (e.g., gpt-35-turbo for Azure) based on the selected service.
Enhancements
Improved Configuration:
A STARTUP_SERVICE_TYPE environment variable can now be set to define the default service (OpenAI or Azure) used when the application starts.
The README.md has been updated with detailed instructions for configuring and using both standard OpenAI and Azure OpenAI services.
User Interface:
The "Service Type" dropdown will indicate if Azure OpenAI is not configured on the backend and will default to standard OpenAI in such cases.
Minor improvement to error message display on the frontend.
Technical Changes
The backend OpenAIClient has been refactored to support initialization for both OpenAI and AzureOpenAI SDKs.
API endpoints for fetching models and generating text now accommodate the selected service_type.
The .env.example file has been updated with new variables for Azure configuration.