Skip to content

Commit 2eae0d9

Browse files
committed
fixup realtime
1 parent 3917854 commit 2eae0d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/http/endpoints/openai/realtime.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,13 +853,13 @@ func generateResponse(config *config.ModelConfig, evaluator *templates.Evaluator
853853
for _, item := range conversation.Items {
854854
for _, content := range item.Content {
855855
switch content.Type {
856-
case "input_text", "text":
856+
case types.MessageContentTypeInputText, types.MessageContentTypeText:
857857
conversationHistory = append(conversationHistory, schema.Message{
858858
Role: string(item.Role),
859859
StringContent: content.Text,
860860
Content: content.Text,
861861
})
862-
case "input_audio":
862+
case types.MessageContentTypeInputAudio, types.MessageContentTypeAudio:
863863
// We do not to turn to text here the audio result.
864864
// When generating it later on from the LLM,
865865
// we will also generate text and return it and store it in the conversation

0 commit comments

Comments
 (0)