From 8ebef180e14075153df7f6f8db28a1b9686f2e2b Mon Sep 17 00:00:00 2001 From: HLAD Nicolas Date: Mon, 3 Nov 2025 20:29:46 +0100 Subject: [PATCH] handle response format object when preparing resquest --- src/LLM-API/LLMAPIChatObjectPayload.class.st | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LLM-API/LLMAPIChatObjectPayload.class.st b/src/LLM-API/LLMAPIChatObjectPayload.class.st index 4ac3dff..3b03960 100644 --- a/src/LLM-API/LLMAPIChatObjectPayload.class.st +++ b/src/LLM-API/LLMAPIChatObjectPayload.class.st @@ -35,6 +35,7 @@ LLMAPIChatObjectPayload >> asJsonableObject [ self top_p ifNotNil: [ :v | dic at: #top_p put: v ]. self model ifNotNil: [ :v | dic at: #model put: v ]. self max_tokens ifNotNil: [ :v | dic at: #max_tokens put: v ]. + self response_format ifNotNil: [ :v | dic at: #response_format put: v ]. self tools ifNotNil: [ :v | dic at: #tools put: (v collect: #asJsonableObject) ]. ^ dic ]