azure-openai-proxy
azure-openai-proxy copied to clipboard
Azure OpenAI Service Proxy. Convert OpenAI official API request to Azure OpenAI API request. Support GPT-4,Embeddings,Langchain. Adapter from OpenAI to Azure OpenAI.
Allow the front-end web UI that carries the authentication request header to use the service
Replace `=` in the program with `:` to support better explicit support for environment variable configuration in files such as compose file
After this processing, users can call and use the service more easily. If it has completed setting the KEY in the environment variable, there will be no API Key leak...
Improve the efficiency of container builds and use explicit container versions instead of latest to make build results more stable.
### Issue with Model List Retrieval ```python import requests url = "https://api.openai.com/v1/models" payload={} headers = { 'Authorization': 'Bearer sk-' } response = requests.request("GET", url, headers=headers, data=payload, allow_redirects=False) print(response.text) ``` **The...
Modify the initialization condition in `azure/init.go` to allow the `openaiModelMapper` environment variable to be optional. This change facilitates configurations where the model mapper is not needed, and improving flexibility. Resolves:...
I only get this error since v1.3.6, v1.3.5 works fine with the same configuration from the environment variable: ``` azure-openai | 2024/05/12 06:35:30 Init from config file azure-openai | 2024/05/12...
Reference: - https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation#retiring-soon
Add missing relative path to request URL path. The path to the azure API can be behing a URL that contains a relative prefix and not only just the host....