From ca06fcf4070d2d5cf6a04f93efb18069edcf76b0 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Wed, 5 Feb 2025 11:26:53 +0000 Subject: [PATCH] fix(api/types): correct audio duration & role types --- .stats.yml | 2 +- chatcompletion.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9a2cd3b2..a411158d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 68 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-6204952a29973265b9c0d66fc67ffaf53c6a90ae4d75cdacf9d147676f5274c9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-fc5dbc19505b0035f9e7f88868619f4fb519b048bde011f6154f3132d4be71fb.yml diff --git a/chatcompletion.go b/chatcompletion.go index 8d9f6c49..5c276679 100644 --- a/chatcompletion.go +++ b/chatcompletion.go @@ -614,6 +614,7 @@ func (r chatCompletionChunkChoicesDeltaFunctionCallJSON) RawJSON() string { type ChatCompletionChunkChoicesDeltaRole string const ( + ChatCompletionChunkChoicesDeltaRoleDeveloper ChatCompletionChunkChoicesDeltaRole = "developer" ChatCompletionChunkChoicesDeltaRoleSystem ChatCompletionChunkChoicesDeltaRole = "system" ChatCompletionChunkChoicesDeltaRoleUser ChatCompletionChunkChoicesDeltaRole = "user" ChatCompletionChunkChoicesDeltaRoleAssistant ChatCompletionChunkChoicesDeltaRole = "assistant" @@ -622,7 +623,7 @@ const ( func (r ChatCompletionChunkChoicesDeltaRole) IsKnown() bool { switch r { - case ChatCompletionChunkChoicesDeltaRoleSystem, ChatCompletionChunkChoicesDeltaRoleUser, ChatCompletionChunkChoicesDeltaRoleAssistant, ChatCompletionChunkChoicesDeltaRoleTool: + case ChatCompletionChunkChoicesDeltaRoleDeveloper, ChatCompletionChunkChoicesDeltaRoleSystem, ChatCompletionChunkChoicesDeltaRoleUser, ChatCompletionChunkChoicesDeltaRoleAssistant, ChatCompletionChunkChoicesDeltaRoleTool: return true } return false