feat: support /v1/completions (close #115)

This commit is contained in:
JustSong
2023-06-08 14:54:02 +08:00
parent 9301b3fed3
commit 4b6adaec0b
4 changed files with 100 additions and 15 deletions

View File

@@ -10,7 +10,7 @@ var ModelRatio = map[string]float64{
"gpt-4-0314": 15,
"gpt-4-32k": 30,
"gpt-4-32k-0314": 30,
"gpt-3.5-turbo": 1,
"gpt-3.5-turbo": 1, // $0.002 / 1K tokens
"gpt-3.5-turbo-0301": 1,
"text-ada-001": 0.2,
"text-babbage-001": 0.25,