Skip to content

Commit

Permalink
feat: change modle mapping relation
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsang4 committed May 14, 2023
1 parent 2e25e9a commit 1dd2c4d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The API will then be available at http://localhost:8000. API endpoint: `/v1/chat

### Usage

When you input the model parameter as `gpt-3.5-turbo-0301`, it will be substituted with `claude-v1.3`. otherwise, `claude-v1.3-100k` will be utilized.
When you input the model parameter as `gpt-3.5-turbo` or `gpt-3.5-turbo-0301`, it will be substituted with `claude-v1.3`. otherwise, `claude-v1.3-100k` will be utilized.


#### GUI
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ docker-compose up

### 使用方法

当您将模型参数 `model``gpt-3.5-turbo-0301` 时,它将替换为 `claude-v1.3`。否则,将使用 `claude-v1.3-100k`
当您将模型参数 `model``gpt-3.5-turbo``gpt-3.5-turbo-0301` 时,它将替换为 `claude-v1.3`。否则,将使用 `claude-v1.3-100k`


#### 图形界面软件
Expand Down
2 changes: 1 addition & 1 deletion claude_to_chatgpt/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
]

model_map = {
"gpt-3.5-turbo": "claude-v1.3-100k",
"gpt-3.5-turbo": "claude-v1.3",
"gpt-3.5-turbo-0301": "claude-v1.3",
"gpt-4": "claude-v1.3-100k",
"gpt-4-0314": "claude-v1.3-100k",
Expand Down
2 changes: 1 addition & 1 deletion cloudflare-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ const models_list = [
];

const model_map = {
'gpt-3.5-turbo': 'claude-v1.3-100k',
'gpt-3.5-turbo': 'claude-v1.3',
'gpt-3.5-turbo-0301': 'claude-v1.3',
'gpt-4': 'claude-v1.3-100k',
'gpt-4-0314': 'claude-v1.3-100k',
Expand Down

0 comments on commit 1dd2c4d

Please sign in to comment.