feat: support ali's llm (close #326)

This commit is contained in:
JustSong
2023-07-28 23:45:08 +08:00
parent d1b6f492b6
commit e92da7928b
7 changed files with 321 additions and 19 deletions

View File

@@ -46,6 +46,8 @@ var ModelRatio = map[string]float64{
"chatglm_pro": 0.7143, // ¥0.01 / 1k tokens
"chatglm_std": 0.3572, // ¥0.005 / 1k tokens
"chatglm_lite": 0.1429, // ¥0.002 / 1k tokens
"qwen-v1": 0.8572, // TBD: https://help.aliyun.com/document_detail/2399482.html?spm=a2c4g.2399482.0.0.1ad347feilAgag
"qwen-plus-v1": 0.5715, // Same as above
}
func ModelRatio2JSONString() string {