Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements a fallback mechanism for configuration loading and improves error handling in `azure/init.go`. - Adds a check for the existence of `config.yaml` before attempting to read it. If the file does not exist, the application now falls back to loading configuration from environment variables instead of terminating with an error. - Updates the error message when `config.yaml` cannot be located to suggest checking the file's existence or using environment variables for configuration. - Ensures that if both the configuration file is missing and required environment variables are not set, a clear error is returned indicating the absence of both configuration sources. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/stulzq/azure-openai-proxy?shareId=906b60bd-c6a9-40b1-b401-639f8a386023).
- Loading branch information