azure2openai

command module
v0.0.0-...-29807e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2025 License: MIT Imports: 14 Imported by: 0

README

azure2openai

A simple tool to proxy OpenAI‘s request to Azure OpenAI Service

Configuration
{
  "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
azure2openai -config config.json
License

azure2openai is licensed under the MIT License.See License for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL