update azure model
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
| model name | deployment name |
|
| model name | deployment name |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
|gpt-35-turbo | gpt-35-turbo |
|
|gpt-35-turbo | gpt-35-turbo |
|
||||||
|
|gpt-35-turbo-16k | gpt-35-turbo-16k |
|
||||||
| gpt-4 | gpt-4 |
|
| gpt-4 | gpt-4 |
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# pandora for team
|
# pandora for team
|
||||||
|
|
||||||
[pandora](pandora)是一个把ChatGPT(web/App)接口化的项目,可以看做是第三方 OpenAI API 提供方(接口和OpenAI一致)
|
[pandora](https://github.com/pengzhile/pandora)是一个把ChatGPT(web/App)接口化的项目,可以看做是第三方 OpenAI API 提供方(接口和OpenAI一致)
|
||||||
|
|
||||||
## 准备
|
## 准备
|
||||||
- https://ai.fakeopen.com/auth1 获取accesstoken
|
- https://ai.fakeopen.com/auth1 获取accesstoken
|
||||||
|
|||||||
@@ -772,11 +772,9 @@ func NumTokensFromStr(messages string, model string) (num_tokens int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func modelmap(in string) string {
|
func modelmap(in string) string {
|
||||||
switch in {
|
// gpt-3.5-turbo -> gpt-35-turbo
|
||||||
case "gpt-3.5-turbo":
|
if strings.HasSuffix(in, ".") {
|
||||||
return "gpt-35-turbo"
|
return strings.ReplaceAll(in, ".", "")
|
||||||
case "gpt-4":
|
|
||||||
return "gpt-4"
|
|
||||||
}
|
}
|
||||||
return in
|
return in
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user