From f92a942a2e5544b111da7fae18952a4fb68b923c Mon Sep 17 00:00:00 2001 From: Sabuhi Gurbani <51547928+sabuhigr@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:34:03 +0400 Subject: [PATCH] Added additional_messages --- run.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/run.go b/run.go index d3e755f05..9c51aaf8d 100644 --- a/run.go +++ b/run.go @@ -83,12 +83,13 @@ const ( ) type RunRequest struct { - AssistantID string `json:"assistant_id"` - Model string `json:"model,omitempty"` - Instructions string `json:"instructions,omitempty"` - AdditionalInstructions string `json:"additional_instructions,omitempty"` - Tools []Tool `json:"tools,omitempty"` - Metadata map[string]any `json:"metadata,omitempty"` + AssistantID string `json:"assistant_id"` + Model string `json:"model,omitempty"` + Instructions string `json:"instructions,omitempty"` + AdditionalInstructions string `json:"additional_instructions,omitempty"` + AdditionalMessages []ThreadMessage `json:"additional_messages,omitempty"` + Tools []Tool `json:"tools,omitempty"` + Metadata map[string]any `json:"metadata,omitempty"` // Sampling temperature between 0 and 2. Higher values like 0.8 are more random. // lower values are more focused and deterministic.