From c5c5c36e0cda785308d32f798f59e38061718853 Mon Sep 17 00:00:00 2001 From: lowjiansheng <15527690+lowjiansheng@users.noreply.github.com> Date: Tue, 23 Sep 2025 12:02:36 +0800 Subject: [PATCH] add prefix to chat completion messages --- chat.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chat.go b/chat.go index 0aa018715..8b8172ded 100644 --- a/chat.go +++ b/chat.go @@ -119,6 +119,9 @@ type ChatCompletionMessage struct { // For Role=tool prompts this should be set to the ID given in the assistant's prior request to call a tool. ToolCallID string `json:"tool_call_id,omitempty"` + + // Messari custom fields + Prefix bool `json:"prefix"` } func (m ChatCompletionMessage) MarshalJSON() ([]byte, error) {