Skip to content

Commit c0a9a75

Browse files
authored
feat: add developer role (#936)
1 parent a62919e commit c0a9a75

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

chat.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const (
1414
ChatMessageRoleAssistant = "assistant"
1515
ChatMessageRoleFunction = "function"
1616
ChatMessageRoleTool = "tool"
17+
ChatMessageRoleDeveloper = "developer"
1718
)
1819

1920
const chatCompletionsSuffix = "/chat/completions"

reasoning_validator.go

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ var unsupportedToolsForO1Models = map[ToolType]struct{}{
3535
var availableMessageRoleForO1Models = map[string]struct{}{
3636
ChatMessageRoleUser: {},
3737
ChatMessageRoleAssistant: {},
38+
ChatMessageRoleDeveloper: {},
3839
}
3940

4041
// ReasoningValidator handles validation for o-series model requests.

0 commit comments

Comments
 (0)