feat: add developer role (#936)

This commit is contained in:
Liu Shuang
2025-02-12 23:05:44 +08:00
committed by GitHub
parent a62919e8c6
commit c0a9a75fe0
2 changed files with 2 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ const (
ChatMessageRoleAssistant = "assistant" ChatMessageRoleAssistant = "assistant"
ChatMessageRoleFunction = "function" ChatMessageRoleFunction = "function"
ChatMessageRoleTool = "tool" ChatMessageRoleTool = "tool"
ChatMessageRoleDeveloper = "developer"
) )
const chatCompletionsSuffix = "/chat/completions" const chatCompletionsSuffix = "/chat/completions"

View File

@@ -35,6 +35,7 @@ var unsupportedToolsForO1Models = map[ToolType]struct{}{
var availableMessageRoleForO1Models = map[string]struct{}{ var availableMessageRoleForO1Models = map[string]struct{}{
ChatMessageRoleUser: {}, ChatMessageRoleUser: {},
ChatMessageRoleAssistant: {}, ChatMessageRoleAssistant: {},
ChatMessageRoleDeveloper: {},
} }
// ReasoningValidator handles validation for o-series model requests. // ReasoningValidator handles validation for o-series model requests.