feat: support /v1/moderations now (close #117)

This commit is contained in:
JustSong
2023-06-11 09:37:36 +08:00
parent 1e8e3879c7
commit e479f43c52
5 changed files with 39 additions and 3 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ var ModelRatio = map[string]float64{
"ada": 10,
"text-embedding-ada-002": 0.2,
"text-search-ada-doc-001": 10,
"text-moderation-stable": 10,
"text-moderation-latest": 10,
"text-moderation-stable": 0.1,
"text-moderation-latest": 0.1,
}
func ModelRatio2JSONString() string {