-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Description
I would like to know if it is possible to retrieve the annotations from the chain result.
Thank you
RAW REQ RESPONSE: %Req.Response{
status: 200,
headers: %{
# ...
},
body: %{
"choices" => [
%{
"finish_reason" => "stop",
"index" => 0,
"message" => %{
"annotations" => [], # <-- HERE - I would like to retrieve that field
"content" => "Hello! How can I help you today?",
"refusal" => nil,
"role" => "assistant"
}
}
],
"created" => 1764872609,
"id" => "chatcmpl...",
"model" => "gpt-5-search-api-2025-10-14",
"object" => "chat.completion",
"system_fingerprint" => nil,
"usage" => %{
"completion_tokens" => 13,
"completion_tokens_details" => %{
"accepted_prediction_tokens" => 0,
"audio_tokens" => 0,
"reasoning_tokens" => 0,
"rejected_prediction_tokens" => 0
},
"prompt_tokens" => 1564,
"prompt_tokens_details" => %{"audio_tokens" => 0, "cached_tokens" => 0},
"total_tokens" => 1577
}
},
trailers: %{},
private: %{}
}
Metadata
Metadata
Assignees
Labels
No labels