https://github.com/tbxark/azure2openai
A simple tool to proxy OpenAI‘s request to Azure OpenAI Service
https://github.com/tbxark/azure2openai
azure-openai azure-openai-proxy chatgpt dall-e openai
Last synced: 7 months ago
JSON representation
A simple tool to proxy OpenAI‘s request to Azure OpenAI Service
- Host: GitHub
- URL: https://github.com/tbxark/azure2openai
- Owner: TBXark
- License: mit
- Created: 2024-08-09T10:27:30.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-18T08:00:38.000Z (about 1 year ago)
- Last Synced: 2025-01-19T21:43:22.856Z (9 months ago)
- Topics: azure-openai, azure-openai-proxy, chatgpt, dall-e, openai
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# azure2openai
A simple tool to proxy OpenAI‘s request to Azure OpenAI Service
### Configuration
```json
{
"endpoint_format": {
"chat_completions": "https://YOUR_NAME.openai.azure.com/openai/deployments/%s/chat/completions?api-version=2024-02-15-preview",
"image_generations": "https://YOUR_NAME.openai.azure.com/openai/deployments/%s/images/generations?api-version=2024-02-15-preview",
"models": "https://YOUR_NAME.openai.azure.com/openai/models?api-version=2024-06-01"
},
"model_map": {
"gpt-3.5-turbo": "gpt-35-turbo"
},
"address":"0.0.0.0:8789"
}
```### Usage
```bash
azure2openai -config config.json
```### License
**azure2openai** is licensed under the MIT License.[See License](LICENSE) for details.