Skip to content

Commit

Permalink
feat: support azure openai
Browse files Browse the repository at this point in the history
  • Loading branch information
rxliuli committed Aug 28, 2024
1 parent 34920e3 commit d7fe0da
Show file tree
Hide file tree
Showing 12 changed files with 377 additions and 36 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Supported models
- [x] DeepSeek
- [x] Groq
- [x] Cerebras
- [x] Azure OpenAI

## Deployment

Expand Down Expand Up @@ -40,6 +41,11 @@ Environment variables
- `GROQ_API_KEY`: Groq API Key
- Cerebras: Supports Cerebras models, e.g. `llama-3-8b`
- `CEREBRAS_API_KEY`: Cerebras API Key
- Azure OpenAI: Supports Azure OpenAI models, e.g. `gpt-4o-mini`
- `AZURE_OPENAI_API_KEY`: Azure OpenAI API Key
- `AZURE_OPENAI_ENDPOINT`: Azure OpenAI Endpoint
- `AZURE_API_VERSION`: Azure OpenAI API Version
- `AZURE_DEPLOYMENT_MODELS`: Azure OpenAI Deployment Models, such as `gpt-4o-mini:gpt-4o-mini-dev,gpt-35-turbo:gpt-35-dev`, represent two models, `gpt-4o-mini` and `gpt-35-turbo`, corresponding to two deployments, `gpt-4o-mini-dev` and `gpt-35-dev` respectively.

## Usage

Expand Down
6 changes: 6 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [x] Moonshot
- [x] 零一万物
- [x] Cerebras
- [x] Azure OpenAI

## 部署

Expand Down Expand Up @@ -46,6 +47,11 @@
- `GROQ_API_KEY`: Groq API Key
- Cerebras: 支持 Cerebras 模型,例如 `llama-3-8b`
- `CEREBRAS_API_KEY`: Cerebras API Key
- Azure OpenAI: 支持 Azure OpenAI 模型,例如 `gpt-4o-mini`
- `AZURE_OPENAI_API_KEY`: Azure OpenAI API Key
- `AZURE_OPENAI_ENDPOINT`: Azure OpenAI Endpoint
- `AZURE_API_VERSION`: Azure OpenAI API Version
- `AZURE_DEPLOYMENT_MODELS`: Azure OpenAI Deployment Models, 例如 `gpt-4o-mini:gpt-4o-mini-dev,gpt-35-turbo:gpt-35-dev`,表示 `gpt-4o-mini``gpt-35-turbo` 两个模型,分别对应 `gpt-4o-mini-dev``gpt-35-dev` 两个部署。

## 使用

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"dependencies": {
"@anthropic-ai/sdk": "^0.27.0",
"@anthropic-ai/vertex-sdk": "^0.4.1",
"@azure/identity": "^4.4.1",
"@google/generative-ai": "^0.17.1",
"hono": "^4.5.7",
"jose": "^5.7.0",
Expand Down
Loading

0 comments on commit d7fe0da

Please sign in to comment.