From 97d1cd48dc80bdfaeb08bf8a27b65c21a48145bd Mon Sep 17 00:00:00 2001 From: aaronvg Date: Thu, 21 Nov 2024 14:56:14 -0800 Subject: [PATCH] Make id optional as gemini doesnt include it in openai generic (#1187) Fixes gemini with openai compatibility --- .../src/internal/llm_client/primitive/openai/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/baml-runtime/src/internal/llm_client/primitive/openai/types.rs b/engine/baml-runtime/src/internal/llm_client/primitive/openai/types.rs index 847aa8607..d457b2dea 100644 --- a/engine/baml-runtime/src/internal/llm_client/primitive/openai/types.rs +++ b/engine/baml-runtime/src/internal/llm_client/primitive/openai/types.rs @@ -9,7 +9,7 @@ pub type ChatCompletionResponseDelta = ChatCompletionGeneric { /// A unique identifier for the chat completion. - pub id: String, + pub id: Option, /// A list of chat completion choices. Can be more than one if `n` is greater than 1.s pub choices: Vec, /// The Unix timestamp (in seconds) of when the chat completion was created.