feat(chat): support function call api (#369)

* feat(chat): support function call api

* rename struct & add const ChatMessageRoleFunction
This commit is contained in:
Ccheers
2023-06-15 16:49:54 +08:00
committed by GitHub
parent 7e76a682a9
commit 2bd65aa720
3 changed files with 75 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ var disabledModelsForEndpoints = map[string]map[string]bool{
GPT432K0314: true,
GPT432K0613: true,
},
"/chat/completions": {
chatCompletionsSuffix: {
CodexCodeDavinci002: true,
CodexCodeCushman001: true,
CodexCodeDavinci001: true,