From c9d35fdaa1ece5002b215132488c9b7d0aad2264 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 11:55:26 +0000 Subject: [PATCH 1/8] chore(deps): bump the all group with 5 updates (#67) Bumps the all group with 5 updates: | Package | From | To | | --- | --- | --- | | [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) | `1.39.5` | `1.39.6` | | [github.com/aws/smithy-go](https://github.com/aws/smithy-go) | `1.23.1` | `1.23.2` | | [go.yaml.in/yaml/v4](https://github.com/yaml/go-yaml) | `4.0.0-rc.2` | `4.0.0-rc.3` | | [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.32.0` | `0.33.0` | | [google.golang.org/genai](https://github.com/googleapis/go-genai) | `1.33.1-0.20251103191629-d15baab4f79e` | `1.34.0` | Updates `github.com/aws/aws-sdk-go-v2` from 1.39.5 to 1.39.6 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.39.5...v1.39.6) Updates `github.com/aws/smithy-go` from 1.23.1 to 1.23.2 - [Release notes](https://github.com/aws/smithy-go/releases) - [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/aws/smithy-go/compare/v1.23.1...v1.23.2) Updates `go.yaml.in/yaml/v4` from 4.0.0-rc.2 to 4.0.0-rc.3 - [Commits](https://github.com/yaml/go-yaml/compare/v4.0.0-rc.2...v4.0.0-rc.3) Updates `golang.org/x/oauth2` from 0.32.0 to 0.33.0 - [Commits](https://github.com/golang/oauth2/compare/v0.32.0...v0.33.0) Updates `google.golang.org/genai` from 1.33.1-0.20251103191629-d15baab4f79e to 1.34.0 - [Release notes](https://github.com/googleapis/go-genai/releases) - [Changelog](https://github.com/googleapis/go-genai/blob/main/CHANGELOG.md) - [Commits](https://github.com/googleapis/go-genai/commits/v1.34.0) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2 dependency-version: 1.39.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: github.com/aws/smithy-go dependency-version: 1.23.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: go.yaml.in/yaml/v4 dependency-version: 4.0.0-rc.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: golang.org/x/oauth2 dependency-version: 0.33.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: google.golang.org/genai dependency-version: 1.34.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 10 +++++----- go.sum | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index 6220c983a9aab408c861c3f5f943738dc055e31a..6572c45a665cadf7717d208d8f10e6714b75315f 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,8 @@ go 1.24.5 require ( cloud.google.com/go/auth v0.17.0 - github.com/aws/aws-sdk-go-v2 v1.39.5 - github.com/aws/smithy-go v1.23.1 + github.com/aws/aws-sdk-go-v2 v1.39.6 + github.com/aws/smithy-go v1.23.2 github.com/charmbracelet/anthropic-sdk-go v0.0.0-20251024181547-21d6f3d9a904 github.com/charmbracelet/x/exp/slice v0.0.0-20250904123553-b4e2667e5ad5 github.com/charmbracelet/x/json v0.2.0 @@ -14,9 +14,9 @@ require ( github.com/joho/godotenv v1.5.1 github.com/openai/openai-go/v2 v2.7.1 github.com/stretchr/testify v1.11.1 - go.yaml.in/yaml/v4 v4.0.0-rc.2 - golang.org/x/oauth2 v0.32.0 - google.golang.org/genai v1.33.1-0.20251103191629-d15baab4f79e + go.yaml.in/yaml/v4 v4.0.0-rc.3 + golang.org/x/oauth2 v0.33.0 + google.golang.org/genai v1.34.0 gopkg.in/dnaeon/go-vcr.v4 v4.0.6-0.20250923044825-7b4892dd3117 ) diff --git a/go.sum b/go.sum index 4ad8e11ef631b921035747a36b57fb460dc43d4b..c0b15d20f8056fc797ce543b376cbfb76b484c62 100644 --- a/go.sum +++ b/go.sum @@ -14,8 +14,8 @@ github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xP github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/aws/aws-sdk-go-v2 v1.39.5 h1:e/SXuia3rkFtapghJROrydtQpfQaaUgd1cUvyO1mp2w= -github.com/aws/aws-sdk-go-v2 v1.39.5/go.mod h1:yWSxrnioGUZ4WVv9TgMrNUeLV3PFESn/v+6T/Su8gnM= +github.com/aws/aws-sdk-go-v2 v1.39.6 h1:2JrPCVgWJm7bm83BDwY5z8ietmeJUbh3O2ACnn+Xsqk= +github.com/aws/aws-sdk-go-v2 v1.39.6/go.mod h1:c9pm7VwuW0UPxAEYGyTmyurVcNrbF6Rt/wixFqDhcjE= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.3 h1:tW1/Rkad38LA15X4UQtjXZXNKsCgkshC3EbmcUmghTg= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.3/go.mod h1:UbnqO+zjqk3uIt9yCACHJ9IVNhyhOCnYk8yA19SAWrM= github.com/aws/aws-sdk-go-v2/config v1.27.27 h1:HdqgGt1OAP0HkEDDShEl0oSYa9ZZBSOmKpdpsDMdO90= @@ -40,8 +40,8 @@ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 h1:yiwVzJW2ZxZTurVbYWA7QOrA github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4/go.mod h1:0oxfLkpz3rQ/CHlx5hB7H69YUpFiI1tql6Q6Ne+1bCw= github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 h1:ZsDKRLXGWHk8WdtyYMoGNO7bTudrvuKpDKgMVRlepGE= github.com/aws/aws-sdk-go-v2/service/sts v1.30.3/go.mod h1:zwySh8fpFyXp9yOr/KVzxOl8SRqgf/IDw5aUt9UKFcQ= -github.com/aws/smithy-go v1.23.1 h1:sLvcH6dfAFwGkHLZ7dGiYF7aK6mg4CgKA/iDKjLDt9M= -github.com/aws/smithy-go v1.23.1/go.mod h1:LEj2LM3rBRQJxPZTB4KuzZkaZYnZPnvgIhb4pu07mx0= +github.com/aws/smithy-go v1.23.2 h1:Crv0eatJUQhaManss33hS5r40CG3ZFH+21XSkqMrIUM= +github.com/aws/smithy-go v1.23.2/go.mod h1:LEj2LM3rBRQJxPZTB4KuzZkaZYnZPnvgIhb4pu07mx0= github.com/charmbracelet/anthropic-sdk-go v0.0.0-20251024181547-21d6f3d9a904 h1:rwLdEpG9wE6kL69KkEKDiWprO8pQOZHZXeod6+9K+mw= github.com/charmbracelet/anthropic-sdk-go v0.0.0-20251024181547-21d6f3d9a904/go.mod h1:8TIYxZxsuCqqeJ0lga/b91tBwrbjoHDC66Sq5t8N2R4= github.com/charmbracelet/x/exp/slice v0.0.0-20250904123553-b4e2667e5ad5 h1:DTSZxdV9qQagD4iGcAt9RgaRBZtJl01bfKgdLzUzUPI= @@ -119,14 +119,14 @@ go.opentelemetry.io/otel/sdk/metric v1.36.0 h1:r0ntwwGosWGaa0CrSt8cuNuTcccMXERFw go.opentelemetry.io/otel/sdk/metric v1.36.0/go.mod h1:qTNOhFDfKRwX0yXOqJYegL5WRaW376QbB7P4Pb0qva4= go.opentelemetry.io/otel/trace v1.36.0 h1:ahxWNuqZjpdiFAyrIoQ4GIiAIhxAunQR6MUoKrsNd4w= go.opentelemetry.io/otel/trace v1.36.0/go.mod h1:gQ+OnDZzrybY4k4seLzPAWNwVBBVlF2szhehOBB/tGA= -go.yaml.in/yaml/v4 v4.0.0-rc.2 h1:/FrI8D64VSr4HtGIlUtlFMGsm7H7pWTbj6vOLVZcA6s= -go.yaml.in/yaml/v4 v4.0.0-rc.2/go.mod h1:aZqd9kCMsGL7AuUv/m/PvWLdg5sjJsZ4oHDEnfPPfY0= +go.yaml.in/yaml/v4 v4.0.0-rc.3 h1:3h1fjsh1CTAPjW7q/EMe+C8shx5d8ctzZTrLcs/j8Go= +go.yaml.in/yaml/v4 v4.0.0-rc.3/go.mod h1:aZqd9kCMsGL7AuUv/m/PvWLdg5sjJsZ4oHDEnfPPfY0= golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4= golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc= golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= -golang.org/x/oauth2 v0.32.0 h1:jsCblLleRMDrxMN29H3z/k1KliIvpLgCkE6R8FXXNgY= -golang.org/x/oauth2 v0.32.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= +golang.org/x/oauth2 v0.33.0 h1:4Q+qn+E5z8gPRJfmRy7C2gGG3T4jIprK6aSYgTXGRpo= +golang.org/x/oauth2 v0.33.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= @@ -137,8 +137,8 @@ golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE= golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= google.golang.org/api v0.239.0 h1:2hZKUnFZEy81eugPs4e2XzIJ5SOwQg0G82bpXD65Puo= google.golang.org/api v0.239.0/go.mod h1:cOVEm2TpdAGHL2z+UwyS+kmlGr3bVWQQ6sYEqkKje50= -google.golang.org/genai v1.33.1-0.20251103191629-d15baab4f79e h1:pGBT6ptC4ENtN9wA4dGhvjwrYpVZ6X9Lnpwu4Y+jozk= -google.golang.org/genai v1.33.1-0.20251103191629-d15baab4f79e/go.mod h1:7pAilaICJlQBonjKKJNhftDFv3SREhZcTe9F6nRcjbg= +google.golang.org/genai v1.34.0 h1:lPRJRO+HqRX1SwFo1Xb/22nZ5MBEPUbXDl61OoDxlbY= +google.golang.org/genai v1.34.0/go.mod h1:7pAilaICJlQBonjKKJNhftDFv3SREhZcTe9F6nRcjbg= google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 h1:fc6jSaCT0vBduLYZHYrBBNY4dsWuvgyff9noRNDdBeE= google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= google.golang.org/grpc v1.74.2 h1:WoosgB65DlWVC9FqI82dGsZhWFNBSLjQ84bjROOpMu4= From 72026be82cde1f768dd30202ae5a47f196abfb1e Mon Sep 17 00:00:00 2001 From: Cristian Date: Tue, 11 Nov 2025 01:48:26 -0800 Subject: [PATCH 2/8] fix: honor MaxRetries option and add retry logic to Stream method (#68) --- agent.go | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/agent.go b/agent.go index 52015b5fd90ca988cb8e7af763e38693bfd4c9e1..1f62626725d1ce81b7b6a099344634501ccf21f1 100644 --- a/agent.go +++ b/agent.go @@ -418,6 +418,9 @@ func (a *agent) Generate(ctx context.Context, opts AgentCall) (*AgentResult, err preparedTools := a.prepareTools(a.settings.tools, stepActiveTools, disableAllTools) retryOptions := DefaultRetryOptions() + if opts.MaxRetries != nil { + retryOptions.MaxRetries = *opts.MaxRetries + } retryOptions.OnRetry = opts.OnRetry retry := RetryWithExponentialBackoffRespectingRetryHeaders[*Response](retryOptions) @@ -826,8 +829,17 @@ func (a *agent) Stream(ctx context.Context, opts AgentStreamCall) (*AgentResult, ProviderOptions: call.ProviderOptions, } - // Get streaming response - stream, err := stepModel.Stream(ctx, streamCall) + // Get streaming response with retry logic + retryOptions := DefaultRetryOptions() + if call.MaxRetries != nil { + retryOptions.MaxRetries = *call.MaxRetries + } + retryOptions.OnRetry = call.OnRetry + retry := RetryWithExponentialBackoffRespectingRetryHeaders[StreamResponse](retryOptions) + + stream, err := retry(ctx, func() (StreamResponse, error) { + return stepModel.Stream(ctx, streamCall) + }) if err != nil { if opts.OnError != nil { opts.OnError(err) @@ -1061,6 +1073,20 @@ func WithRepairToolCall(fn RepairToolCallFunction) AgentOption { } } +// WithMaxRetries sets the maximum number of retries for the agent. +func WithMaxRetries(maxRetries int) AgentOption { + return func(s *agentSettings) { + s.maxRetries = &maxRetries + } +} + +// WithOnRetry sets the retry callback for the agent. +func WithOnRetry(callback OnRetryCallback) AgentOption { + return func(s *agentSettings) { + s.onRetry = callback + } +} + // processStepStream processes a single step's stream and returns the step result. func (a *agent) processStepStream(ctx context.Context, stream StreamResponse, opts AgentStreamCall, _ []StepResult) (StepResult, bool, error) { var stepContent []Content From adfbbc090a3ee8b4dc35a7d769c6caf5426e1a5c Mon Sep 17 00:00:00 2001 From: Amolith Date: Wed, 12 Nov 2025 05:32:41 -0700 Subject: [PATCH 3/8] fix: include reasoning in OpenAI compat (#70) --- crush.json | 6 + .../openaicompat/language_model_hooks.go | 285 +++- providers/openaicompat/openaicompat.go | 1 + providers/openaicompat/openaicompat_test.go | 275 ++++ providertests/openaicompat_test.go | 2 +- .../groq-kimi-k2/multi_tool.yaml | 16 +- .../groq-kimi-k2/multi_tool_streaming.yaml | 120 +- .../groq-kimi-k2/simple.yaml | 6 +- .../groq-kimi-k2/simple_streaming.yaml | 16 +- .../groq-kimi-k2/tool.yaml | 16 +- .../groq-kimi-k2/tool_streaming.yaml | 66 +- .../huggingface-qwen3-coder/multi_tool.yaml | 16 +- .../multi_tool_streaming.yaml | 92 +- .../huggingface-qwen3-coder/simple.yaml | 8 +- .../simple_streaming.yaml | 710 +++++++++- .../huggingface-qwen3-coder/tool.yaml | 16 +- .../tool_streaming.yaml | 180 ++- .../llama-cpp-gpt-oss/simple.yaml | 6 +- .../llama-cpp-gpt-oss/simple_streaming.yaml | 112 +- .../llama-cpp-gpt-oss/tool.yaml | 16 +- .../llama-cpp-gpt-oss/tool_streaming.yaml | 184 +-- .../xai-grok-4-fast/multi_tool.yaml | 14 +- .../xai-grok-4-fast/multi_tool_streaming.yaml | 478 ++++--- .../xai-grok-4-fast/simple.yaml | 6 +- .../xai-grok-4-fast/simple_streaming.yaml | 290 ++-- .../xai-grok-4-fast/tool.yaml | 14 +- .../xai-grok-4-fast/tool_streaming.yaml | 616 +++++---- .../xai-grok-code-fast/multi_tool.yaml | 14 +- .../multi_tool_streaming.yaml | 820 ++++-------- .../xai-grok-code-fast/simple.yaml | 6 +- .../xai-grok-code-fast/simple_streaming.yaml | 428 +++--- .../xai-grok-code-fast/tool.yaml | 14 +- .../xai-grok-code-fast/tool_streaming.yaml | 540 +++----- .../zai-glm-4.5/multi_tool.yaml | 16 +- .../zai-glm-4.5/multi_tool_streaming.yaml | 496 +++---- .../zai-glm-4.5/simple.yaml | 6 +- .../zai-glm-4.5/simple_streaming.yaml | 406 ++---- .../zai-glm-4.5/tool.yaml | 16 +- .../zai-glm-4.5/tool_streaming.yaml | 322 +++-- .../llama-cpp-gpt-oss/thinking-streaming.yaml | 282 +--- .../llama-cpp-gpt-oss/thinking.yaml | 16 +- .../xai-grok-3-mini/thinking-streaming.yaml | 1176 ++++++++++------- .../xai-grok-3-mini/thinking.yaml | 16 +- .../zai-glm-4.5/thinking-streaming.yaml | 360 ++--- .../zai-glm-4.5/thinking.yaml | 16 +- 45 files changed, 4620 insertions(+), 3897 deletions(-) create mode 100644 crush.json create mode 100644 providers/openaicompat/openaicompat_test.go diff --git a/crush.json b/crush.json new file mode 100644 index 0000000000000000000000000000000000000000..f5daef89add28ad4924c2bb87ca70020af005d67 --- /dev/null +++ b/crush.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://charm.land/crush.json", + "lsp": { + "gopls": {} + } +} diff --git a/providers/openaicompat/language_model_hooks.go b/providers/openaicompat/language_model_hooks.go index d3c5a8c6b5cdbc67c58825399754325131e323fe..2f21f7130e950b1dddee83de45591cbf4a571b1f 100644 --- a/providers/openaicompat/language_model_hooks.go +++ b/providers/openaicompat/language_model_hooks.go @@ -1,8 +1,10 @@ package openaicompat import ( + "encoding/base64" "encoding/json" "fmt" + "strings" "charm.land/fantasy" "charm.land/fantasy/providers/openai" @@ -19,7 +21,7 @@ func PrepareCallFunc(_ fantasy.LanguageModel, params *openaisdk.ChatCompletionNe if v, ok := call.ProviderOptions[Name]; ok { providerOptions, ok = v.(*ProviderOptions) if !ok { - return nil, &fantasy.Error{Title: "invalid argument", Message: "openrouter provider options should be *openrouter.ProviderOptions"} + return nil, &fantasy.Error{Title: "invalid argument", Message: "openai-compat provider options should be *openaicompat.ProviderOptions"} } } @@ -124,3 +126,284 @@ func StreamExtraFunc(chunk openaisdk.ChatCompletionChunk, yield func(fantasy.Str } return ctx, true } + +// ToPromptFunc converts a fantasy prompt to OpenAI format with reasoning support. +// It handles fantasy.ContentTypeReasoning in assistant messages by adding the +// reasoning_content field to the message JSON. +func ToPromptFunc(prompt fantasy.Prompt, _, _ string) ([]openaisdk.ChatCompletionMessageParamUnion, []fantasy.CallWarning) { + var messages []openaisdk.ChatCompletionMessageParamUnion + var warnings []fantasy.CallWarning + for _, msg := range prompt { + switch msg.Role { + case fantasy.MessageRoleSystem: + var systemPromptParts []string + for _, c := range msg.Content { + if c.GetType() != fantasy.ContentTypeText { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "system prompt can only have text content", + }) + continue + } + textPart, ok := fantasy.AsContentType[fantasy.TextPart](c) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "system prompt text part does not have the right type", + }) + continue + } + text := textPart.Text + if strings.TrimSpace(text) != "" { + systemPromptParts = append(systemPromptParts, textPart.Text) + } + } + if len(systemPromptParts) == 0 { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "system prompt has no text parts", + }) + continue + } + messages = append(messages, openaisdk.SystemMessage(strings.Join(systemPromptParts, "\n"))) + case fantasy.MessageRoleUser: + // simple user message just text content + if len(msg.Content) == 1 && msg.Content[0].GetType() == fantasy.ContentTypeText { + textPart, ok := fantasy.AsContentType[fantasy.TextPart](msg.Content[0]) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "user message text part does not have the right type", + }) + continue + } + messages = append(messages, openaisdk.UserMessage(textPart.Text)) + continue + } + // text content and attachments + var content []openaisdk.ChatCompletionContentPartUnionParam + for _, c := range msg.Content { + switch c.GetType() { + case fantasy.ContentTypeText: + textPart, ok := fantasy.AsContentType[fantasy.TextPart](c) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "user message text part does not have the right type", + }) + continue + } + content = append(content, openaisdk.ChatCompletionContentPartUnionParam{ + OfText: &openaisdk.ChatCompletionContentPartTextParam{ + Text: textPart.Text, + }, + }) + case fantasy.ContentTypeFile: + filePart, ok := fantasy.AsContentType[fantasy.FilePart](c) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "user message file part does not have the right type", + }) + continue + } + + switch { + case strings.HasPrefix(filePart.MediaType, "image/"): + // Handle image files + base64Encoded := base64.StdEncoding.EncodeToString(filePart.Data) + data := "data:" + filePart.MediaType + ";base64," + base64Encoded + imageURL := openaisdk.ChatCompletionContentPartImageImageURLParam{URL: data} + + // Check for provider-specific options like image detail + if providerOptions, ok := filePart.ProviderOptions[openai.Name]; ok { + if detail, ok := providerOptions.(*openai.ProviderFileOptions); ok { + imageURL.Detail = detail.ImageDetail + } + } + + imageBlock := openaisdk.ChatCompletionContentPartImageParam{ImageURL: imageURL} + content = append(content, openaisdk.ChatCompletionContentPartUnionParam{OfImageURL: &imageBlock}) + + case filePart.MediaType == "audio/wav": + // Handle WAV audio files + base64Encoded := base64.StdEncoding.EncodeToString(filePart.Data) + audioBlock := openaisdk.ChatCompletionContentPartInputAudioParam{ + InputAudio: openaisdk.ChatCompletionContentPartInputAudioInputAudioParam{ + Data: base64Encoded, + Format: "wav", + }, + } + content = append(content, openaisdk.ChatCompletionContentPartUnionParam{OfInputAudio: &audioBlock}) + + case filePart.MediaType == "audio/mpeg" || filePart.MediaType == "audio/mp3": + // Handle MP3 audio files + base64Encoded := base64.StdEncoding.EncodeToString(filePart.Data) + audioBlock := openaisdk.ChatCompletionContentPartInputAudioParam{ + InputAudio: openaisdk.ChatCompletionContentPartInputAudioInputAudioParam{ + Data: base64Encoded, + Format: "mp3", + }, + } + content = append(content, openaisdk.ChatCompletionContentPartUnionParam{OfInputAudio: &audioBlock}) + + case filePart.MediaType == "application/pdf": + // Handle PDF files + dataStr := string(filePart.Data) + + // Check if data looks like a file ID (starts with "file-") + if strings.HasPrefix(dataStr, "file-") { + fileBlock := openaisdk.ChatCompletionContentPartFileParam{ + File: openaisdk.ChatCompletionContentPartFileFileParam{ + FileID: param.NewOpt(dataStr), + }, + } + content = append(content, openaisdk.ChatCompletionContentPartUnionParam{OfFile: &fileBlock}) + } else { + // Handle as base64 data + base64Encoded := base64.StdEncoding.EncodeToString(filePart.Data) + data := "data:application/pdf;base64," + base64Encoded + + filename := filePart.Filename + if filename == "" { + // Generate default filename based on content index + filename = fmt.Sprintf("part-%d.pdf", len(content)) + } + + fileBlock := openaisdk.ChatCompletionContentPartFileParam{ + File: openaisdk.ChatCompletionContentPartFileFileParam{ + Filename: param.NewOpt(filename), + FileData: param.NewOpt(data), + }, + } + content = append(content, openaisdk.ChatCompletionContentPartUnionParam{OfFile: &fileBlock}) + } + + default: + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: fmt.Sprintf("file part media type %s not supported", filePart.MediaType), + }) + } + } + } + messages = append(messages, openaisdk.UserMessage(content)) + case fantasy.MessageRoleAssistant: + // simple assistant message just text content + if len(msg.Content) == 1 && msg.Content[0].GetType() == fantasy.ContentTypeText { + textPart, ok := fantasy.AsContentType[fantasy.TextPart](msg.Content[0]) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "assistant message text part does not have the right type", + }) + continue + } + messages = append(messages, openaisdk.AssistantMessage(textPart.Text)) + continue + } + assistantMsg := openaisdk.ChatCompletionAssistantMessageParam{ + Role: "assistant", + } + var reasoningText string + for _, c := range msg.Content { + switch c.GetType() { + case fantasy.ContentTypeText: + textPart, ok := fantasy.AsContentType[fantasy.TextPart](c) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "assistant message text part does not have the right type", + }) + continue + } + assistantMsg.Content = openaisdk.ChatCompletionAssistantMessageParamContentUnion{ + OfString: param.NewOpt(textPart.Text), + } + case fantasy.ContentTypeReasoning: + reasoningPart, ok := fantasy.AsContentType[fantasy.ReasoningPart](c) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "assistant message reasoning part does not have the right type", + }) + continue + } + reasoningText = reasoningPart.Text + case fantasy.ContentTypeToolCall: + toolCallPart, ok := fantasy.AsContentType[fantasy.ToolCallPart](c) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "assistant message tool part does not have the right type", + }) + continue + } + assistantMsg.ToolCalls = append(assistantMsg.ToolCalls, + openaisdk.ChatCompletionMessageToolCallUnionParam{ + OfFunction: &openaisdk.ChatCompletionMessageFunctionToolCallParam{ + ID: toolCallPart.ToolCallID, + Type: "function", + Function: openaisdk.ChatCompletionMessageFunctionToolCallFunctionParam{ + Name: toolCallPart.ToolName, + Arguments: toolCallPart.Input, + }, + }, + }) + } + } + // Add reasoning_content field if present + if reasoningText != "" { + assistantMsg.SetExtraFields(map[string]any{ + "reasoning_content": reasoningText, + }) + } + messages = append(messages, openaisdk.ChatCompletionMessageParamUnion{ + OfAssistant: &assistantMsg, + }) + case fantasy.MessageRoleTool: + for _, c := range msg.Content { + if c.GetType() != fantasy.ContentTypeToolResult { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "tool message can only have tool result content", + }) + continue + } + + toolResultPart, ok := fantasy.AsContentType[fantasy.ToolResultPart](c) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "tool message result part does not have the right type", + }) + continue + } + + switch toolResultPart.Output.GetType() { + case fantasy.ToolResultContentTypeText: + output, ok := fantasy.AsToolResultOutputType[fantasy.ToolResultOutputContentText](toolResultPart.Output) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "tool result output does not have the right type", + }) + continue + } + messages = append(messages, openaisdk.ToolMessage(output.Text, toolResultPart.ToolCallID)) + case fantasy.ToolResultContentTypeError: + output, ok := fantasy.AsToolResultOutputType[fantasy.ToolResultOutputContentError](toolResultPart.Output) + if !ok { + warnings = append(warnings, fantasy.CallWarning{ + Type: fantasy.CallWarningTypeOther, + Message: "tool result output does not have the right type", + }) + continue + } + messages = append(messages, openaisdk.ToolMessage(output.Error.Error(), toolResultPart.ToolCallID)) + } + } + } + } + return messages, warnings +} diff --git a/providers/openaicompat/openaicompat.go b/providers/openaicompat/openaicompat.go index ed7045c8c5bf07f3d68d448a7e6a3b6da6c63a57..5590b67227ef412403b67e79a72d4eecb826e471 100644 --- a/providers/openaicompat/openaicompat.go +++ b/providers/openaicompat/openaicompat.go @@ -31,6 +31,7 @@ func New(opts ...Option) (fantasy.Provider, error) { openai.WithLanguageModelPrepareCallFunc(PrepareCallFunc), openai.WithLanguageModelStreamExtraFunc(StreamExtraFunc), openai.WithLanguageModelExtraContentFunc(ExtraContentFunc), + openai.WithLanguageModelToPromptFunc(ToPromptFunc), }, } for _, o := range opts { diff --git a/providers/openaicompat/openaicompat_test.go b/providers/openaicompat/openaicompat_test.go new file mode 100644 index 0000000000000000000000000000000000000000..89e2ae1e78fbf18aa762943c2e5e35922d27bfc3 --- /dev/null +++ b/providers/openaicompat/openaicompat_test.go @@ -0,0 +1,275 @@ +package openaicompat + +import ( + "testing" + + "charm.land/fantasy" + "github.com/stretchr/testify/require" +) + +func TestToPromptFunc_ReasoningContent(t *testing.T) { + t.Parallel() + + t.Run("should add reasoning_content field to assistant messages", func(t *testing.T) { + t.Parallel() + + prompt := fantasy.Prompt{ + { + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "What is 2+2?"}, + }, + }, + { + Role: fantasy.MessageRoleAssistant, + Content: []fantasy.MessagePart{ + fantasy.ReasoningPart{Text: "Let me think... 2+2 equals 4."}, + fantasy.TextPart{Text: "The answer is 4."}, + }, + }, + { + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "What about 3+3?"}, + }, + }, + } + + messages, warnings := ToPromptFunc(prompt, "", "") + + require.Empty(t, warnings) + require.Len(t, messages, 3) + + // First message (user) - no reasoning + msg1 := messages[0].OfUser + require.NotNil(t, msg1) + require.Equal(t, "What is 2+2?", msg1.Content.OfString.Value) + + // Second message (assistant) - with reasoning + msg2 := messages[1].OfAssistant + require.NotNil(t, msg2) + require.Equal(t, "The answer is 4.", msg2.Content.OfString.Value) + // Check reasoning_content in extra fields + extraFields := msg2.ExtraFields() + reasoningContent, hasReasoning := extraFields["reasoning_content"] + require.True(t, hasReasoning) + require.Equal(t, "Let me think... 2+2 equals 4.", reasoningContent) + + // Third message (user) - no reasoning + msg3 := messages[2].OfUser + require.NotNil(t, msg3) + require.Equal(t, "What about 3+3?", msg3.Content.OfString.Value) + }) + + t.Run("should handle assistant messages with only reasoning content", func(t *testing.T) { + t.Parallel() + + prompt := fantasy.Prompt{ + { + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "Hello"}, + }, + }, + { + Role: fantasy.MessageRoleAssistant, + Content: []fantasy.MessagePart{ + fantasy.ReasoningPart{Text: "Internal reasoning only..."}, + }, + }, + } + + messages, warnings := ToPromptFunc(prompt, "", "") + + require.Empty(t, warnings) + require.Len(t, messages, 2) + + // Assistant message with only reasoning + msg := messages[1].OfAssistant + require.NotNil(t, msg) + extraFields := msg.ExtraFields() + reasoningContent, hasReasoning := extraFields["reasoning_content"] + require.True(t, hasReasoning) + require.Equal(t, "Internal reasoning only...", reasoningContent) + }) + + t.Run("should not add reasoning_content to messages without reasoning", func(t *testing.T) { + t.Parallel() + + prompt := fantasy.Prompt{ + { + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "Hello"}, + }, + }, + { + Role: fantasy.MessageRoleAssistant, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "Hi there!"}, + }, + }, + } + + messages, warnings := ToPromptFunc(prompt, "", "") + + require.Empty(t, warnings) + require.Len(t, messages, 2) + + // Assistant message without reasoning + msg := messages[1].OfAssistant + require.NotNil(t, msg) + require.Equal(t, "Hi there!", msg.Content.OfString.Value) + extraFields := msg.ExtraFields() + _, hasReasoning := extraFields["reasoning_content"] + require.False(t, hasReasoning) + }) + + t.Run("should preserve system and user messages unchanged", func(t *testing.T) { + t.Parallel() + + prompt := fantasy.Prompt{ + { + Role: fantasy.MessageRoleSystem, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "You are helpful."}, + }, + }, + { + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "Hello"}, + }, + }, + } + + messages, warnings := ToPromptFunc(prompt, "", "") + + require.Empty(t, warnings) + require.Len(t, messages, 2) + + // System message - unchanged + systemMsg := messages[0].OfSystem + require.NotNil(t, systemMsg) + require.Equal(t, "You are helpful.", systemMsg.Content.OfString.Value) + + // User message - unchanged + userMsg := messages[1].OfUser + require.NotNil(t, userMsg) + require.Equal(t, "Hello", userMsg.Content.OfString.Value) + }) + + t.Run("should use last assistant TextPart only", func(t *testing.T) { + t.Parallel() + + prompt := fantasy.Prompt{ + { + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "Hello"}, + }, + }, + { + Role: fantasy.MessageRoleAssistant, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "First part. "}, + fantasy.TextPart{Text: "Second part. "}, + fantasy.TextPart{Text: "Third part."}, + }, + }, + } + + messages, warnings := ToPromptFunc(prompt, "", "") + + require.Empty(t, warnings) + require.Len(t, messages, 2) + + // Assistant message should use only the last TextPart (matching openai behavior) + assistantMsg := messages[1].OfAssistant + require.NotNil(t, assistantMsg) + require.Equal(t, "Third part.", assistantMsg.Content.OfString.Value) + }) + + t.Run("should include user messages with only unsupported attachments", func(t *testing.T) { + t.Parallel() + + prompt := fantasy.Prompt{ + { + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "Hello"}, + }, + }, + { + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.FilePart{ + MediaType: "application/x-unsupported", + Data: []byte("unsupported data"), + }, + }, + }, + { + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "After unsupported"}, + }, + }, + } + + messages, warnings := ToPromptFunc(prompt, "", "") + + require.Len(t, warnings, 1) + require.Contains(t, warnings[0].Message, "not supported") + // Should have all 3 messages (matching openai behavior - don't skip empty content) + require.Len(t, messages, 3) + + msg1 := messages[0].OfUser + require.NotNil(t, msg1) + require.Equal(t, "Hello", msg1.Content.OfString.Value) + + // Second message has empty content (unsupported attachment was skipped) + msg2 := messages[1].OfUser + require.NotNil(t, msg2) + content2 := msg2.Content.OfArrayOfContentParts + require.Len(t, content2, 0) + + msg3 := messages[2].OfUser + require.NotNil(t, msg3) + require.Equal(t, "After unsupported", msg3.Content.OfString.Value) + }) + + t.Run("should detect PDF file IDs using strings.HasPrefix", func(t *testing.T) { + t.Parallel() + + prompt := fantasy.Prompt{ + { + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "Check this PDF"}, + fantasy.FilePart{ + MediaType: "application/pdf", + Data: []byte("file-abc123xyz"), + Filename: "test.pdf", + }, + }, + }, + } + + messages, warnings := ToPromptFunc(prompt, "", "") + + require.Empty(t, warnings) + require.Len(t, messages, 1) + + userMsg := messages[0].OfUser + require.NotNil(t, userMsg) + + content := userMsg.Content.OfArrayOfContentParts + require.Len(t, content, 2) + + // Second content part should be file with file_id + filePart := content[1].OfFile + require.NotNil(t, filePart) + require.Equal(t, "file-abc123xyz", filePart.File.FileID.Value) + }) +} diff --git a/providertests/openaicompat_test.go b/providertests/openaicompat_test.go index 84c64924226cdd99b47e1014e860e0866025869a..6d90b6a523a63dddc22da275dc50d4e57b750ca6 100644 --- a/providertests/openaicompat_test.go +++ b/providertests/openaicompat_test.go @@ -119,7 +119,7 @@ func builderHuggingFace(t *testing.T, r *recorder.Recorder) (fantasy.LanguageMod if err != nil { return nil, err } - return provider.LanguageModel(t.Context(), "Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras") + return provider.LanguageModel(t.Context(), "zai-org/GLM-4.6:cerebras") } func builderLlamaCppGptOss(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { diff --git a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/multi_tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/multi_tool.yaml index a2c40ac7118409c27549881a23948be85e99adc7..5b98ddddbb47c8a6b847864ab575579977d801e9 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/multi_tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/multi_tool.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.groq.com/openai/v1/chat/completions method: POST response: @@ -25,28 +25,28 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"chatcmpl-821a45ca-0c2c-4744-90df-30250620bba7","object":"chat.completion","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","tool_calls":[{"id":"functions.add:0","type":"function","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"}},{"id":"functions.multiply:1","type":"function","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"}}]},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"queue_time":0.034706122,"prompt_tokens":211,"prompt_time":0.02151364,"completion_tokens":41,"completion_time":0.175949957,"total_tokens":252,"total_time":0.197463597},"usage_breakdown":null,"system_fingerprint":"fp_6e6ff3688b","x_groq":{"id":"req_01k62v69wdeekbpebban95ny5e"},"service_tier":"on_demand"} + {"id":"chatcmpl-f99f9572-5553-418a-a974-3ce7763f287d","object":"chat.completion","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","content":"I'll add and multiply the numbers 2 and 3 for you.","tool_calls":[{"id":"functions.add:0","type":"function","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"}},{"id":"functions.multiply:1","type":"function","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"}}]},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"queue_time":0.16105511,"prompt_tokens":205,"prompt_time":0.021381762,"completion_tokens":55,"completion_time":0.177128832,"total_tokens":260,"total_time":0.198510594},"usage_breakdown":null,"system_fingerprint":"fp_5fe129dff6","x_groq":{"id":"req_01k9s5gdn9fqpaz58zxaarqt7b"},"service_tier":"on_demand"} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 287.941834ms + duration: 410.276791ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1216 + content_length: 1279 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"functions.add:0","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"functions.multiply:1","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"functions.add:0","role":"tool"},{"content":"6","tool_call_id":"functions.multiply:1","role":"tool"}],"model":"moonshotai/kimi-k2-instruct-0905","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll add and multiply the numbers 2 and 3 for you.","tool_calls":[{"id":"functions.add:0","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"functions.multiply:1","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"functions.add:0","role":"tool"},{"content":"6","tool_call_id":"functions.multiply:1","role":"tool"}],"model":"moonshotai/kimi-k2-instruct-0905","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.groq.com/openai/v1/chat/completions method: POST response: @@ -56,10 +56,10 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"chatcmpl-2ac08e5f-cb4f-428e-88bc-ad449887955f","object":"chat.completion","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","content":"- **Addition result:** 5 \n- **Multiplication result:** 6"},"logprobs":null,"finish_reason":"stop"}],"usage":{"queue_time":0.034671621,"prompt_tokens":279,"prompt_time":0.027295151,"completion_tokens":17,"completion_time":0.069346409,"total_tokens":296,"total_time":0.09664156},"usage_breakdown":null,"system_fingerprint":"fp_6e6ff3688b","x_groq":{"id":"req_01k62v6a5texza2ay40rkh8ppy"},"service_tier":"on_demand"} + {"id":"chatcmpl-21bda724-6180-4357-943e-a555622dd5b9","object":"chat.completion","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","content":"The results are:\n- Addition: 2 + 3 = 5\n- Multiplication: 2 × 3 = 6"},"logprobs":null,"finish_reason":"stop"}],"usage":{"queue_time":0.162310812,"prompt_tokens":297,"prompt_time":0.029482976,"completion_tokens":29,"completion_time":0.06281568,"total_tokens":326,"total_time":0.092298656},"usage_breakdown":null,"system_fingerprint":"fp_3312304636","x_groq":{"id":"req_01k9s5ge24ehwsanxan8an35he"},"service_tier":"on_demand"} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 198.746083ms + duration: 305.567541ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/multi_tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/multi_tool_streaming.yaml index bcbc0460726c691c951b0c273e7e218eff5e4346..b46e603a5db51f0674c73752e0d4d8876a86c094 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/multi_tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/multi_tool_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.groq.com/openai/v1/chat/completions method: POST response: @@ -24,43 +24,47 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k62v6abtexz9x4ehz7ept3nt"}} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k9s5gebzfqpr76b0dcepxd89"}} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"I'll"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":"I'll"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" help"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" calculate"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" you"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" both"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" add"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" the"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" sum"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" multiply"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" the"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" product"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" numbers"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" of"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"3"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":"3"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" for"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"tool_calls":[{"id":"functions.add:0","type":"function","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"index":0}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" you"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"tool_calls":[{"id":"functions.multiply:1","type":"function","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"index":1}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}],"x_groq":{"id":"req_01k62v6abtexz9x4ehz7ept3nt","usage":{"queue_time":0.035435906,"prompt_tokens":207,"prompt_time":0.021306235,"completion_tokens":55,"completion_time":0.193797381,"total_tokens":262,"total_time":0.215103616}},"usage":{"queue_time":0.035435906,"prompt_tokens":207,"prompt_time":0.021306235,"completion_tokens":55,"completion_time":0.193797381,"total_tokens":262,"total_time":0.215103616}} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"tool_calls":[{"id":"functions.add:0","type":"function","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"index":0}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[],"usage":{"queue_time":0.035435906,"prompt_tokens":207,"prompt_time":0.021306235,"completion_tokens":55,"completion_time":0.193797381,"total_tokens":262,"total_time":0.215103616},"service_tier":"on_demand"} + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"tool_calls":[{"id":"functions.multiply:1","type":"function","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"index":1}]},"logprobs":null,"finish_reason":null}]} + + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}],"x_groq":{"id":"req_01k9s5gebzfqpr76b0dcepxd89","usage":{"queue_time":0.162914893,"prompt_tokens":201,"prompt_time":0.052741139,"completion_tokens":57,"completion_time":0.195291661,"total_tokens":258,"total_time":0.2480328}},"usage":{"queue_time":0.162914893,"prompt_tokens":201,"prompt_time":0.052741139,"completion_tokens":57,"completion_time":0.195291661,"total_tokens":258,"total_time":0.2480328}} + + data: {"id":"chatcmpl-2c900147-daa3-4ba7-9f06-34cddb9750d2","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[],"usage":{"queue_time":0.162914893,"prompt_tokens":201,"prompt_time":0.052741139,"completion_tokens":57,"completion_time":0.195291661,"total_tokens":258,"total_time":0.2480328},"service_tier":"on_demand"} data: [DONE] @@ -69,22 +73,22 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 113.669917ms + duration: 270.783709ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1317 + content_length: 1325 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll help you add and multiply the numbers 2 and 3.","tool_calls":[{"id":"functions.add:0","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"functions.multiply:1","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"functions.add:0","role":"tool"},{"content":"6","tool_call_id":"functions.multiply:1","role":"tool"}],"model":"moonshotai/kimi-k2-instruct-0905","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll calculate both the sum and product of 2 and 3 for you.","tool_calls":[{"id":"functions.add:0","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"functions.multiply:1","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"functions.add:0","role":"tool"},{"content":"6","tool_call_id":"functions.multiply:1","role":"tool"}],"model":"moonshotai/kimi-k2-instruct-0905","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.groq.com/openai/v1/chat/completions method: POST response: @@ -93,67 +97,71 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k62v6anceen846x2tt27aefk"}} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k9s5geteehya7n9jqe65paze"}} + + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}]} + + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" results"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" are"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" results"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":":\n"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" are"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":":\n"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" **"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"Addition"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" Addition"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"**:"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" +"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" +"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"3"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"3"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" ="},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" ="},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"5"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"5"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"\n"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"\n"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" **"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" Multi"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"Multi"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"plication"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"plication"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"**:"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" ×"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" ×"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"3"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"3"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" ="},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" ="},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"6"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"6"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"x_groq":{"id":"req_01k62v6anceen846x2tt27aefk","usage":{"queue_time":0.163143838,"prompt_tokens":289,"prompt_time":0.025574857,"completion_tokens":29,"completion_time":0.055943648,"total_tokens":318,"total_time":0.081518505}},"usage":{"queue_time":0.163143838,"prompt_tokens":289,"prompt_time":0.025574857,"completion_tokens":29,"completion_time":0.055943648,"total_tokens":318,"total_time":0.081518505}} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"x_groq":{"id":"req_01k9s5geteehya7n9jqe65paze","usage":{"queue_time":0.16011279,"prompt_tokens":295,"prompt_time":0.054205662,"completion_tokens":31,"completion_time":0.082124494,"total_tokens":326,"total_time":0.136330156}},"usage":{"queue_time":0.16011279,"prompt_tokens":295,"prompt_time":0.054205662,"completion_tokens":31,"completion_time":0.082124494,"total_tokens":326,"total_time":0.136330156}} - data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[],"usage":{"queue_time":0.163143838,"prompt_tokens":289,"prompt_time":0.025574857,"completion_tokens":29,"completion_time":0.055943648,"total_tokens":318,"total_time":0.081518505},"service_tier":"on_demand"} + data: {"id":"chatcmpl-76e3527c-b479-46a6-982f-fe721501bb7a","object":"chat.completion.chunk","created":1762854976,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[],"usage":{"queue_time":0.16011279,"prompt_tokens":295,"prompt_time":0.054205662,"completion_tokens":31,"completion_time":0.082124494,"total_tokens":326,"total_time":0.136330156},"service_tier":"on_demand"} data: [DONE] @@ -162,4 +170,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 244.900083ms + duration: 265.328458ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/simple.yaml b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/simple.yaml index 289fddcf011e522132ec6be6a133c3f47da1062c..deabd88b45dcf810dbb5ee1b97ad04a42b42b029 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/simple.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/simple.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.groq.com/openai/v1/chat/completions method: POST response: @@ -25,10 +25,10 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"chatcmpl-c41f00a2-68dc-4952-ac9d-a2febf3945b6","object":"chat.completion","created":1758884733,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","content":"Olá!"},"logprobs":null,"finish_reason":"stop"}],"usage":{"queue_time":0.036316922,"prompt_tokens":20,"prompt_time":0.017865963,"completion_tokens":4,"completion_time":0.02970344,"total_tokens":24,"total_time":0.047569403},"usage_breakdown":null,"system_fingerprint":"fp_6e6ff3688b","x_groq":{"id":"req_01k62v68w6f5btx1cmv31be5df"},"service_tier":"on_demand"} + {"id":"chatcmpl-9d25476d-ffb3-4fc0-8a33-6e84b5ede19c","object":"chat.completion","created":1762854973,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","content":"Olá!"},"logprobs":null,"finish_reason":"stop"}],"usage":{"queue_time":0.161356542,"prompt_tokens":20,"prompt_time":0.009083588,"completion_tokens":4,"completion_time":0.008812502,"total_tokens":24,"total_time":0.01789609},"usage_breakdown":null,"system_fingerprint":"fp_5fe129dff6","x_groq":{"id":"req_01k9s5gc22f6m968npajvjx0x0"},"service_tier":"on_demand"} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 334.810833ms + duration: 374.755334ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/simple_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/simple_streaming.yaml index 98d6fb9d8646af41693e4b78d4fbd28117942ee9..a79fe0d2cc1dd5b02917aaedf13a20a1352bf434 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/simple_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/simple_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.groq.com/openai/v1/chat/completions method: POST response: @@ -24,15 +24,17 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"chatcmpl-0544364e-cb53-4ca7-abe9-d5fc326e02cf","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k62v6917eejrqc5hh96eeeyz"}} + data: {"id":"chatcmpl-01c5e4bc-e533-4f23-bc74-32b9f2f473b0","object":"chat.completion.chunk","created":1762854973,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k9s5gc9mfqk9exgvmtm3gw25"}} - data: {"id":"chatcmpl-0544364e-cb53-4ca7-abe9-d5fc326e02cf","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"Oi"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-01c5e4bc-e533-4f23-bc74-32b9f2f473b0","object":"chat.completion.chunk","created":1762854973,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"Ol"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-0544364e-cb53-4ca7-abe9-d5fc326e02cf","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"!"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-01c5e4bc-e533-4f23-bc74-32b9f2f473b0","object":"chat.completion.chunk","created":1762854973,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"á"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-0544364e-cb53-4ca7-abe9-d5fc326e02cf","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"x_groq":{"id":"req_01k62v6917eejrqc5hh96eeeyz","usage":{"queue_time":0.035865149,"prompt_tokens":20,"prompt_time":0.009370029,"completion_tokens":3,"completion_time":0.006912131,"total_tokens":23,"total_time":0.01628216}},"usage":{"queue_time":0.035865149,"prompt_tokens":20,"prompt_time":0.009370029,"completion_tokens":3,"completion_time":0.006912131,"total_tokens":23,"total_time":0.01628216}} + data: {"id":"chatcmpl-01c5e4bc-e533-4f23-bc74-32b9f2f473b0","object":"chat.completion.chunk","created":1762854973,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{"content":"!"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-0544364e-cb53-4ca7-abe9-d5fc326e02cf","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[],"usage":{"queue_time":0.035865149,"prompt_tokens":20,"prompt_time":0.009370029,"completion_tokens":3,"completion_time":0.006912131,"total_tokens":23,"total_time":0.01628216},"service_tier":"on_demand"} + data: {"id":"chatcmpl-01c5e4bc-e533-4f23-bc74-32b9f2f473b0","object":"chat.completion.chunk","created":1762854973,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"x_groq":{"id":"req_01k9s5gc9mfqk9exgvmtm3gw25","usage":{"queue_time":0.160975287,"prompt_tokens":20,"prompt_time":0.009101728,"completion_tokens":4,"completion_time":0.009250085,"total_tokens":24,"total_time":0.018351813}},"usage":{"queue_time":0.160975287,"prompt_tokens":20,"prompt_time":0.009101728,"completion_tokens":4,"completion_time":0.009250085,"total_tokens":24,"total_time":0.018351813}} + + data: {"id":"chatcmpl-01c5e4bc-e533-4f23-bc74-32b9f2f473b0","object":"chat.completion.chunk","created":1762854973,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_5fe129dff6","choices":[],"usage":{"queue_time":0.160975287,"prompt_tokens":20,"prompt_time":0.009101728,"completion_tokens":4,"completion_time":0.009250085,"total_tokens":24,"total_time":0.018351813},"service_tier":"on_demand"} data: [DONE] @@ -41,4 +43,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 114.54075ms + duration: 221.770167ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/tool.yaml index 47339fcf66cc438f7db5ee3dfbf2be05a6b3213c..53c795371ce62fb7ad650f836fecbc2fdb261a56 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/tool.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.groq.com/openai/v1/chat/completions method: POST response: @@ -25,28 +25,28 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"chatcmpl-70b14f6a-3fb5-4bf5-8613-7670242afa1e","object":"chat.completion","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","content":"I'll check the weather in Florence, Italy for you.","tool_calls":[{"id":"functions.weather:0","type":"function","function":{"name":"weather","arguments":"{\"location\":\"Florence,Italy\"}"}}]},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"queue_time":0.035155911,"prompt_tokens":99,"prompt_time":0.016527326,"completion_tokens":32,"completion_time":0.104014523,"total_tokens":131,"total_time":0.120541849},"usage_breakdown":null,"system_fingerprint":"fp_6e6ff3688b","x_groq":{"id":"req_01k62v694nf5brr8zjscptd96b"},"service_tier":"on_demand"} + {"id":"chatcmpl-7822ddc7-c616-45cc-9315-1da4ae05d870","object":"chat.completion","created":1762854974,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","tool_calls":[{"id":"functions.weather:0","type":"function","function":{"name":"weather","arguments":"{\"location\":\"Florence,Italy\"}"}}]},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"queue_time":0.162552698,"prompt_tokens":93,"prompt_time":0.01385344,"completion_tokens":21,"completion_time":0.067437002,"total_tokens":114,"total_time":0.081290442},"usage_breakdown":null,"system_fingerprint":"fp_3312304636","x_groq":{"id":"req_01k9s5gcgyf6ttekbzf8v4fta8"},"service_tier":"on_demand"} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 214.6305ms + duration: 294.483708ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 768 + content_length: 705 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll check the weather in Florence, Italy for you.","tool_calls":[{"id":"functions.weather:0","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"functions.weather:0","role":"tool"}],"model":"moonshotai/kimi-k2-instruct-0905","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"functions.weather:0","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"functions.weather:0","role":"tool"}],"model":"moonshotai/kimi-k2-instruct-0905","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.groq.com/openai/v1/chat/completions method: POST response: @@ -56,10 +56,10 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"chatcmpl-c1ce333f-b2e7-46ae-b834-7ab0e4cd55c4","object":"chat.completion","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","content":"The weather in Florence, Italy is currently 40°C."},"logprobs":null,"finish_reason":"stop"}],"usage":{"queue_time":0.036013582,"prompt_tokens":150,"prompt_time":0.02103005,"completion_tokens":13,"completion_time":0.023271659,"total_tokens":163,"total_time":0.044301709},"usage_breakdown":null,"system_fingerprint":"fp_6e6ff3688b","x_groq":{"id":"req_01k62v69bceejt468zwpw3c7wv"},"service_tier":"on_demand"} + {"id":"chatcmpl-97e734c9-073a-48bf-926d-462e1eb23a77","object":"chat.completion","created":1762854974,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","content":"It's currently 40°C in Florence, Italy."},"logprobs":null,"finish_reason":"stop"}],"usage":{"queue_time":0.162461202,"prompt_tokens":132,"prompt_time":0.017534991,"completion_tokens":11,"completion_time":0.021573995,"total_tokens":143,"total_time":0.039108986},"usage_breakdown":null,"system_fingerprint":"fp_3312304636","x_groq":{"id":"req_01k9s5gct2fqm9ew59aphgfzdc"},"service_tier":"on_demand"} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 136.771375ms + duration: 248.764041ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/tool_streaming.yaml index 7741038dad5a9e0634becbc38633169d3cd9d86e..6af65686ad7b2b236a12110e3bbffccca6d8765f 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/groq-kimi-k2/tool_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.groq.com/openai/v1/chat/completions method: POST response: @@ -24,13 +24,13 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"chatcmpl-f8dbbaa5-6f1a-48b5-8182-377b3774d8b1","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"role":"assistant","content":null},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k62v69frexz821z0q8c8zy4z"}} + data: {"id":"chatcmpl-6059e0d5-a7a8-4b9b-9d23-8b44a9175a59","object":"chat.completion.chunk","created":1762854974,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"role":"assistant","content":null},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k9s5gd20ehs83d8fkh52fr85"}} - data: {"id":"chatcmpl-f8dbbaa5-6f1a-48b5-8182-377b3774d8b1","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"tool_calls":[{"id":"functions.weather:0","type":"function","function":{"name":"weather","arguments":"{\"location\":\"Florence,Italy\"}"},"index":0}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-6059e0d5-a7a8-4b9b-9d23-8b44a9175a59","object":"chat.completion.chunk","created":1762854974,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"tool_calls":[{"id":"functions.weather:0","type":"function","function":{"name":"weather","arguments":"{\"location\":\"Florence,Italy\"}"},"index":0}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-f8dbbaa5-6f1a-48b5-8182-377b3774d8b1","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}],"x_groq":{"id":"req_01k62v69frexz821z0q8c8zy4z","usage":{"queue_time":0.03504137,"prompt_tokens":99,"prompt_time":0.016409098,"completion_tokens":21,"completion_time":0.068214998,"total_tokens":120,"total_time":0.084624096}},"usage":{"queue_time":0.03504137,"prompt_tokens":99,"prompt_time":0.016409098,"completion_tokens":21,"completion_time":0.068214998,"total_tokens":120,"total_time":0.084624096}} + data: {"id":"chatcmpl-6059e0d5-a7a8-4b9b-9d23-8b44a9175a59","object":"chat.completion.chunk","created":1762854974,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}],"x_groq":{"id":"req_01k9s5gd20ehs83d8fkh52fr85","usage":{"queue_time":0.162791944,"prompt_tokens":93,"prompt_time":0.014461869,"completion_tokens":21,"completion_time":0.067222006,"total_tokens":114,"total_time":0.081683875}},"usage":{"queue_time":0.162791944,"prompt_tokens":93,"prompt_time":0.014461869,"completion_tokens":21,"completion_time":0.067222006,"total_tokens":114,"total_time":0.081683875}} - data: {"id":"chatcmpl-f8dbbaa5-6f1a-48b5-8182-377b3774d8b1","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[],"usage":{"queue_time":0.03504137,"prompt_tokens":99,"prompt_time":0.016409098,"completion_tokens":21,"completion_time":0.068214998,"total_tokens":120,"total_time":0.084624096},"service_tier":"on_demand"} + data: {"id":"chatcmpl-6059e0d5-a7a8-4b9b-9d23-8b44a9175a59","object":"chat.completion.chunk","created":1762854974,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[],"usage":{"queue_time":0.162791944,"prompt_tokens":93,"prompt_time":0.014461869,"completion_tokens":21,"completion_time":0.067222006,"total_tokens":114,"total_time":0.081683875},"service_tier":"on_demand"} data: [DONE] @@ -39,7 +39,7 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 169.217209ms + duration: 289.580708ms - id: 1 request: proto: HTTP/1.1 @@ -54,7 +54,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.groq.com/openai/v1/chat/completions method: POST response: @@ -63,55 +63,43 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k62v69nqexz91h2x5y0qygzz"}} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k9s5gdbweht9vbmhq6m82xx5"}} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"It"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":"Fl"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"’s"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":"ore"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" currently"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":"nce"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"40"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" Italy"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" °"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" is"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"C"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" currently"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" ("},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" experiencing"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"about"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" very"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" hot"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"104"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" weather"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" °"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" at"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"F"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":")"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":"40"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":"°C"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" Florence"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"x_groq":{"id":"req_01k9s5gdbweht9vbmhq6m82xx5","usage":{"queue_time":0.162467912,"prompt_tokens":132,"prompt_time":0.020355587,"completion_tokens":17,"completion_time":0.063136224,"total_tokens":149,"total_time":0.083491811}},"usage":{"queue_time":0.162467912,"prompt_tokens":132,"prompt_time":0.020355587,"completion_tokens":17,"completion_time":0.063136224,"total_tokens":149,"total_time":0.083491811}} - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" Italy"},"logprobs":null,"finish_reason":null}]} - - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"—"},"logprobs":null,"finish_reason":null}]} - - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"quite"},"logprobs":null,"finish_reason":null}]} - - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" hot"},"logprobs":null,"finish_reason":null}]} - - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"!"},"logprobs":null,"finish_reason":null}]} - - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"x_groq":{"id":"req_01k62v69nqexz91h2x5y0qygzz","usage":{"queue_time":0.035569563,"prompt_tokens":139,"prompt_time":0.016770892,"completion_tokens":23,"completion_time":0.079470705,"total_tokens":162,"total_time":0.096241597}},"usage":{"queue_time":0.035569563,"prompt_tokens":139,"prompt_time":0.016770892,"completion_tokens":23,"completion_time":0.079470705,"total_tokens":162,"total_time":0.096241597}} - - data: {"id":"chatcmpl-8c7b9aab-0f33-4e49-a85c-a767e9f10cb3","object":"chat.completion.chunk","created":1758884734,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[],"usage":{"queue_time":0.035569563,"prompt_tokens":139,"prompt_time":0.016770892,"completion_tokens":23,"completion_time":0.079470705,"total_tokens":162,"total_time":0.096241597},"service_tier":"on_demand"} + data: {"id":"chatcmpl-e14af5f2-dcb6-4bfb-9fce-dbe848e76368","object":"chat.completion.chunk","created":1762854975,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_3312304636","choices":[],"usage":{"queue_time":0.162467912,"prompt_tokens":132,"prompt_time":0.020355587,"completion_tokens":17,"completion_time":0.063136224,"total_tokens":149,"total_time":0.083491811},"service_tier":"on_demand"} data: [DONE] @@ -120,4 +108,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 125.265708ms + duration: 251.184375ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/multi_tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/multi_tool.yaml index d9af928327d31926e254f754a87a4091829c6ea3..75d4faff6b38acff56e73efcd3535af229ce5771 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/multi_tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/multi_tool.yaml @@ -6,9 +6,9 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 849 + content_length: 829 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"zai-org/GLM-4.6:cerebras","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json @@ -23,21 +23,21 @@ interactions: proto_major: 2 proto_minor: 0 content_length: -1 - body: '{"id":"chatcmpl-7903d21a-4ce4-4c3c-80b0-26c4486da856","choices":[{"finish_reason":"tool_calls","index":0,"message":{"tool_calls":[{"id":"636c4f780","type":"function","function":{"name":"add","arguments":"{\"a\": 2, \"b\": 3}"}},{"id":"0e7c8838b","type":"function","function":{"name":"multiply","arguments":"{\"a\": 2, \"b\": 3}"}}],"role":"assistant"}}],"created":1761070222,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion","usage":{"prompt_tokens":412,"completion_tokens":59,"total_tokens":471,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.000492824,"prompt_time":0.003602156,"completion_time":0.029433121,"total_time":0.03494548797607422,"created":1761070222.626673}}' + body: '{"id":"chatcmpl-7189d22c-3447-47bd-99e5-5e5b509d6373","choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"\nI''ll add and multiply the numbers 2 and 3 for you.\n","reasoning":"The user wants me to add and multiply the numbers 2 and 3. Looking at the available functions, I have:\n1. add function - to add two numbers\n2. multiply function - to multiply two numbers\n\nI need to call both functions as instructed. Let me call both functions with a=2 and b=3.","tool_calls":[{"id":"4f736900e","type":"function","function":{"name":"add","arguments":"{\"a\": 2, \"b\": 3}"}},{"id":"c69319726","type":"function","function":{"name":"multiply","arguments":"{\"a\": 2, \"b\": 3}"}}],"role":"assistant"}}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion","usage":{"total_tokens":430,"completion_tokens":128,"prompt_tokens":302},"time_info":{"queue_time":0.003482136,"prompt_time":0.007521096,"completion_time":0.148015855,"total_time":0.16007018089294434,"created":1762855260.7792244}}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 417.164875ms + duration: 523.183584ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1200 + content_length: 1247 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"636c4f780","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"0e7c8838b","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"636c4f780","role":"tool"},{"content":"6","tool_call_id":"0e7c8838b","role":"tool"}],"model":"Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"\nI''ll add and multiply the numbers 2 and 3 for you.\n","tool_calls":[{"id":"4f736900e","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"c69319726","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"4f736900e","role":"tool"},{"content":"6","tool_call_id":"c69319726","role":"tool"}],"model":"zai-org/GLM-4.6:cerebras","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json @@ -52,10 +52,10 @@ interactions: proto_major: 2 proto_minor: 0 content_length: -1 - body: '{"id":"chatcmpl-11d40720-9356-401e-840c-354c845cc02e","choices":[{"finish_reason":"stop","index":0,"message":{"content":"The sum of 2 and 3 is 5, and the product of 2 and 3 is 6.","role":"assistant"}}],"created":1761070220,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion","usage":{"prompt_tokens":492,"completion_tokens":26,"total_tokens":518,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.00014209,"prompt_time":0.005866093,"completion_time":0.009498776,"total_time":0.016791582107543945,"created":1761070220.5671532}}' + body: '{"id":"chatcmpl-79f11d7a-dc2b-4e3e-9051-d44712aa2780","choices":[{"finish_reason":"stop","index":0,"message":{"content":"\nThe results are:\n- Addition: 2 + 3 = 5\n- Multiplication: 2 × 3 = 6","role":"assistant"}}],"created":1762855280,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion","usage":{"total_tokens":408,"completion_tokens":32,"prompt_tokens":376},"time_info":{"queue_time":0.003082643,"prompt_time":0.008120705,"completion_time":0.030221978,"total_time":0.043164968490600586,"created":1762855280.5628223}}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 439.567542ms + duration: 19.670645958s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/multi_tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/multi_tool_streaming.yaml index b737c0e2b32579d7b072ac9da6273da9c8c61e84..85ec42ba0c3202c0c5ffc18b56b896b8d03197c5 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/multi_tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/multi_tool_streaming.yaml @@ -6,9 +6,9 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 886 + content_length: 866 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"zai-org/GLM-4.6:cerebras","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json @@ -24,26 +24,44 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"chatcmpl-fbef6a2f-2f11-4004-aa3d-797c76e902e4","choices":[{"delta":{"role":"assistant"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"content":"","role":"assistant"},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-fbef6a2f-2f11-4004-aa3d-797c76e902e4","choices":[{"delta":{"tool_calls":[{"function":{"name":"add","arguments":"{\"a\": 2, \"b\": 3}"},"type":"function","id":"49253c956","index":0},{"function":{"name":"multiply","arguments":"{\"a\": 2, \"b\": 3}"},"type":"function","id":"6a614264b","index":1}]},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"reasoning":""},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-fbef6a2f-2f11-4004-aa3d-797c76e902e4","choices":[{"delta":{},"finish_reason":"tool_calls","index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk","usage":{"prompt_tokens":408,"completion_tokens":59,"total_tokens":467,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.000118501,"prompt_time":0.003364192,"completion_time":0.031095836,"total_time":0.036528825759887695,"created":1761070223.457216}} + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"reasoning":""},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"content":"\nI"},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"content":"'ll add"},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"content":" and"},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"content":" multiply"},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"content":" the numbers 2"},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"content":" and 3 for you"},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"content":".\n"},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{"tool_calls":[{"function":{"name":"add","arguments":"{\"a\": 2, \"b\": 3}"},"type":"function","id":"5ffda67d4","index":0},{"function":{"name":"multiply","arguments":"{\"a\": 2, \"b\": 3}"},"type":"function","id":"64c2d22d0","index":1}]},"index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-9a97fd4d-1e78-462a-920f-fca9d74b2f42","choices":[{"delta":{},"finish_reason":"tool_calls","index":0}],"created":1762855283,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk","usage":{"total_tokens":358,"completion_tokens":60,"prompt_tokens":298},"time_info":{"queue_time":0.00408092,"prompt_time":0.006777905,"completion_time":0.048781309,"total_time":0.062016963958740234,"created":1762855283.6442046}} headers: Content-Type: - text/event-stream; charset=utf-8 status: 200 OK code: 200 - duration: 324.113458ms + duration: 363.296791ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1237 + content_length: 1284 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"49253c956","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"6a614264b","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"49253c956","role":"tool"},{"content":"6","tool_call_id":"6a614264b","role":"tool"}],"model":"Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"\nI''ll add and multiply the numbers 2 and 3 for you.\n","tool_calls":[{"id":"5ffda67d4","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"64c2d22d0","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"5ffda67d4","role":"tool"},{"content":"6","tool_call_id":"64c2d22d0","role":"tool"}],"model":"zai-org/GLM-4.6:cerebras","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json @@ -59,65 +77,27 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"role":"assistant"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":"The"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" sum"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" of"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" "},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":"2"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" and"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" "},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":"3"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" is"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" "},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":"5"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":","},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" and"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" the"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" product"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" of"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" "},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":"2"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} - - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" and"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-cb515f18-8a70-4aef-88ee-347cc2af9f6d","choices":[{"delta":{"content":"","role":"assistant"},"index":0}],"created":1762855284,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" "},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-cb515f18-8a70-4aef-88ee-347cc2af9f6d","choices":[{"delta":{"reasoning":""},"index":0}],"created":1762855284,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":"3"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-cb515f18-8a70-4aef-88ee-347cc2af9f6d","choices":[{"delta":{"reasoning":""},"index":0}],"created":1762855284,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" is"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-cb515f18-8a70-4aef-88ee-347cc2af9f6d","choices":[{"delta":{"content":"\nFor the numbers 2"},"index":0}],"created":1762855284,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":" "},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-cb515f18-8a70-4aef-88ee-347cc2af9f6d","choices":[{"delta":{"content":" and 3:\n\n-"},"index":0}],"created":1762855284,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":"6"},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-cb515f18-8a70-4aef-88ee-347cc2af9f6d","choices":[{"delta":{"content":" Addition:"},"index":0}],"created":1762855284,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{"content":"."},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-cb515f18-8a70-4aef-88ee-347cc2af9f6d","choices":[{"delta":{"content":" 2 + 3 = 5\n- Multip"},"index":0}],"created":1762855284,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{},"index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-cb515f18-8a70-4aef-88ee-347cc2af9f6d","choices":[{"delta":{"content":"lication: 2 × 3 = 6"},"index":0}],"created":1762855284,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-c10d1909-8b70-432c-8db0-5469e1d510bb","choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1761070223,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk","usage":{"prompt_tokens":488,"completion_tokens":26,"total_tokens":514,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.001117439,"prompt_time":0.006053757,"completion_time":0.009437543,"total_time":0.018548250198364258,"created":1761070223.8780432}} + data: {"id":"chatcmpl-cb515f18-8a70-4aef-88ee-347cc2af9f6d","choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1762855284,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk","usage":{"total_tokens":409,"completion_tokens":37,"prompt_tokens":372},"time_info":{"queue_time":0.003343426,"prompt_time":0.008747444,"completion_time":0.023277878,"total_time":0.037343502044677734,"created":1762855284.1050324}} headers: Content-Type: - text/event-stream; charset=utf-8 status: 200 OK code: 200 - duration: 379.856833ms + duration: 377.104625ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/simple.yaml b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/simple.yaml index c48d56d8f932d0d1137d9e1d5088f1ed1a5da433..feb786ac002e8e07c086c3144d3b420c94fab5c9 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/simple.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/simple.yaml @@ -6,9 +6,9 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 194 + content_length: 174 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras","max_tokens":4000}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"zai-org/GLM-4.6:cerebras","max_tokens":4000}' headers: Accept: - application/json @@ -23,10 +23,10 @@ interactions: proto_major: 2 proto_minor: 0 content_length: -1 - body: '{"id":"chatcmpl-9896e784-1a94-43f8-b06e-e673f36b4d66","choices":[{"finish_reason":"stop","index":0,"message":{"content":"Olá!","role":"assistant"}}],"created":1761070217,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion","usage":{"prompt_tokens":22,"completion_tokens":4,"total_tokens":26,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.000123411,"prompt_time":0.002289408,"completion_time":0.00336861,"total_time":0.0072479248046875,"created":1761070217.7655818}}' + body: '{"id":"chatcmpl-046a135e-e42b-4078-8359-9d5e76358644","choices":[{"finish_reason":"stop","index":0,"message":{"content":"\nOlá!\n\nHere are the most common ways to say hello in Portuguese, depending on the situation:\n\n### The Most Common \"Hi\"\n\n* **Oi!** (Oh-ee)\n This is the most direct translation of \"hi.\" It''s very common and informal, used with friends and family, especially in **Brazil**. It''s understood in **Portugal** but less common than \"Olá.\"\n\n### The All-Purpose \"Hello\"\n\n* **Olá!** (Oh-LAH)\n This is the most versatile greeting. It can be used in both formal and informal situations, anytime of day, and is common in both **Brazil and Portugal**. If you''re unsure which one to use, \"Olá\" is always a safe choice.\n\n### Greetings by Time of Day\n\nJust like in English, you can greet people based on the time of day. These are used in all Portuguese-speaking countries.\n\n* **Bom dia** (bong DEE-ah) — Good morning\n* **Boa tarde** (boh-AH tardjee) — Good afternoon\n* **Boa noite** (boh-AH noytchee) — Good evening / Good night\n * Note: You use **Boa noite** to greet someone in the evening and also to say goodnight when leaving or going to bed.\n\n### A Quick Summary\n\n| English | Portuguese | Formality | Best for... |\n|:-------------- |:---------------------|:------------------------|:------------------------------------------|\n| Hi | **Oi!** | Informal | Friends, family, casual situations (BR) |\n| Hello | **Olá!** | Formal / Informal | Any situation, anywhere. The safest bet. |\n| Good morning | **Bom dia** | Formal / Informal | Before noon. |\n| Good afternoon | **Boa tarde** | Formal / Informal | From noon until the evening. |\n| Good evening | **Boa noite** | Formal / Informal | In the evening and to say goodnight. |\n\nWant to follow up \"hi\" with \"how are you?\" The most common way is:\n\n* **Tudo bem?** (Too-doh beng?) — Literally \"Everything well?\" but used as \"How are you?\"","reasoning":"\n1. **Analyze the User''s Request:** The user wants to know how to say \"hi\" in Portuguese. This is a very direct, simple translation request.\n\n2. **Identify the Core Task:** Translate the English word \"hi\" into its Portuguese equivalent(s).\n\n3. **Initial Brainstorming & Keyword Association:**\n * Portuguese.\n * Greeting.\n * \"Hi\".\n * \"Hello\".\n * Informal. Formal.\n * Good morning. Good afternoon. Good evening.\n * What are the variations?\n * In what contexts are they used?\n * Brazil vs. Portugal. Are there differences? (This is a key point for any Romance language).\n\n4. **Structure the Answer:** I want to provide more than just a single word. A good answer will be helpful, clear, and provide context. A good structure would be:\n * Start with the most direct and common answer.\n * Provide alternatives (formal/informal, different times of day).\n * Explain the differences and when to use each one.\n * Mention the Brazil vs. Portugal distinction, as it''s very important for Portuguese.\n * Add a little \"extra\" – like how to ask \"How are you?\" to make the interaction more natural. This anticipates the user''s next logical question.\n * End with a friendly closing.\n\n5. **Drafting - Section by Section:**\n\n * **Direct Answer (The \"TL;DR\"):** The most common and direct translation of \"hi\" is **\"Oi\"**. I''ll put this first, in bold, to make it stand out immediately.\n\n * **Elaboration on \"Oi\":**\n * Pronunciation: \"oh-ee\". This is crucial for a non-speaker. I should include a simple phonetic guide.\n * Usage: It''s informal, like \"hi\" in English. Used with friends, family, people you know well. It''s very common in Brazil. It''s used in Portugal too, but maybe slightly less than other greetings? (I should double-check this. Yes, it''s understood and used in Portugal, but *Olá* is perhaps more standard/multi-purpose there). I''ll make a note of this.\n\n * **Formal/Basic Greeting:** The equivalent of \"Hello\" is **\"Olá\"**.\n * Pronunciation: \"oh-LAH\". I need to mention the stress on the second syllable.\n * Usage: It''s more versatile than \"Oi\". It can be used in formal and informal situations. It works anytime of day. It''s the safest bet if you''re unsure. It''s extremely common in both Brazil and Portugal.\n\n * **Time-of-Day Greetings:** This is a standard part of Romance languages and very useful for the user.\n * **Bom dia:** \"Good morning.\"\n * **Boa tarde:** \"Good afternoon.\"\n * **Boa noite:** \"Good evening / Good night.\"\n * I should explain that \"Boa noite\" is used both as a greeting in the evening and as a way to say goodbye at night. This is a common point of confusion for English speakers. I''ll explicitly state this.\n * I''ll also add a quick pronunciation guide for each one. This adds a lot of value.\n\n * **Brazil vs. Portugal Nuances:** This is a great \"value-add.\"\n * In **Brazil**: \"Oi\" is super common and informal. \"E aí?\" (Eh-eye?) or \"Beleza?\" are very common informal follow-ups, like \"What''s up?\". I should include this to make the greeting more complete and natural.\n * In **Portugal**: \"Olá\" is the most standard. Informal greetings might include \"Viva\" (a bit more enthusiastic/older-fashioned but still used) or simply \"Está tudo bem?\". I should mention that \"Oi\" is understood but less common than in Brazil. Using \"Olá\" is a safer bet for a tourist.\n\n * **Putting it all together (A summary table/list):** A quick summary helps users scan and find the right option quickly. I''ll create a simple list format:\n\n * **Informal \"Hi\":** Oi (Mostly Brazil, but understood everywhere)\n * **Universal \"Hello\":** Olá (Works in any situation)\n * **By time of day:** Bom dia / Boa tarde / Boa noite\n\n * **Bonus Content:** How to ask \"How are you?\"\n * Common phrase: **Tudo bem?** (Too-doh beng?)\n * Explain it means \"Is everything well?\" or just \"How are you?\".\n * Explain the standard response: **Tudo bem.** (Everything''s well.) or **Tudo bom.** (Everything''s good.) This is a very common exchange and teaching both sides is very helpful.\n\n6. **Review and Refine:** Read through the entire answer.\n * Is it clear? Yes.\n * Is it accurate? Yes.\n * Is it easy to read? The use of bolding, bullet points, and lists helps a lot.\n * Is the tone helpful and friendly? Yes.\n * Did I answer the user''s question directly and also provide useful, related information? Yes. The structure from simple to complex works well. The pronunciation guides are a key feature. The Brazil/Portugal distinction is an important detail. The \"How are you?\" part is a proactive addition.","role":"assistant"}}],"created":1762855217,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion","usage":{"total_tokens":1714,"completion_tokens":1698,"prompt_tokens":16},"time_info":{"queue_time":0.000135781,"prompt_time":0.003248146,"completion_time":2.603353152,"total_time":2.6080667972564697,"created":1762855217.1120505}}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 663.689958ms + duration: 3.291823958s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/simple_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/simple_streaming.yaml index 2a4b8b27e93194931f5095f08f7eeda26ec6d53c..917ae0d73739a103f9498ef3828de3f1afb67605 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/simple_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/simple_streaming.yaml @@ -6,9 +6,9 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 248 + content_length: 228 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras","max_tokens":4000,"stream_options":{"include_usage":true},"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"zai-org/GLM-4.6:cerebras","max_tokens":4000,"stream_options":{"include_usage":true},"stream":true}' headers: Accept: - application/json @@ -24,19 +24,713 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"chatcmpl-6ee1d665-644a-4dda-81c6-7f6590a4fc84","choices":[{"delta":{"role":"assistant"},"index":0}],"created":1761070218,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":"","role":"assistant"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-6ee1d665-644a-4dda-81c6-7f6590a4fc84","choices":[{"delta":{"content":"Oi"},"index":0}],"created":1761070218,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-6ee1d665-644a-4dda-81c6-7f6590a4fc84","choices":[{"delta":{"content":"!"},"index":0}],"created":1761070218,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"1. **Analyze the User's Request"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-6ee1d665-644a-4dda-81c6-7f6590a4fc84","choices":[{"delta":{},"index":0}],"created":1761070218,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":":** The user"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-6ee1d665-644a-4dda-81c6-7f6590a4fc84","choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1761070218,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk","usage":{"prompt_tokens":22,"completion_tokens":3,"total_tokens":25,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.0001041,"prompt_time":0.002245652,"completion_time":0.003623067,"total_time":0.008143901824951172,"created":1761070218.1551065}} + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"'s request is"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" very simple and direct"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":": \"Say hi in Portuguese\".\n\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"2. "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" **Identify the"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" Core Task:** The core task is"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" to provide the Portuguese translation"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" of"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" the English word"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"hi\".\n\n3. **Initial Knowledge"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" Retrie"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"val:** I"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" access my"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" internal knowledge base for translations"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" * \"Hi\" is an"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" informal greeting"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" * The most"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" common, direct"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":", and informal translation"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" for"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \"hi"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"\" in Portuguese is \"Oi\".\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" * I should"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" also consider other greetings."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" What"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" are"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" the nuances"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"?\n\n4"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":". **Brainstorm"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" Portuguese G"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"reetings & Their"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" Context"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"s:"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"**\n * **Oi:**"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" This is"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" the most direct equivalent of"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"Hi\"."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" It's informal,"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" used with"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" friends,"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" family, people you"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" know well"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":". It's universally understood"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" in both"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" Brazil"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" and Portugal. This is the primary answer.\n * **Olá:** This is a"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" bit more"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" formal than \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"Oi\" but"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" still very"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" common. It's like \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"Hello\". It's"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" a safe bet"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" in"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" almost"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" any situation"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":", informal or slightly formal"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" I should"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" include this as a good alternative"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n * **Bom dia:** This means"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \"Good morning\". It"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"'s a very common greeting"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":", but it's time"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"-specific."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" I should"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" mention this. It"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"'s used until"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" around noon"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" * **Boa tarde:**"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" This means"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \"Good afternoon\". Also time"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"-specific, used from"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" noon until"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" evening/d"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"usk"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" * **Boa noite:** This means \"Good evening\" or"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \"Good night\". It's"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" used from dusk onwards"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" and"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" can be"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" both a"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" greeting"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" and a"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" farewell. This is an"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" important distinction"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" to make.\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" * **E aí"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"? / Be"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"le"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"za?"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" (Brazil"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"ian slang"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"):"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"** These are"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" very informal"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":", like \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"What's"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" up?\"."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" They are specific to"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" Brazil ("},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"or"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" at least"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" much more"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" common"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" there) and very casual"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" I should include these to provide"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" more depth"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" and"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" show a better"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" understanding of"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" colloquial"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" language.\n * **"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"Tudo bem"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"?:**"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" Literally"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \"Is everything"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" well"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"?\". It's used"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" both as"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" a"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" greeting (\"How are"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" you?\") and"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" a response to \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"Oi"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"\""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" or \"Olá\". Worth mentioning"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n\n5."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" **Structure the Answer:** I need to present this information clearly and concis"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"ely, without"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" overwhelming"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" the user"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":". A good structure would be:\n\n * **Start with"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" the most direct answer:** The"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" user asked"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" for \"hi\", so"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" give them \"Oi\" right away"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":". Make it"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" bold and clear"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n * **Provide the most"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" common alternative:** Give \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"Olá\" next as"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" a"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" slightly more"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" formal but very"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" frequent"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" option"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":". Explain the"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" difference in form"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"ality"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" * **Offer time-specific"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" greetings:** Group \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"Bom"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" dia\", \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"Boa tarde\", and \"Boa noite\" together and explain"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" when to use"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" them."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" This is very"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" useful practical"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" information"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n * **Add informal"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"/s"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"lang options"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" (optional"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" but"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" good for value"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"):**"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" Include a couple of"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" very informal"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" options"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" like \"E aí?\" and specify"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" that"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" they are"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" more common in Brazil and"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" used with friends"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" This adds a"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" layer of cultural and"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" linguistic nu"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"ance.\n * **Provide"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" a simple"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" closing:**"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" A friendly closing like \"Hope this"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" helps"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"!\" or just a"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" clean layout"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" is good"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n\n6. **Draft"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" the Content (incorporating the structure):**\n\n * *Initial"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" thought:* \"Oi.\" ->"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" *"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"Too brief"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":". The"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" user might want"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" more"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" context.*\n\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" * *Second draft:"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"*\n The most common"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" way to say"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \"hi\" in Portuguese is:\n "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" **Oi!"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"**\n "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" It's informal,"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" like"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"hi,\""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" and"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" used"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" with friends"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" and family.\n You"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" can also"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" say:\n **Olá!**\n This is"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" more like"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \"hello"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"\" and"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" can be"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" used in more situations.\n\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" * *Refined"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" draft"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" (adding the"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" time"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"-of-day"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" greetings):"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"*\n The most common and direct"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" way to say \"hi\" in Portuguese is:\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" **Oi!**\n\n For"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" a slightly"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" more formal or general"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" greeting"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" (like"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \"hello\"), you can use:\n **Olá!"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"**\n\n You can also"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" use time-of"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"-day"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" greetings, which"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" are"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" very common:\n * **Bom dia** -"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" Good"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" morning\n * **Boa tarde** - Good afternoon\n * **Bo"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"a noite** - Good evening / Good"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" night\n\n *"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" *Final Polish (adding slang and"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" pronunciation/pr"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"actical"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" tips"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"):*\n I'll"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" start with the direct answer"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":", bold"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"ed,"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" for"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" maximum"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" clarity"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":".\n\n "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" **Oi!** (pronounced"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" roughly \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"oy\")\n\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" This is"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" the most common and direct equivalent of"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" \"hi.\""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" It's"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" informal and used with"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" friends,"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" family,"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" and people you know well.\n\n Here are"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" a few"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" other options,"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" depending on the situation:\n\n **Ol"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"á** ("},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"pronounced \"oh-LAH\")\n "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" * "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" This is like \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"hello.\" It"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"'s a bit more"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" formal than \""},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"Oi\" but still very common and works"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" in"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" almost any situation.\n\n You can"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" also use greetings based"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" on the"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" time of day:\n * **Bom dia** - Good"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" morning\n * **Boa tarde** - Good afternoon"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"\n * **Boa noite** - Good evening / Good night\n\n And for"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" very informal"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" situations with"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" friends"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" (especially in"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" Brazil):\n *"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" **E aí?** - What"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"'s up?\n *"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" **Tudo bem"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"?** - How's it"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" going? / Everything"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" okay"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"?\n\n"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"7."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" **Review and Final"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"ize:** The final draft"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" is excellent."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" It's comprehensive but"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" not"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" overwhelming. It gives the"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" direct answer first,"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" then provides context,"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" alternatives,"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" and cultural nuances."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" The pronunciation guides"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" are"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" a helpful"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" touch."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" The formatting with"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" bold"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" text and"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" bullet points"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" makes it easy to read. This is"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" the version"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":" I'll output"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"reasoning":"."},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":"\nThe most"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" common way to say \"hi"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":"\" in Portuguese is:\n\n**Oi!**\n\nIt's"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" informal, just like"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" \"hi,\" and is used with friends, family"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":", and people you know well.\n\nHere are a"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" few other options:\n\n* "},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" **Olá** -"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" This is like \"hello"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":".\" It's"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" a bit more formal than *Oi"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":"* but works in almost"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" any situation.\n\nYou"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" can also use greetings based"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" on the time of day"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":":\n\n* **Bom"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":" dia** - Good morning\n* **Boa tarde** - Good afternoon\n* **Bo"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{"content":"a noite** - Good evening / Good night"},"index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-6e7970f4-2fbf-43c3-9847-3fc8717703e9","choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1762855220,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk","usage":{"total_tokens":1337,"completion_tokens":1321,"prompt_tokens":16},"time_info":{"queue_time":0.00012731,"prompt_time":0.004064561,"completion_time":1.739690271,"total_time":1.7457032203674316,"created":1762855220.2438056}} headers: Content-Type: - text/event-stream; charset=utf-8 status: 200 OK code: 200 - duration: 371.201333ms + duration: 319.948458ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/tool.yaml index b6bf31daba7e9fa1af8dd6c53cc5d1ec72a82053..9975105962046d4229fbf7ecd1ead6edbd77557b 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/tool.yaml @@ -6,9 +6,9 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 486 + content_length: 466 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"zai-org/GLM-4.6:cerebras","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json @@ -23,21 +23,21 @@ interactions: proto_major: 2 proto_minor: 0 content_length: -1 - body: '{"id":"chatcmpl-fb490edc-2dc0-436e-83cb-ee109fd3e387","choices":[{"finish_reason":"tool_calls","index":0,"message":{"tool_calls":[{"id":"a937be9d7","type":"function","function":{"name":"weather","arguments":"{\"location\": \"Florence,Italy\"}"}}],"role":"assistant"}}],"created":1761070221,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion","usage":{"prompt_tokens":277,"completion_tokens":25,"total_tokens":302,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.000135531,"prompt_time":0.009486813,"completion_time":0.016420409,"total_time":0.027780532836914062,"created":1761070221.021929}}' + body: '{"id":"chatcmpl-9ed5d57c-2570-4ccd-8a72-6f22c8577e98","choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"\nI''ll get the weather information for Florence, Italy for you.\n","reasoning":"The user is asking for weather information for Florence, Italy. I need to use the weather function with the location parameter. The user specified \"Florence,Italy\" which I should use exactly as provided, or I could use just \"Florence\" since that''s the city name. Let me check the function parameters - it requires a \"location\" parameter which is described as \"the city\". I think \"Florence\" would be sufficient, but since they specifically included \"Italy\" I should probably use \"Florence,Italy\" to be more precise.","tool_calls":[{"id":"17412c140","type":"function","function":{"name":"weather","arguments":"{\"location\": \"Florence,Italy\"}"}}],"role":"assistant"}}],"created":1762855222,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion","usage":{"total_tokens":331,"completion_tokens":144,"prompt_tokens":187},"time_info":{"queue_time":0.005854158,"prompt_time":0.008443714,"completion_time":0.295474428,"total_time":0.3114504814147949,"created":1762855222.3435056}}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 401.073917ms + duration: 688.961166ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 698 + content_length: 756 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"a937be9d7","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"a937be9d7","role":"tool"}],"model":"Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"\nI''ll get the weather information for Florence, Italy for you.\n","tool_calls":[{"id":"17412c140","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"17412c140","role":"tool"}],"model":"zai-org/GLM-4.6:cerebras","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json @@ -52,10 +52,10 @@ interactions: proto_major: 2 proto_minor: 0 content_length: -1 - body: '{"id":"chatcmpl-e3575be7-5855-4bfb-b911-1e1c7cd30faf","choices":[{"finish_reason":"stop","index":0,"message":{"content":"The current weather in Florence, Italy is 40°C.","role":"assistant"}}],"created":1761070221,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion","usage":{"prompt_tokens":319,"completion_tokens":14,"total_tokens":333,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.000320512,"prompt_time":0.01004831,"completion_time":0.008558245,"total_time":0.02015233039855957,"created":1761070221.4201767}}' + body: '{"id":"chatcmpl-6e9e46c1-c111-4fc0-8648-8dffcbf32a72","choices":[{"finish_reason":"stop","index":0,"message":{"content":"\nThe weather in Florence, Italy is currently 40°C (which is quite hot - about 104°F). This is very warm weather, so if you''re planning to be outdoors there, you''ll want to stay hydrated and seek shade when possible.","role":"assistant"}}],"created":1762855242,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion","usage":{"total_tokens":282,"completion_tokens":54,"prompt_tokens":228},"time_info":{"queue_time":0.004272864,"prompt_time":0.004543828,"completion_time":0.094835176,"total_time":0.105194091796875,"created":1762855242.5629983}}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 382.941875ms + duration: 20.019286708s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/tool_streaming.yaml index 88e177dc1badbd564dd7374e4b77a67913139cf9..d1eb7cec3abc9cc5b7f5c1b1667919bbee6660ff 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/huggingface-qwen3-coder/tool_streaming.yaml @@ -6,9 +6,9 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 540 + content_length: 520 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"zai-org/GLM-4.6:cerebras","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json @@ -24,26 +24,88 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"chatcmpl-1ca2f710-7a38-402a-a08b-af2ffa91d70a","choices":[{"delta":{"role":"assistant"},"index":0}],"created":1761070221,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"content":"","role":"assistant"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-1ca2f710-7a38-402a-a08b-af2ffa91d70a","choices":[{"delta":{"tool_calls":[{"function":{"name":"weather","arguments":"{\"location\": \"Florence,Italy\"}"},"type":"function","id":"0da2f2748","index":0}]},"index":0}],"created":1761070221,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":""},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-1ca2f710-7a38-402a-a08b-af2ffa91d70a","choices":[{"delta":{},"finish_reason":"tool_calls","index":0}],"created":1761070221,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk","usage":{"prompt_tokens":277,"completion_tokens":25,"total_tokens":302,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.000467134,"prompt_time":0.008837703,"completion_time":0.016987548,"total_time":0.02814340591430664,"created":1761070221.7568507}} + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":"The user is"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" asking"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" for weather information"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" for Florence, Italy. I need to use the weather function with"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" the"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" location parameter."},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" The"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" user specified"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" \""},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":"Florence"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":",Italy\" as"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" the location. I"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" should"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" use"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" this"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" exactly as"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" provided since"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" it"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" includes both"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" the"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" city and country information which"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" will"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" help"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" get"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":" accurate results"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":"."},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"reasoning":""},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"content":"\n"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"content":"I'll get the"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"content":" weather information for Florence, Italy for you.\n"},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{"tool_calls":[{"function":{"name":"weather","arguments":"{\"location\": \"Florence,Italy\"}"},"type":"function","id":"75314f724","index":0}]},"index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-cd1b3de5-3a2b-4246-ba7f-583eb2eddfbd","choices":[{"delta":{},"finish_reason":"tool_calls","index":0}],"created":1762855240,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk","usage":{"total_tokens":279,"completion_tokens":92,"prompt_tokens":187},"time_info":{"queue_time":0.004136448,"prompt_time":0.005123835,"completion_time":0.16235391,"total_time":0.17365789413452148,"created":1762855240.359195}} headers: Content-Type: - text/event-stream; charset=utf-8 status: 200 OK code: 200 - duration: 429.335958ms + duration: 348.470333ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 752 + content_length: 810 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"0da2f2748","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"0da2f2748","role":"tool"}],"model":"Qwen/Qwen3-Coder-480B-A35B-Instruct:cerebras","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"\nI''ll get the weather information for Florence, Italy for you.\n","tool_calls":[{"id":"75314f724","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"75314f724","role":"tool"}],"model":"zai-org/GLM-4.6:cerebras","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json @@ -59,41 +121,109 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"role":"assistant"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":"","role":"assistant"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"reasoning":""},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"reasoning":""},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":"\nThe current weather"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" in Florence, Italy"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" is"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" 40°C, which"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" is"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" quite"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" hot"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":"!"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" This"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" is"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" a"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" very"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" warm"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" temperature"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":","},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" so"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" if"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" you"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":"'re"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" planning"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" to"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" visit"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" or"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" have"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" activities"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" planned"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" there"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":","},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" you"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":"'ll"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" want"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} + + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" to"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":"The"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" be"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":" current"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" prepared"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":" weather"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" for"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":" in"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" the"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":" Florence"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" heat"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":","},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":"."},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":" Italy"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" Make"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":" is"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" sure"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":" "},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" to"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":"4"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" stay"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":"0"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" hydrated and seek shade"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":"°C"},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" when"},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{"content":"."},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{"content":" possible."},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{},"index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{},"index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk"} - data: {"id":"chatcmpl-ae6007c3-7cc3-4add-ab2f-f177d907838c","choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1761070219,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk","usage":{"prompt_tokens":319,"completion_tokens":14,"total_tokens":333,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.00013387,"prompt_time":0.010714015,"completion_time":0.009309609,"total_time":0.02214217185974121,"created":1761070219.7154236}} + data: {"id":"chatcmpl-7aa67568-b556-4b17-b0a9-5cd878985e99","choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion.chunk","usage":{"total_tokens":290,"completion_tokens":62,"prompt_tokens":228},"time_info":{"queue_time":0.003050024,"prompt_time":0.003663248,"completion_time":0.23331325,"total_time":0.24212312698364258,"created":1762855260.1703784}} headers: Content-Type: - text/event-stream; charset=utf-8 status: 200 OK code: 200 - duration: 337.890125ms + duration: 19.633745459s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/simple.yaml b/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/simple.yaml index 32d07bb63b5de39b66ee4fcd12bde197c474e746..0ab835e29a65caeba8eec15d7f17cc37bb7c4220 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/simple.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/simple.yaml @@ -22,11 +22,11 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 780 - body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","reasoning_content":"User says: \"Say hi in Portuguese\". So just respond with \"Olá!\" Possibly also \"Oi!\" Should I reply in Portuguese? Likely just \"Olá!\". Use friendly tone.","content":"Olá!"}}],"created":1761672364,"model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion","usage":{"completion_tokens":49,"prompt_tokens":84,"total_tokens":133},"id":"chatcmpl-e6UiQRCWY30H3zRV5s6NwP6whRuauvgL","timings":{"cache_n":62,"prompt_n":22,"prompt_ms":3021.023,"prompt_per_token_ms":137.3192272727273,"prompt_per_second":7.282301392607735,"predicted_n":49,"predicted_ms":676.643,"predicted_per_token_ms":13.809040816326531,"predicted_per_second":72.41632589120111}}' + content_length: 760 + body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","reasoning_content":"The user says: \"Say hi in Portuguese\". So answer: \"Olá\" or \"Oi\". Likely \"Olá\". Probably a friendly greeting. Just respond with that.","content":"Olá!"}}],"created":1762855698,"model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion","usage":{"completion_tokens":47,"prompt_tokens":84,"total_tokens":131},"id":"chatcmpl-vR6SJg5NfJyDqhfDG37wzJGDJtoLvF2f","timings":{"cache_n":0,"prompt_n":84,"prompt_ms":292.377,"prompt_per_token_ms":3.4806785714285717,"prompt_per_second":287.3003006392431,"predicted_n":47,"predicted_ms":391.773,"predicted_per_token_ms":8.335595744680852,"predicted_per_second":119.96743011897196}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 3.946099125s + duration: 687.964334ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/simple_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/simple_streaming.yaml index d8e17b996d30605f6348a71b20633eb2d50aa6a7..9d2acfe76c9bf9399941e3d7c459e20a3c0373a1 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/simple_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/simple_streaming.yaml @@ -26,115 +26,105 @@ interactions: - chunked content_length: -1 body: |+ - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"User"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"The"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":":"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" user"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":":"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Say"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" hi"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Say"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" in"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" hi"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Portuguese"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" in"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\"."}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Portuguese"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" So"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\"."}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" we"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" They"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" answer"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" want"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" a"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Olá"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" greeting"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"!\""}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" in"}}],"created":1762855698,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" or"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Portuguese"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Oi"}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Simple"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"!\""}}],"created":1761672364,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":":"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" We"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" should"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Olá"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" be"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"!\""}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" helpful"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" or"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Provide"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Oi"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" a"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"!\"."}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" greeting"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Probably"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" in"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" respond"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Portuguese"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" with"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Possibly"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Olá"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" mention"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"!\""}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" that"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" or"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Olá"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Oi"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\""}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"!"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" is"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\"."}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" formal"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\n\nWe"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":","}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" should"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" keep"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Oi"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" it"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\""}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" concise"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" informal"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" We'll"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Let's"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" respond"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" answer"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" simply"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"Olá"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":":"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"!"}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":"stop","index":0,"delta":{}}],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Olá"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"!\""}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"Olá"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"!"}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":"stop","index":0,"delta":{}}],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[],"created":1761672365,"id":"chatcmpl-5P1d7PznEZm693insxrVQc0jmEtWlHUA","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk","usage":{"completion_tokens":62,"prompt_tokens":84,"total_tokens":146},"timings":{"cache_n":83,"prompt_n":1,"prompt_ms":14.682,"prompt_per_token_ms":14.682,"prompt_per_second":68.11061163329246,"predicted_n":62,"predicted_ms":871.397,"predicted_per_token_ms":14.054790322580645,"predicted_per_second":71.15011871741582}} + data: {"choices":[],"created":1762855699,"id":"chatcmpl-rd0JN5fzYlCrafuJEy6psZhukXbBVmTK","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk","usage":{"completion_tokens":57,"prompt_tokens":84,"total_tokens":141},"timings":{"cache_n":83,"prompt_n":1,"prompt_ms":8.996,"prompt_per_token_ms":8.996,"prompt_per_second":111.16051578479323,"predicted_n":57,"predicted_ms":484.01,"predicted_per_token_ms":8.49140350877193,"predicted_per_second":117.76616185616001}} data: [DONE] @@ -143,4 +133,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 780.083µs + duration: 755.667µs diff --git a/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/tool.yaml index c51f32fe1138ec2ab9b3abca3a42c4183f894320..10d82e6f842c9b1673434123cd99708214f8ce36 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/tool.yaml @@ -22,22 +22,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 803 - body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"role":"assistant","reasoning_content":"We need to call the weather function.","content":null,"tool_calls":[{"type":"function","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"id":"iSI9CucmKnbtrkxFldJPg3gSXbJ3Eom9"}]}}],"created":1761672366,"model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion","usage":{"completion_tokens":34,"prompt_tokens":139,"total_tokens":173},"id":"chatcmpl-5ubBAQ1OuDgakYNl3FcW2ZzxP6PLPfv4","timings":{"cache_n":59,"prompt_n":80,"prompt_ms":292.99,"prompt_per_token_ms":3.662375,"prompt_per_second":273.0468616676337,"predicted_n":34,"predicted_ms":462.897,"predicted_per_token_ms":13.614617647058823,"predicted_per_second":73.45046522228488}}' + content_length: 914 + body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"role":"assistant","reasoning_content":"The user asks: \"What''s the weather in Florence, Italy?\" We have a tool \"functions.weather\" that can get weather information. We should call it.","content":null,"tool_calls":[{"type":"function","function":{"name":"weather","arguments":"{\"location\":\"Florence,Italy\"}"},"id":"mvVq65j66dyGRizURhbdNCEnSO56GhXx"}]}}],"created":1762855699,"model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion","usage":{"completion_tokens":58,"prompt_tokens":139,"total_tokens":197},"id":"chatcmpl-xN1fVcGhqAh4SXLdsus63WtY5KhK0cv8","timings":{"cache_n":59,"prompt_n":80,"prompt_ms":138.363,"prompt_per_token_ms":1.7295375,"prompt_per_second":578.1892557981541,"predicted_n":58,"predicted_ms":483.677,"predicted_per_token_ms":8.339258620689655,"predicted_per_second":119.91473648736657}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 760.630834ms + duration: 625.633ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 729 + content_length: 898 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"iSI9CucmKnbtrkxFldJPg3gSXbJ3Eom9","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"iSI9CucmKnbtrkxFldJPg3gSXbJ3Eom9","role":"tool"}],"model":"openai/gpt-oss-20b","max_completion_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"mvVq65j66dyGRizURhbdNCEnSO56GhXx","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"The user asks: \"What''s the weather in Florence, Italy?\" We have a tool \"functions.weather\" that can get weather information. We should call it."},{"content":"40 C","tool_call_id":"mvVq65j66dyGRizURhbdNCEnSO56GhXx","role":"tool"}],"model":"openai/gpt-oss-20b","max_completion_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json @@ -51,11 +51,11 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1240 - body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","reasoning_content":"We have a response from the weather function: \"40 C\". The user asked: \"What''s the weather in Florence, Italy?\" The function returned \"40 C\". This is presumably the temperature. The assistant should respond accordingly, maybe confirm the weather. Also check if any other details needed. The user just asked for weather. So answer: \"The current temperature is 40°C.\" Maybe add a note that it''s high. Also can ask if they want more info. Probably just reply with the info.","content":"The current temperature in Florence, Italy is **40 °C**. If you need more details—like humidity, wind speed, or forecast—just let me know!"}}],"created":1761672368,"model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion","usage":{"completion_tokens":145,"prompt_tokens":175,"total_tokens":320},"id":"chatcmpl-FBssXUKqLhrUJRe6LEAGJVRpBGrzYITs","timings":{"cache_n":139,"prompt_n":36,"prompt_ms":147.533,"prompt_per_token_ms":4.098138888888888,"prompt_per_second":244.0132038255848,"predicted_n":145,"predicted_ms":2037.608,"predicted_per_token_ms":14.05246896551724,"predicted_per_second":71.16187215597897}}' + content_length: 646 + body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","content":"The current weather in Florence, Italy is **40 °C**."}}],"created":1762855700,"model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion","usage":{"completion_tokens":18,"prompt_tokens":213,"total_tokens":231},"id":"chatcmpl-mt9KdP2gwDDiYYxdoehItCfCj6J1HNjs","timings":{"cache_n":177,"prompt_n":36,"prompt_ms":79.143,"prompt_per_token_ms":2.1984166666666667,"prompt_per_second":454.8728251393048,"predicted_n":18,"predicted_ms":144.84,"predicted_per_token_ms":8.046666666666667,"predicted_per_second":124.27506213753105}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 2.186660958s + duration: 225.614042ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/tool_streaming.yaml index e931e841a326c8d4ac46092e2795e4cfae6f8330..589df587f655d27c6c3948734b761c54b3033c9a 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/llama-cpp-gpt-oss/tool_streaming.yaml @@ -26,57 +26,57 @@ interactions: - chunked content_length: -1 body: |+ - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"The"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"User"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" user"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" wants"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" asks"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" weather"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" for"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" in"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" weather"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Florence"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" in"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":","}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Florence"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Italy"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":","}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Italy"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" We"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" can"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" We"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" use"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" can"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" the"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" use"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" weather"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" the"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" function"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" weather"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" function"}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"id":"g2KOIWzn722hzEaZQmNVP4roUPEiYafL","type":"function","function":{"name":"weather","arguments":"{\""}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672368,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"id":"tNkZIM2wWGCzRoFvK6X0TdhHhAYj6fVY","type":"function","function":{"name":"weather","arguments":"{\""}}]}}],"created":1761672369,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]}}],"created":1761672369,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]}}],"created":1761672369,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ence"}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]}}],"created":1761672369,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":","}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ence"}}]}}],"created":1761672369,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]}}],"created":1761672369,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":"tool_calls","index":0,"delta":{}}],"created":1761672369,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":"tool_calls","index":0,"delta":{}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[],"created":1761672369,"id":"chatcmpl-vHnyyi5Z6RRKTtbLzBj23g4Hf8jOhXs5","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk","usage":{"completion_tokens":41,"prompt_tokens":139,"total_tokens":180},"timings":{"cache_n":138,"prompt_n":1,"prompt_ms":14.889,"prompt_per_token_ms":14.889,"prompt_per_second":67.16367788300087,"predicted_n":41,"predicted_ms":579.8,"predicted_per_token_ms":14.141463414634146,"predicted_per_second":70.7140393239048}} + data: {"choices":[],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk","usage":{"completion_tokens":41,"prompt_tokens":139,"total_tokens":180},"timings":{"cache_n":138,"prompt_n":1,"prompt_ms":8.691,"prompt_per_token_ms":8.691,"prompt_per_second":115.06155793349441,"predicted_n":41,"predicted_ms":339.279,"predicted_per_token_ms":8.27509756097561,"predicted_per_second":120.84449671214546}} data: [DONE] @@ -85,15 +85,15 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 1.004916ms + duration: 859.5µs - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 776 + content_length: 877 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"tNkZIM2wWGCzRoFvK6X0TdhHhAYj6fVY","function":{"arguments":"{\"location\":\"Florence\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"tNkZIM2wWGCzRoFvK6X0TdhHhAYj6fVY","role":"tool"}],"model":"openai/gpt-oss-20b","max_completion_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"g2KOIWzn722hzEaZQmNVP4roUPEiYafL","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"User wants weather in Florence, Italy. We can use the weather function."},{"content":"40 C","tool_call_id":"g2KOIWzn722hzEaZQmNVP4roUPEiYafL","role":"tool"}],"model":"openai/gpt-oss-20b","max_completion_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json @@ -111,129 +111,39 @@ interactions: - chunked content_length: -1 body: |+ - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"We"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"The"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" need"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" current"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" to"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" weather"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" respond"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" in"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Florence"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" The"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":","}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" function"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Italy"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" returned"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" is"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" **"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"40"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"40"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" C"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" "}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\"."}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"°C"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" That"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"**"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" seems"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"."}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" unrealistic"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":"stop","index":0,"delta":{}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" We"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" should"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" trust"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" the"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" function"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"'s"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" output"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":":"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" 40"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"°C"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" But"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" maybe"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" we"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" need"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" to"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" mention"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" that"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" it's"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" a"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" forecast"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"?"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" We"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" can"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" provide"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" that"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" answer"}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672369,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"The"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" current"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" temperature"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" in"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Florence"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":","}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Italy"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":","}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" is"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" **"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"40"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" "}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"°C"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"**"}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"."}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":"stop","index":0,"delta":{}}],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[],"created":1761672370,"id":"chatcmpl-T7agzjyEnF0tBCU21JdEcZ8cpz6QFL4V","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk","usage":{"completion_tokens":70,"prompt_tokens":173,"total_tokens":243},"timings":{"cache_n":139,"prompt_n":34,"prompt_ms":143.047,"prompt_per_token_ms":4.207264705882353,"prompt_per_second":237.68411780743392,"predicted_n":70,"predicted_ms":980.894,"predicted_per_token_ms":14.012771428571428,"predicted_per_second":71.3634704667375}} + data: {"choices":[],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk","usage":{"completion_tokens":18,"prompt_tokens":196,"total_tokens":214},"timings":{"cache_n":160,"prompt_n":36,"prompt_ms":79.853,"prompt_per_token_ms":2.218138888888889,"prompt_per_second":450.8283971798179,"predicted_n":18,"predicted_ms":145.366,"predicted_per_token_ms":8.07588888888889,"predicted_per_second":123.82537869928318}} data: [DONE] @@ -242,4 +152,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 2.142916ms + duration: 2.05025ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/multi_tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/multi_tool.yaml index 5026f96ecf5194c825cca24229b679b5231ca378..40c7e785d305c46ab00806623d0bd1faa144057e 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/multi_tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/multi_tool.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,13 +24,13 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"9501c7bc-e5d7-2526-dcb6-1654ab39e68f_us-east-1","object":"chat.completion","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_48863314","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"type":"function"},{"id":"call_85429265","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":398,"completion_tokens":68,"total_tokens":598,"prompt_tokens_details":{"text_tokens":398,"audio_tokens":0,"image_tokens":0,"cached_tokens":266},"completion_tokens_details":{"reasoning_tokens":132,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_9362061f30"}' + body: '{"id":"dec7a509-fc2a-5adb-eed9-626affdd1430","object":"chat.completion","created":1762854946,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_77946408","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"type":"function"},{"id":"call_90297600","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":437,"completion_tokens":68,"total_tokens":648,"prompt_tokens_details":{"text_tokens":437,"audio_tokens":0,"image_tokens":0,"cached_tokens":304},"completion_tokens_details":{"reasoning_tokens":143,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 2.143328667s + duration: 2.687079417s - id: 1 request: proto: HTTP/1.1 @@ -38,14 +38,14 @@ interactions: proto_minor: 1 content_length: 1177 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_48863314","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_85429265","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_48863314","role":"tool"},{"content":"6","tool_call_id":"call_85429265","role":"tool"}],"model":"grok-4-fast","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_77946408","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_90297600","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_77946408","role":"tool"},{"content":"6","tool_call_id":"call_90297600","role":"tool"}],"model":"grok-4-fast","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -54,10 +54,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"ae7703f0-cb17-178c-9842-10627ad2626d_us-east-1","object":"chat.completion","created":1758884712,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"The sum of 2 and 3 is 5. \nThe product of 2 and 3 is 6.","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":612,"completion_tokens":25,"total_tokens":673,"prompt_tokens_details":{"text_tokens":612,"audio_tokens":0,"image_tokens":0,"cached_tokens":564},"completion_tokens_details":{"reasoning_tokens":36,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_9362061f30"}' + body: '{"id":"bfde0945-c590-ce6c-b493-8f7f3fced601","object":"chat.completion","created":1762854948,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"The sum of 2 and 3 is 5. \nThe product of 2 and 3 is 6.","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":666,"completion_tokens":25,"total_tokens":734,"prompt_tokens_details":{"text_tokens":666,"audio_tokens":0,"image_tokens":0,"cached_tokens":304},"completion_tokens_details":{"reasoning_tokens":43,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 746.407125ms + duration: 1.056138584s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/multi_tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/multi_tool_streaming.yaml index 5f623df79d4e8b6cc26200679c016e4dbb5504d0..3e834deaec78dff23edc38f87a7cb54e3b5f367e 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/multi_tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/multi_tool_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,277 +24,301 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884714,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_76764010","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854950,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_04649721","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"index":1,"type":"function"}]}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"5ba2d198-f61b-646d-9aad-0ed46b167b7a_us-east-1","object":"chat.completion.chunk","created":1758884715,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":394,"completion_tokens":68,"total_tokens":594,"prompt_tokens_details":{"text_tokens":394,"audio_tokens":0,"image_tokens":0,"cached_tokens":364},"completion_tokens_details":{"reasoning_tokens":132,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_9362061f30"} + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_87057118","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_52998358","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"index":1,"type":"function"}]}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"b4b9e8e9-d0a8-fea3-52ae-7c4c33004f65","object":"chat.completion.chunk","created":1762854951,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":433,"completion_tokens":68,"total_tokens":645,"prompt_tokens_details":{"text_tokens":433,"audio_tokens":0,"image_tokens":0,"cached_tokens":403},"completion_tokens_details":{"reasoning_tokens":144,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"} data: [DONE] @@ -303,7 +327,7 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 443.52575ms + duration: 415.14375ms - id: 1 request: proto: HTTP/1.1 @@ -311,14 +335,14 @@ interactions: proto_minor: 1 content_length: 1214 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_76764010","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_04649721","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_76764010","role":"tool"},{"content":"6","tool_call_id":"call_04649721","role":"tool"}],"model":"grok-4-fast","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_87057118","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_52998358","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_87057118","role":"tool"},{"content":"6","tool_call_id":"call_52998358","role":"tool"}],"model":"grok-4-fast","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -327,177 +351,137 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} - - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" sum"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" sum"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" of"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" of"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"2"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"2"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"3"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"3"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"5"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"5"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" \n"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" \n"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" product"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" product"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" of"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" of"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"2"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"2"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"3"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"3"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"6"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"6"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"0cc675f4-c4c5-ce1a-e5e8-bb2c4635976f_us-east-1","object":"chat.completion.chunk","created":1758884716,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":608,"completion_tokens":25,"total_tokens":692,"prompt_tokens_details":{"text_tokens":608,"audio_tokens":0,"image_tokens":0,"cached_tokens":560},"completion_tokens_details":{"reasoning_tokens":59,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_9362061f30"} + data: {"id":"0ba115c8-62ec-046d-5111-ef980f20296a","object":"chat.completion.chunk","created":1762854952,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":663,"completion_tokens":25,"total_tokens":727,"prompt_tokens_details":{"text_tokens":663,"audio_tokens":0,"image_tokens":0,"cached_tokens":611},"completion_tokens_details":{"reasoning_tokens":39,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"} data: [DONE] @@ -506,4 +490,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 430.720083ms + duration: 455.97875ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/simple.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/simple.yaml index edebffa212a2cface7b206af4b93f32c4f17bfa9..625e0d2ec98859025b5833be0ab5498375378221 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/simple.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/simple.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,10 +24,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"b579848f-4236-577c-5f9c-c35402b4f2aa_us-east-1","object":"chat.completion","created":1758884699,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"Olá!","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":126,"completion_tokens":2,"total_tokens":229,"prompt_tokens_details":{"text_tokens":126,"audio_tokens":0,"image_tokens":0,"cached_tokens":117},"completion_tokens_details":{"reasoning_tokens":101,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_9362061f30"}' + body: '{"id":"ba921086-b431-a891-6539-f253e188df6f","object":"chat.completion","created":1762854936,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"Olá!","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":165,"completion_tokens":2,"total_tokens":244,"prompt_tokens_details":{"text_tokens":165,"audio_tokens":0,"image_tokens":0,"cached_tokens":150},"completion_tokens_details":{"reasoning_tokens":77,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 2.421426625s + duration: 928.874459ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/simple_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/simple_streaming.yaml index fde74221bd0f60fc3d5c3e0f015a941d03660b6f..7f8ecdfc6daf244241f180ce977b34f154dac936 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/simple_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/simple_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,259 +24,291 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854937,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884701,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"Olá"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"!"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"d902f9b5-9a22-96b1-4b9c-97175fa193ee_us-east-1","object":"chat.completion.chunk","created":1758884702,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":126,"completion_tokens":2,"total_tokens":251,"prompt_tokens_details":{"text_tokens":126,"audio_tokens":0,"image_tokens":0,"cached_tokens":125},"completion_tokens_details":{"reasoning_tokens":123,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_9362061f30"} + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"Olá"}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"!"}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"bd8fcffa-eabb-78dc-6980-d22e46ee7cea","object":"chat.completion.chunk","created":1762854938,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":165,"completion_tokens":2,"total_tokens":306,"prompt_tokens_details":{"text_tokens":165,"audio_tokens":0,"image_tokens":0,"cached_tokens":150},"completion_tokens_details":{"reasoning_tokens":139,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"} data: [DONE] @@ -285,4 +317,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 189.396459ms + duration: 198.825167ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/tool.yaml index b69e41ae00ad25175874558aeedd97bb3075859f..1da4dad20c37661c681a072feb2ede91ad145650 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/tool.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,13 +24,13 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"d1e1c64c-3c5a-a479-6336-b6caee908ccc_us-east-1","object":"chat.completion","created":1758884702,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_38180916","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":322,"completion_tokens":26,"total_tokens":560,"prompt_tokens_details":{"text_tokens":322,"audio_tokens":0,"image_tokens":0,"cached_tokens":266},"completion_tokens_details":{"reasoning_tokens":212,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_9362061f30"}' + body: '{"id":"6645739c-32ed-3f7b-3df7-eae6c86bee88","object":"chat.completion","created":1762854938,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_38088650","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":361,"completion_tokens":26,"total_tokens":527,"prompt_tokens_details":{"text_tokens":361,"audio_tokens":0,"image_tokens":0,"cached_tokens":304},"completion_tokens_details":{"reasoning_tokens":140,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 3.417448417s + duration: 2.622645042s - id: 1 request: proto: HTTP/1.1 @@ -38,14 +38,14 @@ interactions: proto_minor: 1 content_length: 673 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_38180916","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_38180916","role":"tool"}],"model":"grok-4-fast","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_38088650","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_38088650","role":"tool"}],"model":"grok-4-fast","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -54,10 +54,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"71fd2c5c-142f-a2bd-995f-f4c7329bf9f3_us-east-1","object":"chat.completion","created":1758884706,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"The current weather in Florence, Italy, is 40°C (104°F). It looks like a hot day—stay hydrated! If you need more details like forecast or humidity, let me know.","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":573,"completion_tokens":40,"total_tokens":657,"prompt_tokens_details":{"text_tokens":573,"audio_tokens":0,"image_tokens":0,"cached_tokens":561},"completion_tokens_details":{"reasoning_tokens":44,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_9362061f30"}' + body: '{"id":"8359b4aa-22c3-dfe0-c3b5-9e622b2be670","object":"chat.completion","created":1762854941,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"The current temperature in Florence, Italy, is 40°C. If you need more details like forecasts or conditions, let me know!","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":540,"completion_tokens":27,"total_tokens":661,"prompt_tokens_details":{"text_tokens":540,"audio_tokens":0,"image_tokens":0,"cached_tokens":304},"completion_tokens_details":{"reasoning_tokens":94,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 1.162276458s + duration: 1.701426875s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/tool_streaming.yaml index 98142525531f4c63e3c22773e1fb4d10eef6f267..1080ad3ecf985d81393b448a1f22400e213ddc01 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-4-fast/tool_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,365 +24,451 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854943,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884707,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884708,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884709,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_25115338","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884709,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"9e3e23e4-4728-c6d6-2b5b-2ce716581ec5_us-east-1","object":"chat.completion.chunk","created":1758884709,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":322,"completion_tokens":26,"total_tokens":525,"prompt_tokens_details":{"text_tokens":322,"audio_tokens":0,"image_tokens":0,"cached_tokens":321},"completion_tokens_details":{"reasoning_tokens":177,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_9362061f30"} + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_54240681","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"86dec149-d152-1223-0b58-aaea2004fdc1","object":"chat.completion.chunk","created":1762854944,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":361,"completion_tokens":26,"total_tokens":607,"prompt_tokens_details":{"text_tokens":361,"audio_tokens":0,"image_tokens":0,"cached_tokens":304},"completion_tokens_details":{"reasoning_tokens":220,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"} data: [DONE] @@ -391,7 +477,7 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 267.996292ms + duration: 182.838541ms - id: 1 request: proto: HTTP/1.1 @@ -399,14 +485,14 @@ interactions: proto_minor: 1 content_length: 727 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_25115338","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_25115338","role":"tool"}],"model":"grok-4-fast","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_54240681","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_54240681","role":"tool"}],"model":"grok-4-fast","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -415,163 +501,165 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" current"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" weather"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" in"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" Florence"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" current"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" weather"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" Italy"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" in"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" Florence"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" Italy"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"40"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"°C"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" ("}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"104"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"40"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"°F"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"°C"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":")."}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" ("}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" It's"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"104"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" quite"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"°F"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" hot"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":")."}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"—"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" It"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"stay"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" looks"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" hydrated"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" like"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" a"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" seek"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" very"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" shade"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" hot"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" if"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" day"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" you're"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"—"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" out"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"stay"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" hydrated"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" about"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"!"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"!"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" If"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" If"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" you"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" you"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" need"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" need"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" more"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" more"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" details"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" details"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" like"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" like"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" forecasts"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" forecasts"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" or"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" or"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" humidity"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" humidity"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" let"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" let"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" me"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" me"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" know"}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":" know"}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_bfbe7bd0a2"} - data: {"id":"46f59f6a-5f58-6c76-7d46-e80c3a577263_us-east-1","object":"chat.completion.chunk","created":1758884710,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":538,"completion_tokens":41,"total_tokens":615,"prompt_tokens_details":{"text_tokens":538,"audio_tokens":0,"image_tokens":0,"cached_tokens":265},"completion_tokens_details":{"reasoning_tokens":36,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_9362061f30"} + data: {"id":"653a2216-e941-bdf0-0fa3-efe1681b9405","object":"chat.completion.chunk","created":1762854945,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":620,"completion_tokens":45,"total_tokens":698,"prompt_tokens_details":{"text_tokens":620,"audio_tokens":0,"image_tokens":0,"cached_tokens":365},"completion_tokens_details":{"reasoning_tokens":33,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"} data: [DONE] @@ -580,4 +668,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 175.263833ms + duration: 188.3925ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/multi_tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/multi_tool.yaml index 9ab826c33a924957233e4c9e34d74f43e3a549e9..fc3e5ee74039672fa572180b163b2594a454abdd 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/multi_tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/multi_tool.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,13 +24,13 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"04b263b6-d273-8420-bbd3-14872d8cc81f_us-east-1","object":"chat.completion","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_23158856","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"type":"function"},{"id":"call_18184073","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":471,"completion_tokens":68,"total_tokens":764,"prompt_tokens_details":{"text_tokens":471,"audio_tokens":0,"image_tokens":0,"cached_tokens":320},"completion_tokens_details":{"reasoning_tokens":225,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' + body: '{"id":"9874b007-2b46-d81c-99af-a1e5f79ad5f8","object":"chat.completion","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_20392219","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"type":"function"},{"id":"call_35218664","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":471,"completion_tokens":68,"total_tokens":773,"prompt_tokens_details":{"text_tokens":471,"audio_tokens":0,"image_tokens":0,"cached_tokens":320},"completion_tokens_details":{"reasoning_tokens":234,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 1.932519584s + duration: 2.281730792s - id: 1 request: proto: HTTP/1.1 @@ -38,14 +38,14 @@ interactions: proto_minor: 1 content_length: 1182 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_23158856","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_18184073","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_23158856","role":"tool"},{"content":"6","tool_call_id":"call_18184073","role":"tool"}],"model":"grok-code-fast-1","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_20392219","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_35218664","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_20392219","role":"tool"},{"content":"6","tool_call_id":"call_35218664","role":"tool"}],"model":"grok-code-fast-1","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -54,10 +54,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"949835d9-298d-1b2d-a369-8de2ab8f55f2_us-east-1","object":"chat.completion","created":1758884729,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"The sum of 2 and 3 is 5. \nThe product of 2 and 3 is 6.","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":778,"completion_tokens":25,"total_tokens":872,"prompt_tokens_details":{"text_tokens":778,"audio_tokens":0,"image_tokens":0,"cached_tokens":704},"completion_tokens_details":{"reasoning_tokens":69,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' + body: '{"id":"7ecd4565-51f1-24db-578f-628fc2c2dc35","object":"chat.completion","created":1762854968,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"2 + 3 = 5 \n2 * 3 = 6","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":791,"completion_tokens":15,"total_tokens":849,"prompt_tokens_details":{"text_tokens":791,"audio_tokens":0,"image_tokens":0,"cached_tokens":320},"completion_tokens_details":{"reasoning_tokens":43,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 851.910375ms + duration: 1.158569583s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/multi_tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/multi_tool_streaming.yaml index d8df19531a15786c7c00510d571e9ebeedf89020..1e2065e3340ed3fe6c268034e2f464b6281baff8 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/multi_tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/multi_tool_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,641 +24,381 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"The","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"The","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" task"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" asked"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" add"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" add"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" multiply"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" multiply"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" numbers"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"2"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"2"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"3"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"3"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" need"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" The"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" instructions"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" use"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" say"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" both"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" tools"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" always"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" use"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" add"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" both"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" add"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" multiply"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" multiply"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" at"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" same"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" time"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854969,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884730,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\n\n## Understanding Task Requirements \n- The goal is to add and multiply the numbers 2 and 3 simultaneously, as instructed."}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_28204233","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_72666071","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"index":1,"type":"function"}]}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" \n- Both addition and multiplication must be performed together in the process."}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884731,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" \n\n## Preparing for Calculation \n- Need to use function calls to execute the operations, following a specific format."}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_50546188","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_32158093","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"index":1,"type":"function"}]}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"06fd2962-c3a9-167d-1df3-6f50376068e4_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":467,"completion_tokens":68,"total_tokens":849,"prompt_tokens_details":{"text_tokens":467,"audio_tokens":0,"image_tokens":0,"cached_tokens":384},"completion_tokens_details":{"reasoning_tokens":314,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} + data: {"id":"f4589f03-c781-01f2-4824-8406d4201043","object":"chat.completion.chunk","created":1762854970,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":467,"completion_tokens":68,"total_tokens":719,"prompt_tokens_details":{"text_tokens":467,"audio_tokens":0,"image_tokens":0,"cached_tokens":384},"completion_tokens_details":{"reasoning_tokens":184,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} data: [DONE] @@ -667,22 +407,22 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 158.118ms + duration: 195.743ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1219 + content_length: 1331 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_50546188","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_32158093","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_50546188","role":"tool"},{"content":"6","tool_call_id":"call_32158093","role":"tool"}],"model":"grok-code-fast-1","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_28204233","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_72666071","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_content":"The user asked to add and multiply 2 and 3. I need to use both tools: add and multiply.\n"},{"content":"5","tool_call_id":"call_28204233","role":"tool"},{"content":"6","tool_call_id":"call_72666071","role":"tool"}],"model":"grok-code-fast-1","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -691,177 +431,165 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"The","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" tools"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" returned"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" add"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" gave"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"I","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"5"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" have"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" multiply"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" results"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" gave"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" add"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884732,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"6"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" gave"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"5"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" multiply"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" gave"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"6"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854971,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" sum"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" sum"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" of"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" of"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"2"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"2"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"3"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"3"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"5"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"5"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" \n"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" \n"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" product"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" product"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" of"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" of"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"2"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"2"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"3"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"3"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"6"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"6"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5817a3d7-0551-2836-1629-bbbd8e66475b_us-east-1","object":"chat.completion.chunk","created":1758884733,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":863,"completion_tokens":25,"total_tokens":947,"prompt_tokens_details":{"text_tokens":863,"audio_tokens":0,"image_tokens":0,"cached_tokens":768},"completion_tokens_details":{"reasoning_tokens":59,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} + data: {"id":"636c757c-c4b5-337d-9b69-dddd3b8e84b5","object":"chat.completion.chunk","created":1762854973,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":737,"completion_tokens":25,"total_tokens":815,"prompt_tokens_details":{"text_tokens":737,"audio_tokens":0,"image_tokens":0,"cached_tokens":640},"completion_tokens_details":{"reasoning_tokens":53,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} data: [DONE] @@ -870,4 +598,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 415.984042ms + duration: 166.444625ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/simple.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/simple.yaml index 6ea0a1424c056d4257b080ae67e519c47a51d45c..92f93a78d12e5a36c16f6762de739e8c6c02f145 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/simple.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/simple.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,10 +24,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"0407413d-194d-4ba1-8a87-d2f902eedffc_us-east-1","object":"chat.completion","created":1758884716,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"Oi! (That''s \"hi\" in Portuguese. In Brazil, it''s common, while in Portugal, \"Olá\" is more formal.)","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":213,"completion_tokens":27,"total_tokens":411,"prompt_tokens_details":{"text_tokens":213,"audio_tokens":0,"image_tokens":0,"cached_tokens":192},"completion_tokens_details":{"reasoning_tokens":171,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' + body: '{"id":"3d4e99a3-243f-88eb-3ebf-9bba327ac44b","object":"chat.completion","created":1762854952,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"Olá! (That''s \"hi\" in Portuguese. For a more informal vibe, you can use \"Oi!\".)","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":213,"completion_tokens":23,"total_tokens":414,"prompt_tokens_details":{"text_tokens":213,"audio_tokens":0,"image_tokens":0,"cached_tokens":192},"completion_tokens_details":{"reasoning_tokens":178,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 2.174340667s + duration: 4.059811333s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/simple_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/simple_streaming.yaml index 225bd5d5dff936b7b1607f7a7c3d5966e20a922c..a723dbbdd688df357daf1dc5b91d25be73fa380f 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/simple_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/simple_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,355 +24,429 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"First","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"First","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" said"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" said"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"Say"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"Say"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" hi"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" hi"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Portuguese"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Portuguese"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\"\n"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\""}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" This"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" simple"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" request"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" translate"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" or"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" say"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"hi"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Portuguese"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854957,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884719,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\n\n## Responding to the request \n- The user asked to say \"hi\" in Portuguese."}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" \n- \"Hi\" in Portuguese translates to \"Oi."}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\" \n- The response should be simple and directly address the user's request."}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\n\n## Understanding user request \n- The user asked to say \"hi\" in Portuguese, a straightforward translation request."}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"Olá"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"!"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" ("}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"That's"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" \""}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"hi"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"\""}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" in"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" Portuguese"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":".)"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"6ddfbb47-99c8-1430-d8bb-896bd9e00a4e_us-east-1","object":"chat.completion.chunk","created":1758884720,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":213,"completion_tokens":10,"total_tokens":386,"prompt_tokens_details":{"text_tokens":213,"audio_tokens":0,"image_tokens":0,"cached_tokens":192},"completion_tokens_details":{"reasoning_tokens":163,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"Oi"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"!"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" ("}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"That's"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" \""}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"hi"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"\""}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" in"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" Portuguese"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":".)"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"e34db796-8dc4-24e9-2b49-613698c2c1d6","object":"chat.completion.chunk","created":1762854958,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":213,"completion_tokens":10,"total_tokens":423,"prompt_tokens_details":{"text_tokens":213,"audio_tokens":0,"image_tokens":0,"cached_tokens":192},"completion_tokens_details":{"reasoning_tokens":200,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} data: [DONE] @@ -381,4 +455,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 167.506084ms + duration: 195.607084ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/tool.yaml index eaa8fa44367fc252b3baab8510dae805f9bd0595..bdf3632f0ea8a84dd3e4c2783322f6f5380c9ce1 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/tool.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,13 +24,13 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"49760c2f-8767-b64c-25bb-2b489b423c2c_us-east-1","object":"chat.completion","created":1758884720,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_84841300","function":{"name":"weather","arguments":"{\"location\":\"Florence,Italy\"}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":390,"completion_tokens":26,"total_tokens":499,"prompt_tokens_details":{"text_tokens":390,"audio_tokens":0,"image_tokens":0,"cached_tokens":320},"completion_tokens_details":{"reasoning_tokens":83,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' + body: '{"id":"55c3d80a-b267-c2cb-8a03-387402a2fe4f","object":"chat.completion","created":1762854959,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_27103959","function":{"name":"weather","arguments":"{\"location\":\"Florence,Italy\"}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":390,"completion_tokens":26,"total_tokens":537,"prompt_tokens_details":{"text_tokens":390,"audio_tokens":0,"image_tokens":0,"cached_tokens":320},"completion_tokens_details":{"reasoning_tokens":121,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 1.2000465s + duration: 2.562176375s - id: 1 request: proto: HTTP/1.1 @@ -38,14 +38,14 @@ interactions: proto_minor: 1 content_length: 677 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_84841300","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_84841300","role":"tool"}],"model":"grok-code-fast-1","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_27103959","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_27103959","role":"tool"}],"model":"grok-code-fast-1","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -54,10 +54,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"29d0775d-98fa-5ad0-bf4b-41df1c3d6da0_us-east-1","object":"chat.completion","created":1758884721,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"The current temperature in Florence, Italy is 40°C. (Note: This is a snapshot; for a full forecast, check a weather app or site.)","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":512,"completion_tokens":32,"total_tokens":664,"prompt_tokens_details":{"text_tokens":512,"audio_tokens":0,"image_tokens":0,"cached_tokens":448},"completion_tokens_details":{"reasoning_tokens":120,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' + body: '{"id":"87f13718-fb6b-512d-cf9d-969f79138225","object":"chat.completion","created":1762854961,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"The current temperature in Florence, Italy is 40°C.","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":550,"completion_tokens":12,"total_tokens":702,"prompt_tokens_details":{"text_tokens":550,"audio_tokens":0,"image_tokens":0,"cached_tokens":512},"completion_tokens_details":{"reasoning_tokens":140,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 1.712903125s + duration: 1.857338583s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/tool_streaming.yaml index 7dc7f59aed33243441e17c6a8216f42c4558d118..fbb9aabfe9ba73c783c8d2be2988dd29ab07e3b2 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/xai-grok-code-fast/tool_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,327 +24,169 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"The","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"The","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" asked"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" asked"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" about"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"What's"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Florence"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Florence"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"Italy"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" need"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"?\"\n"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" use"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" tool"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" this"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854963,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_64629939","function":{"name":"weather","arguments":"{\"location\":\"Florence,Italy\"}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884724,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\n\n## Handling User Query \n- The user asked about the weather in Florence, Italy, prompting a search for current conditions."}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_09365067","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"91729e21-f660-9e16-80cd-dba67fc3aa9d_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":390,"completion_tokens":26,"total_tokens":574,"prompt_tokens_details":{"text_tokens":390,"audio_tokens":0,"image_tokens":0,"cached_tokens":384},"completion_tokens_details":{"reasoning_tokens":158,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} + data: {"id":"ba8d6fcb-acbd-9d88-c17c-8ddef4027734","object":"chat.completion.chunk","created":1762854964,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":390,"completion_tokens":26,"total_tokens":495,"prompt_tokens_details":{"text_tokens":390,"audio_tokens":0,"image_tokens":0,"cached_tokens":384},"completion_tokens_details":{"reasoning_tokens":79,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} data: [DONE] @@ -353,22 +195,22 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 449.278083ms + duration: 226.151666ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 732 + content_length: 813 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_09365067","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_09365067","role":"tool"}],"model":"grok-code-fast-1","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_64629939","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"The user asked: \"What''s the weather in Florence,Italy?\"\n"},{"content":"40 C","tool_call_id":"call_64629939","role":"tool"}],"model":"grok-code-fast-1","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -377,211 +219,169 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"The","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" tool"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" returned"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" C"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" degrees"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Celsius"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"The","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884725,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" tool"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" returned"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" C"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" means"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" degrees"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Celsius"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" current"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" temperature"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" in"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" Florence"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" Italy"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"40"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"°C"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" ("}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"104"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"°F"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":")."}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884726,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" Please"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" note"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" that"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" this"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" a"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" snapshot"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" and"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" weather"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" can"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" change"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" current"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"—"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" weather"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"consider"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" in"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" checking"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" Florence"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" a"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" detailed"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" Italy"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" forecast"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" for"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" more"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"40"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":" information"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"°C"}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"!"}}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_10f00c862d"} - data: {"id":"5666ced6-a98f-32e7-3768-22e00c948f41_us-east-1","object":"chat.completion.chunk","created":1758884727,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":587,"completion_tokens":37,"total_tokens":688,"prompt_tokens_details":{"text_tokens":587,"audio_tokens":0,"image_tokens":0,"cached_tokens":512},"completion_tokens_details":{"reasoning_tokens":64,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} + data: {"id":"438e92b5-a71d-8052-6667-f9db15f43cbe","object":"chat.completion.chunk","created":1762854965,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":508,"completion_tokens":12,"total_tokens":588,"prompt_tokens_details":{"text_tokens":508,"audio_tokens":0,"image_tokens":0,"cached_tokens":448},"completion_tokens_details":{"reasoning_tokens":68,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} data: [DONE] @@ -590,4 +390,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 166.998833ms + duration: 431.66775ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/multi_tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/multi_tool.yaml index c538901ec65de7aa3278983a7f3beab3f194ab82..34c00b2b4e7bbc6eeb2e2f80bde9875f5673134d 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/multi_tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/multi_tool.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -24,28 +24,28 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"\n\nI''ll add and multiply the numbers 2 and 3 for you.\n","reasoning_content":"The user is asking me to both add and multiply the numbers 2 and 3. I have two functions available: `add` and `multiply`. I need to use both functions as instructed.\n\nFor the add function:\n- a = 2\n- b = 3\n\nFor the multiply function:\n- a = 2 \n- b = 3\n\nI''ll call both functions with these parameters.","role":"assistant","tool_calls":[{"function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"id":"call_-8303647325903440624","index":0,"type":"function"},{"function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"id":"call_-8303647325903440623","index":1,"type":"function"}]}}],"created":1758884776,"id":"20250926190604cbc0f909a2b14d52","model":"glm-4.5","request_id":"20250926190604cbc0f909a2b14d52","usage":{"completion_tokens":144,"prompt_tokens":286,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":430}}' + body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"\nI''ll add and multiply the numbers 2 and 3 for you.\n","reasoning_content":"\nThe user is asking me to add and multiply the numbers 2 and 3. I need to use both the add and multiply functions as instructed. Let me make both function calls:\n\n1. Add 2 and 3\n2. Multiply 2 and 3\n\nBoth functions require two integer parameters, and I have the values 2 and 3 to use.","role":"assistant","tool_calls":[{"function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"id":"call_-8167732570302206983","index":0,"type":"function"},{"function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"id":"call_-8167732570302206982","index":1,"type":"function"}]}}],"created":1762855007,"id":"20251111175641bcb6bdd6085647a6","model":"glm-4.5","request_id":"20251111175641bcb6bdd6085647a6","usage":{"completion_tokens":136,"prompt_tokens":286,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":422}}' headers: Content-Type: - application/json; charset=UTF-8 status: 200 OK code: 200 - duration: 12.807253291s + duration: 6.3064855s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1296 + content_length: 1600 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"\n\nI''ll add and multiply the numbers 2 and 3 for you.\n","tool_calls":[{"id":"call_-8303647325903440624","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"call_-8303647325903440623","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_-8303647325903440624","role":"tool"},{"content":"6","tool_call_id":"call_-8303647325903440623","role":"tool"}],"model":"glm-4.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"\nI''ll add and multiply the numbers 2 and 3 for you.\n","tool_calls":[{"id":"call_-8167732570302206983","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_-8167732570302206982","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_content":"\nThe user is asking me to add and multiply the numbers 2 and 3. I need to use both the add and multiply functions as instructed. Let me make both function calls:\n\n1. Add 2 and 3\n2. Multiply 2 and 3\n\nBoth functions require two integer parameters, and I have the values 2 and 3 to use."},{"content":"5","tool_call_id":"call_-8167732570302206983","role":"tool"},{"content":"6","tool_call_id":"call_-8167732570302206982","role":"tool"}],"model":"glm-4.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -54,10 +54,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"\n\nHere are the results for adding and multiplying 2 and 3:\n\n**Addition (2 + 3):** 5\n\n**Multiplication (2 × 3):** 6","reasoning_content":"The user asked me to add and multiply the numbers 2 and 3. I used both functions as requested:\n\n- Adding 2 + 3 = 5\n- Multiplying 2 × 3 = 6\n\nBoth operations were performed successfully and I should present the results clearly to the user.","role":"assistant"}}],"created":1758884780,"id":"20250926190616f3116c96578f4e4d","model":"glm-4.5","request_id":"20250926190616f3116c96578f4e4d","usage":{"completion_tokens":106,"prompt_tokens":360,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":466}}' + body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"\nThe results are:\n- Addition: 2 + 3 = 5\n- Multiplication: 2 × 3 = 6","reasoning_content":"\nGreat! I got the results from both function calls:\n- Adding 2 and 3 gives 5\n- Multiplying 2 and 3 gives 6\n\nI should present both results to the user clearly.","role":"assistant"}}],"created":1762855010,"id":"2025111117564736d87595a2214e40","model":"glm-4.5","request_id":"2025111117564736d87595a2214e40","usage":{"completion_tokens":77,"prompt_tokens":435,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":512}}' headers: Content-Type: - application/json; charset=UTF-8 status: 200 OK code: 200 - duration: 3.59240675s + duration: 2.935906041s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/multi_tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/multi_tool_streaming.yaml index 27a42b46e5e4c8356784b601d69bacaf7c499c42..f22a80219ff436b6fb8df64fde664d73cea8245d 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/multi_tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/multi_tool_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -24,279 +24,213 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" add"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" add"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" multiply"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" multiply"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" numbers"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" numbers"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" have"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" two"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" need"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" functions"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" available"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" add"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" add"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" multiply"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" multiply"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Both"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" functions"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" require"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" two"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" these"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameters"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameters"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".\n\n"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"a"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"For"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" b"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" add"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":")"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" which"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" are"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" integers"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" has"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provided"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" b"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" numbers"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n\n"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"For"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".\n\n"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" multiply"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" need"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" call"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" functions"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" \n"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" same"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameters"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" b"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" add"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"(a"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n\n"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"="}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" have"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" all"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" b"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"="}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" required"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameters"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":")\n"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" multiply"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" functions"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"(a"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"="}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" so"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" can"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" b"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" proceed"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"="}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":")\n\n"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" calls"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" specifically"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" asked"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"I"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'ll"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" add"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" multiply"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" functions"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" numbers"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" my"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"2"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" instructions"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" say"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"3"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" always"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":".\n"}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" add"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_4be9c6251abb4f3fbc1956bd","index":0,"type":"function","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"}}]}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_29207bee5b434b86830450d2","index":1,"type":"function","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"}}]}}]} - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" multiply"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" at"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" same"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" time"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" so"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" exactly"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" what"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" do"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"I"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'ll"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" add"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" multiply"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" numbers"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"2"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"3"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":".\n"}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"tool_calls":[{"id":"call_2dbb7568bf254f7cb91b4a09","index":0,"type":"function","function":{"name":"add","arguments":"{\"a\": 2, \"b\": 3}"}}]}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"tool_calls":[{"id":"call_88cb0be022f94339af640b13","index":1,"type":"function","function":{"name":"multiply","arguments":"{\"a\": 2, \"b\": 3}"}}]}}]} - - data: {"id":"20250926190620c633be90e4bb4b9f","created":1758884780,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":282,"completion_tokens":178,"total_tokens":460,"prompt_tokens_details":{"cached_tokens":43}}} + data: {"id":"20251111175650c48a4928f3614935","created":1762855010,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":282,"completion_tokens":145,"total_tokens":427,"prompt_tokens_details":{"cached_tokens":258}}} data: [DONE] @@ -305,22 +239,22 @@ interactions: - text/event-stream;charset=UTF-8 status: 200 OK code: 200 - duration: 675.755916ms + duration: 692.625208ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1349 + content_length: 1691 host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"\n\nI''ll add and multiply the numbers 2 and 3 for you.\n","tool_calls":[{"id":"call_2dbb7568bf254f7cb91b4a09","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"call_88cb0be022f94339af640b13","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_2dbb7568bf254f7cb91b4a09","role":"tool"},{"content":"6","tool_call_id":"call_88cb0be022f94339af640b13","role":"tool"}],"model":"glm-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"\nI''ll add and multiply the numbers 2 and 3 for you.\n","tool_calls":[{"id":"call_4be9c6251abb4f3fbc1956bd","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_29207bee5b434b86830450d2","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_content":"\nThe user wants me to both add and multiply the numbers 2 and 3. I need to use both the add and multiply functions with these parameters.\n\nFor the add function:\n- a: 2\n- b: 3\n\nFor the multiply function:\n- a: 2 \n- b: 3\n\nI have all the required parameters for both functions, so I can proceed with the function calls."},{"content":"5","tool_call_id":"call_4be9c6251abb4f3fbc1956bd","role":"tool"},{"content":"6","tool_call_id":"call_29207bee5b434b86830450d2","role":"tool"}],"model":"glm-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -329,215 +263,147 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" asked"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" add"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" multiply"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" numbers"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" used"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" functions"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" as"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" instructed"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" got"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" results"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Addition"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" +"}}]} - - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ="}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" results"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" are"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"5"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Adding"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Multip"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"lication"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ×"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" gives"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"5"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ="}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"6"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Multip"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n\n"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"lying"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" present"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" results"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" clearly"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" gives"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"6"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n\n"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"I"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" present"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'ve"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" added"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" results"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" clearly"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" multiplied"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" numbers"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"2"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"The"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" results"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"3"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" are"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":":\n"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"-"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":":\n\n"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" **"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"**"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Add"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Add"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"ition"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"ition"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"**:"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":":**"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"2"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"2"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" +"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" +"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"3"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"3"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" ="}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" ="}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"5"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"5"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"-"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"**"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" **"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Multip"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Multip"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"lication"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"lication"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":":**"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"**:"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"2"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"2"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" ×"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" ×"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"3"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"3"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" ="}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" ="}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"6"}}]} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"6"}}]} - data: {"id":"202509261906290a295ca32ac54a0e","created":1758884789,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":356,"completion_tokens":107,"total_tokens":463,"prompt_tokens_details":{"cached_tokens":43}}} + data: {"id":"2025111117565556744eb818464fc9","created":1762855015,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":440,"completion_tokens":73,"total_tokens":513,"prompt_tokens_details":{"cached_tokens":258}}} data: [DONE] @@ -546,4 +412,4 @@ interactions: - text/event-stream;charset=UTF-8 status: 200 OK code: 200 - duration: 655.051209ms + duration: 728.965833ms diff --git a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/simple.yaml b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/simple.yaml index b52af4c45940e758a58dafba04d0a60fc2c1220b..1539c15e45c07c823bfe7e07aec91b6a4a42a624 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/simple.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/simple.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -24,10 +24,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"Olá!","reasoning_content":"The person is asking me to say \"hi\" in Portuguese. In Portuguese, \"hi\" or \"hello\" is commonly translated as \"Olá\". I should provide this translation directly.\n\n\"Olá\" is the standard greeting in Portuguese, used in both formal and informal situations in Portugal and Brazil. There are other greetings like \"Oi\" which is more informal and common in Brazil, but \"Olá\" is the most universal translation of \"hi\" in Portuguese.","role":"assistant"}}],"created":1758884739,"id":"202509261905381f1d8b98070242a6","model":"glm-4.5","request_id":"202509261905381f1d8b98070242a6","usage":{"completion_tokens":100,"prompt_tokens":18,"prompt_tokens_details":{"cached_tokens":0},"total_tokens":118}}' + body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"Olá!","reasoning_content":"\nThe user is asking me to say \"hi\" in Portuguese. I''ll provide the Portuguese greeting for \"hi\" or \"hello\".\n\nIn Portuguese, \"hi\" or \"hello\" is typically translated as \"Olá\". This is the common greeting used in both Brazilian and European Portuguese.\n\nI''ll respond with this greeting.","role":"assistant"}}],"created":1762854981,"id":"2025111117561942405e9f6eb547c7","model":"glm-4.5","request_id":"2025111117561942405e9f6eb547c7","usage":{"completion_tokens":72,"prompt_tokens":16,"prompt_tokens_details":{"cached_tokens":7},"total_tokens":88}}' headers: Content-Type: - application/json; charset=UTF-8 status: 200 OK code: 200 - duration: 4.173540625s + duration: 4.974643125s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/simple_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/simple_streaming.yaml index 7edb12f17b3c3a72e51b73435523d20faa72791d..5f8b18602279ce789b1bfa8ed86363d568babf2c 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/simple_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/simple_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -24,407 +24,291 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" person"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" person"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" asking"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" asking"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" say"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" say"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hi"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hi"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Portuguese"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Portuguese"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" In"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Portuguese"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" In"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Portuguese"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hi"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hi"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" or"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" or"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hello"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hello"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" typically"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" translated"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" typically"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" as"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" translated"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" as"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Ol"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"á"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Ol"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"."}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"á"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" There"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" are"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" or"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" few"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Oi"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" other"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"."}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" common"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Both"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" greetings"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" are"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" common"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Portuguese"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" greetings"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" depending"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" on"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Portuguese"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-speaking"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" context"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" countries"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".\n\n"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" form"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"ality"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Ol"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n\n"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"á"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Ol"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"á"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" bit"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" more"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" -"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" formal"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" A"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" standard"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" while"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" neutral"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Oi"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" greeting"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"like"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" more"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" informal"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Hello"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\")\n"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" casual"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Since"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Oi"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" request"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" -"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" A"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" just"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" more"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" informal"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" say"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" greeting"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hi"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"like"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\","}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" either"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Hi"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" would"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\")\n"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" be"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" appropriate"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"B"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"om"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'ll"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" dia"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provide"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" -"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" options"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Good"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" morning"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" brief"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" explanation"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" of"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"used"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" their"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" until"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" usage"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" about"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" noon"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Hi"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":")\n"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Portuguese"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" is"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Bo"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" \""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"a"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Ol"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tarde"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"á"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" -"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" or"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" \""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Good"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Oi"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" afternoon"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\"."}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" \n\n"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"used"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Ol"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" from"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"á"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" noon"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" until"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" is"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" evening"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" a"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":")\n"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" standard"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" greeting"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" that"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Bo"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" can"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"a"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" be"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" noite"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" used"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" -"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" both"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" formal"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Good"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" evening"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" informal"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" situations"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"night"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" while"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" \""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"used"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Oi"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\""}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" is"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" evening"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" more"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" casual"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" at"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" night"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" commonly"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":")\n\n"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" used"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Since"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" among"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" they"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" friends"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" specifically"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" asked"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" informal"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" settings"}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hi"}}]} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"."}}]} - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\","}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" which"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" casual"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'ll"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provide"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" most"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" common"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Portuguese"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" equivalent"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" which"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Oi"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"."}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'ll"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" also"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" include"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Ol"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"á"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" as"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" slightly"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" more"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" formal"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" alternative"}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Ol","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"á","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"!","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" That","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'s","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" \"","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"hi","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\"","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" in","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Portuguese","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":".","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" You","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" can","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" also","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" use","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" \"","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"Oi","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\"","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" for","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" a","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" more","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" casual","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" greeting","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":".","reasoning_content":""}}]} - - data: {"id":"20250926190540c29952ed24ae4570","created":1758884740,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":18,"completion_tokens":202,"total_tokens":220,"prompt_tokens_details":{"cached_tokens":0}}} + data: {"id":"20251111175621ea00b15bd30046c2","created":1762854981,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":16,"completion_tokens":145,"total_tokens":161,"prompt_tokens_details":{"cached_tokens":6}}} data: [DONE] @@ -433,4 +317,4 @@ interactions: - text/event-stream;charset=UTF-8 status: 200 OK code: 200 - duration: 653.648917ms + duration: 3.570999666s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/tool.yaml b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/tool.yaml index ef1708bf5f57c660eb4fd73f9aafeb4121f91f33..b1869d5d59ec70bb45050037d58145e3da779b97 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/tool.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/tool.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -24,28 +24,28 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"\n\n","reasoning_content":"The user is asking for the weather in Florence, Italy. I need to use the weather function to get this information. The function requires a \"location\" parameter, and the user has provided \"Florence,Italy\" as the location. I should use this exact value for the location parameter.","role":"assistant","tool_calls":[{"function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"id":"call_-8303649628005950554","index":0,"type":"function"}]}}],"created":1758884753,"id":"20250926190543de74b873b8e04ebc","model":"glm-4.5","request_id":"20250926190543de74b873b8e04ebc","usage":{"completion_tokens":79,"prompt_tokens":179,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":258}}' + body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"\n","reasoning_content":"\nThe user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. The user has specified \"Florence, Italy\" as the location. I should use this exact value for the location parameter.","role":"assistant","tool_calls":[{"function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"id":"call_-8170221349237369383","index":0,"type":"function"}]}}],"created":1762854991,"id":"20251111175629f43492c8ddc74b40","model":"glm-4.5","request_id":"20251111175629f43492c8ddc74b40","usage":{"completion_tokens":70,"prompt_tokens":179,"prompt_tokens_details":{"cached_tokens":44},"total_tokens":249}}' headers: Content-Type: - application/json; charset=UTF-8 status: 200 OK code: 200 - duration: 11.165218167s + duration: 2.204044625s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 710 + content_length: 973 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"\n\n","tool_calls":[{"id":"call_-8303649628005950554","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_-8303649628005950554","role":"tool"}],"model":"glm-4.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"\n","tool_calls":[{"id":"call_-8170221349237369383","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"\nThe user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. The user has specified \"Florence, Italy\" as the location. I should use this exact value for the location parameter."},{"content":"40 C","tool_call_id":"call_-8170221349237369383","role":"tool"}],"model":"glm-4.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -54,10 +54,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"\n\nThe current weather in Florence, Italy is 40°C (104°F). That''s quite hot! It''s a very warm day there, so if you''re planning to visit, make sure to stay hydrated and seek shade or air conditioning when possible.","reasoning_content":"The weather function returned \"40 C\" for Florence, Italy. This indicates that the current temperature in Florence is 40 degrees Celsius, which is quite hot. I should provide this information to the user in a clear and helpful way.","role":"assistant"}}],"created":1758884757,"id":"2025092619055464ba39f15d9f4c36","model":"glm-4.5","request_id":"2025092619055464ba39f15d9f4c36","usage":{"completion_tokens":102,"prompt_tokens":207,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":309}}' + body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"\nThe weather in Florence, Italy is currently 40°C (104°F). That''s quite hot! Make sure to stay hydrated and seek shade if you''re visiting or in the area.","reasoning_content":"\nThe weather function returned that the temperature in Florence, Italy is 40°C. This is quite hot! I should provide this information to the user in a helpful way.","role":"assistant"}}],"created":1762854995,"id":"20251111175631a3e10345eaf44b75","model":"glm-4.5","request_id":"20251111175631a3e10345eaf44b75","usage":{"completion_tokens":76,"prompt_tokens":257,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":333}}' headers: Content-Type: - application/json; charset=UTF-8 status: 200 OK code: 200 - duration: 3.454754417s + duration: 4.128735209s diff --git a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/tool_streaming.yaml b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/tool_streaming.yaml index 4f57a8922a882a2113f413cb126ebabbb305299f..dd652f3c6200fbf53d12a1414d1418dc9c017f51 100644 --- a/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/tool_streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleCommon/zai-glm-4.5/tool_streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -24,113 +24,127 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" asking"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" asking"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Florence"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Florence"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Italy"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Italy"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" have"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" need"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" access"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" that"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" requires"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" location"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" location"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameter"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameter"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" specified"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" has"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provided"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Flo"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"rence"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Flo"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"rence"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Italy"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Italy"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" so"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" as"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" location"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" that"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" exact"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" string"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" location"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" exact"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameter"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" value"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" as"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"I"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" location"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'ll"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameter"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" check"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" weather"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"tool_calls":[{"id":"call_51a97502d6444997b56fd204","index":0,"type":"function","function":{"name":"weather","arguments":"{\"location\": \"Florence,Italy\"}"}}]}}]} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]} - data: {"id":"202509261905574f05504f94b04bb2","created":1758884757,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":179,"completion_tokens":70,"total_tokens":249,"prompt_tokens_details":{"cached_tokens":43}}} + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Florence"}}]} + + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} + + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Italy"}}]} + + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]} + + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]} + + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":".\n"}}]} + + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_6bc2e48a34f34e80995b40d2","index":0,"type":"function","function":{"name":"weather","arguments":"{\"location\":\"Florence,Italy\"}"}}]}}]} + + data: {"id":"202511111756356bb63041b022431d","created":1762854995,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":179,"completion_tokens":77,"total_tokens":256,"prompt_tokens_details":{"cached_tokens":178}}} data: [DONE] @@ -139,22 +153,22 @@ interactions: - text/event-stream;charset=UTF-8 status: 200 OK code: 200 - duration: 658.388083ms + duration: 1.132874458s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 772 + content_length: 1064 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"\n\n","tool_calls":[{"id":"call_51a97502d6444997b56fd204","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_51a97502d6444997b56fd204","role":"tool"}],"model":"glm-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"\nI''ll check the weather in Florence, Italy for you.\n","tool_calls":[{"id":"call_6bc2e48a34f34e80995b40d2","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"\nThe user is asking for the weather in Florence, Italy. I need to use the weather function with the location parameter. The user specified \"Florence,Italy\" so I should use that exact string for the location parameter."},{"content":"40 C","tool_call_id":"call_6bc2e48a34f34e80995b40d2","role":"tool"}],"model":"glm-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -163,193 +177,177 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} - - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} - - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} - - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" returned"}}]} - - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"40"}}]} - - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" C"}}]} - - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Florence"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Italy"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" returned"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" This"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" temperature"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" of"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" quite"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" hot"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"40"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" -"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"°C"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"40"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Florence"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" degrees"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Celsius"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Italy"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" This"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provide"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" quite"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" hot"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" information"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"!"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provide"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" information"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" clear"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" helpful"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" way"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" clear"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"The"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" current"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" helpful"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" weather"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" way"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Florence"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"The"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Italy"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" current"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" is"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" weather"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"40"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Florence"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"°C"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" ("}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Italy"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"104"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" is"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"°F"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":")."}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"40"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" That"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"°C"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'s"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" ("}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" quite"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"104"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" hot"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"°F"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"!"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":")."}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Florence"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" That"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" can"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'s"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" get"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" quite"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" very"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" hot"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" warm"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"!"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" during"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" It"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" summer"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'s"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" months"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" a"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" very"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" so"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" warm"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" if"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" day"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" there"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'re"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" planning"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" so"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" if"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" visit"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'re"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" make"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" planning"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" sure"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" visit"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" stay"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" hydrated"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" make"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" sure"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" seek"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" shade"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" stay"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" during"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" hydrated"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" hottest"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" protect"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" parts"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" yourself"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" of"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" from"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" day"}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" sun"}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"."}}]} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"."}}]} - data: {"id":"20250926190600dac6456f42ba4e48","created":1758884760,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":207,"completion_tokens":96,"total_tokens":303,"prompt_tokens_details":{"cached_tokens":43}}} + data: {"id":"2025111117563873287e56fd174f98","created":1762854998,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":264,"completion_tokens":88,"total_tokens":352,"prompt_tokens_details":{"cached_tokens":194}}} data: [DONE] @@ -358,4 +356,4 @@ interactions: - text/event-stream;charset=UTF-8 status: 200 OK code: 200 - duration: 670.03125ms + duration: 630.944542ms diff --git a/providertests/testdata/TestOpenAICompatibleThinking/llama-cpp-gpt-oss/thinking-streaming.yaml b/providertests/testdata/TestOpenAICompatibleThinking/llama-cpp-gpt-oss/thinking-streaming.yaml index 1bd572824a52e2b522bc4986bc744486a3d13fdd..422f26c5de09803e3f2e526cba5795d87892dcbc 100644 --- a/providertests/testdata/TestOpenAICompatibleThinking/llama-cpp-gpt-oss/thinking-streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleThinking/llama-cpp-gpt-oss/thinking-streaming.yaml @@ -26,43 +26,59 @@ interactions: - chunked content_length: -1 body: |+ - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1762855742,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"We"}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"We"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" need"}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" need"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" to"}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" to"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" call"}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" call"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" the"}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" function"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" weather"}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" '"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" function"}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"weather"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"'"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"id":"Q2J4SAYY3S9Bwuymis3vFUCFquG4g5Za","type":"function","function":{"name":"weather","arguments":"{\""}}]}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" with"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" location"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Flor"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ence"}}]}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"ence"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":","}}]}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":","}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Italy"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\"."}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":"tool_calls","index":0,"delta":{}}],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"id":"1wNpqrejg1FCTjf6xq8JRCGKgWZO74AL","type":"function","function":{"name":"weather","arguments":"{\""}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[],"created":1761672728,"id":"chatcmpl-6VnA4IQXB7MUKijyHkcSCKqZpkFTSwfL","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk","usage":{"completion_tokens":34,"prompt_tokens":139,"total_tokens":173},"timings":{"cache_n":138,"prompt_n":1,"prompt_ms":15.016,"prompt_per_token_ms":15.016,"prompt_per_second":66.59563132658498,"predicted_n":34,"predicted_ms":475.989,"predicted_per_token_ms":13.999676470588234,"predicted_per_second":71.43022212698193}} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} + + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} + + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} + + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ence"}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} + + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":","}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} + + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} + + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} + + data: {"choices":[{"finish_reason":"tool_calls","index":0,"delta":{}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} + + data: {"choices":[],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk","usage":{"completion_tokens":42,"prompt_tokens":139,"total_tokens":181},"timings":{"cache_n":138,"prompt_n":1,"prompt_ms":9.198,"prompt_per_token_ms":9.198,"prompt_per_second":108.71928680147857,"predicted_n":42,"predicted_ms":344.633,"predicted_per_token_ms":8.205547619047618,"predicted_per_second":121.86877054721981}} data: [DONE] @@ -71,15 +87,15 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 1.124ms + duration: 980.667µs - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 781 + content_length: 873 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"Q2J4SAYY3S9Bwuymis3vFUCFquG4g5Za","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"Q2J4SAYY3S9Bwuymis3vFUCFquG4g5Za","role":"tool"}],"model":"openai/gpt-oss-20b","reasoning_effort":"high","stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"1wNpqrejg1FCTjf6xq8JRCGKgWZO74AL","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"We need to call function ''weather'' with location \"Florence, Italy\"."},{"content":"40 C","tool_call_id":"1wNpqrejg1FCTjf6xq8JRCGKgWZO74AL","role":"tool"}],"model":"openai/gpt-oss-20b","reasoning_effort":"high","stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json @@ -97,225 +113,39 @@ interactions: - chunked content_length: -1 body: |+ - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1761672728,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"We"}}],"created":1761672728,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" need"}}],"created":1761672728,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" to"}}],"created":1761672728,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" respond"}}],"created":1761672728,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" to"}}],"created":1761672728,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" user"}}],"created":1761672728,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":":"}}],"created":1761672728,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672728,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"What's"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" the"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" weather"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" in"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Florence"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":","}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Italy"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"?\""}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" We"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" called"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" weather"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" function"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" which"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" returned"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"40"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" C"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\"."}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" That"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" is"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" presumably"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" the"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" temperature"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" We"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" need"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" to"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" respond"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" According"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" to"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" instruction"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":":"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"You"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" are"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" a"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" helpful"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" assistant"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":".\""}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" So"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" we"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" should"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" respond"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" with"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" a"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" concise"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" answer"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":":"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"The"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" weather"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" in"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Florence"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":","}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Italy"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" is"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" 40"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"°C"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\""}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" maybe"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" include"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" other"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" details"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" like"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"sun"}}],"created":1761672729,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"ny"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\""}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" or"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"clear"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\""}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" but"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" not"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" provided"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Just"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" temperature"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" We'll"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" provide"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" the"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" answer"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} - - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"The"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"The"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" current"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" current"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" weather"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" weather"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" in"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" in"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Florence"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Florence"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":","}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":","}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Italy"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Italy"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" is"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" is"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" **"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" **"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"40"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"40"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" "}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" "}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"°C"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"°C"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"**"}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"**"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"."}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"."}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[{"finish_reason":"stop","index":0,"delta":{}}],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk"} + data: {"choices":[{"finish_reason":"stop","index":0,"delta":{}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"} - data: {"choices":[],"created":1761672730,"id":"chatcmpl-OEqywDEaa0oaGwjbamEm70IhcnFFxSyH","model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion.chunk","usage":{"completion_tokens":118,"prompt_tokens":175,"total_tokens":293},"timings":{"cache_n":139,"prompt_n":36,"prompt_ms":155.914,"prompt_per_token_ms":4.3309444444444445,"prompt_per_second":230.8965198763421,"predicted_n":118,"predicted_ms":1737.289,"predicted_per_token_ms":14.72278813559322,"predicted_per_second":67.92191742421669}} + data: {"choices":[],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk","usage":{"completion_tokens":18,"prompt_tokens":197,"total_tokens":215},"timings":{"cache_n":161,"prompt_n":36,"prompt_ms":79.751,"prompt_per_token_ms":2.2153055555555556,"prompt_per_second":451.40499805645067,"predicted_n":18,"predicted_ms":139.164,"predicted_per_token_ms":7.731333333333333,"predicted_per_second":129.34379580926102}} data: [DONE] @@ -324,4 +154,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 6.87925ms + duration: 2.833375ms diff --git a/providertests/testdata/TestOpenAICompatibleThinking/llama-cpp-gpt-oss/thinking.yaml b/providertests/testdata/TestOpenAICompatibleThinking/llama-cpp-gpt-oss/thinking.yaml index 6d9c4d36720130be059b5354ba015f0556196a51..b979188f72d96615730c7ac8363eb650d4fe774c 100644 --- a/providertests/testdata/TestOpenAICompatibleThinking/llama-cpp-gpt-oss/thinking.yaml +++ b/providertests/testdata/TestOpenAICompatibleThinking/llama-cpp-gpt-oss/thinking.yaml @@ -22,22 +22,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 905 - body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"role":"assistant","reasoning_content":"User asks: \"What''s the weather in Florence, Italy?\" We have a tool \"weather\" to get weather information. We should call it.","content":null,"tool_calls":[{"type":"function","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"id":"u36jVf07R9qUqfK2POEsHz6i6DUtUlrb"}]}}],"created":1761672726,"model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion","usage":{"completion_tokens":55,"prompt_tokens":139,"total_tokens":194},"id":"chatcmpl-4kIkhSfHyNWuEKyYA5E7TAJXPd43t4TA","timings":{"cache_n":134,"prompt_n":5,"prompt_ms":2466.686,"prompt_per_token_ms":493.33720000000005,"prompt_per_second":2.027011139642419,"predicted_n":55,"predicted_ms":758.656,"predicted_per_token_ms":13.793745454545453,"predicted_per_second":72.49662561160791}}' + content_length: 887 + body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"role":"assistant","reasoning_content":"The user asks: \"What''s the weather in Florence, Italy?\" We can use the weather function. So call the function.","content":null,"tool_calls":[{"type":"function","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"id":"fdRvrwCxXKWGpydIdV3kNaiuirhnhEoL"}]}}],"created":1762855742,"model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion","usage":{"completion_tokens":51,"prompt_tokens":139,"total_tokens":190},"id":"chatcmpl-taknL1RlYNQ4ybq3l7O6u7Th97XVLXui","timings":{"cache_n":134,"prompt_n":5,"prompt_ms":49.294,"prompt_per_token_ms":9.858799999999999,"prompt_per_second":101.43222298859902,"predicted_n":51,"predicted_ms":428.45,"predicted_per_token_ms":8.400980392156862,"predicted_per_second":119.03372622242969}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 3.241207416s + duration: 481.413666ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 727 + content_length: 862 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"u36jVf07R9qUqfK2POEsHz6i6DUtUlrb","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"u36jVf07R9qUqfK2POEsHz6i6DUtUlrb","role":"tool"}],"model":"openai/gpt-oss-20b","reasoning_effort":"high","tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"fdRvrwCxXKWGpydIdV3kNaiuirhnhEoL","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"The user asks: \"What''s the weather in Florence, Italy?\" We can use the weather function. So call the function."},{"content":"40 C","tool_call_id":"fdRvrwCxXKWGpydIdV3kNaiuirhnhEoL","role":"tool"}],"model":"openai/gpt-oss-20b","reasoning_effort":"high","tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json @@ -51,11 +51,11 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1115 - body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","reasoning_content":"We received a response from the weather function: \"40 C\". That''s presumably the temperature. We need to respond to the user. We should confirm the weather: maybe mention temperature and any other relevant details? The function returned only a string \"40 C\". We might need to parse that. We should respond politely: \"It’s 40°C in Florence today.\" Maybe mention if it''s sunny/hot. But we only have temperature. So reply with that.","content":"The current temperature in Florence, Italy is **40 °C**."}}],"created":1761672728,"model":"openai/gpt-oss-20b","system_fingerprint":"b6865-1c1409e13","object":"chat.completion","usage":{"completion_tokens":116,"prompt_tokens":175,"total_tokens":291},"id":"chatcmpl-re0qUJQS09pH36j3sVdLXNuWuV2n3xV6","timings":{"cache_n":82,"prompt_n":93,"prompt_ms":354.988,"prompt_per_token_ms":3.8170752688172045,"prompt_per_second":261.98068667109874,"predicted_n":116,"predicted_ms":1614.389,"predicted_per_token_ms":13.917146551724137,"predicted_per_second":71.85380970757359}}' + content_length: 821 + body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","content":"Here’s the current weather in Florence, Italy:\n\n- **Temperature:** 40 °C \n- **Conditions:** Sunny with light wind \n\nEnjoy your day! (If you need more details—humidity, wind speed, forecast, etc.—just let me know.)"}}],"created":1762855742,"model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion","usage":{"completion_tokens":57,"prompt_tokens":206,"total_tokens":263},"id":"chatcmpl-cHcde6wDsUL9BxFHGP9m6nEMWNXzZR1I","timings":{"cache_n":170,"prompt_n":36,"prompt_ms":79.333,"prompt_per_token_ms":2.2036944444444444,"prompt_per_second":453.7834192580641,"predicted_n":57,"predicted_ms":476.185,"predicted_per_token_ms":8.354122807017545,"predicted_per_second":119.70137656583051}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 1.972542708s + duration: 557.318541ms diff --git a/providertests/testdata/TestOpenAICompatibleThinking/xai-grok-3-mini/thinking-streaming.yaml b/providertests/testdata/TestOpenAICompatibleThinking/xai-grok-3-mini/thinking-streaming.yaml index 9d95fe8bc3d7f7c0af495fda306ca9b568f59d1d..c0275256bbdfd1b7a0c0676a936117086ae22f17 100644 --- a/providertests/testdata/TestOpenAICompatibleThinking/xai-grok-3-mini/thinking-streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleThinking/xai-grok-3-mini/thinking-streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,495 +24,557 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"First","role":"assistant"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"First","role":"assistant"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" asking"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" asking"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" have"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" have"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" an"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" available"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" available"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" called"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" called"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"weather"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" that"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" that"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" can"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" can"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" get"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" get"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" location"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" location"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" description"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" description"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Get"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Get"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" location"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" location"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" The"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" The"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" parameters"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" parameters"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" require"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" require"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"location"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"location"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" string"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" string"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" describing"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" described"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" as"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" city"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"In"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" city"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" this"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" query"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" provided"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" has"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" provided"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" specifies"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" both"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" This"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884798,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clearly"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" city"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" specifies"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" city"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" country"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" country"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" This"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" so"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" be"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" sufficient"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" location"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" as"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" infer"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" location"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"able"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" parameter"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" as"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" can"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" use"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" don't"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" need"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" as"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" ask"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" argument"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" more"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clarification"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" location"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"All"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855027,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" required"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" parameters"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" be"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" are"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" provided"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" JSON"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" format"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clear"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" within"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" <"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" No"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" need"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":">"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" tags"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" The"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" format"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" <"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" specified"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" JSON"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":">{\""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" format"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"action"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" within"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" <"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_call"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_name"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":">"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" tags"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"action"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_input"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" format"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" {\""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"parameter"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" <"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_call"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"argument"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":">{\""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"action"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"}}\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"For"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" this"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"action"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_input"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\":"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" action"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" {\""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"location"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\":"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"weather"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" action"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_input"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"}}\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" parameter"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"After"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" calling"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"location"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" with"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" value"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" might"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" need"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" handle"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" subsequent"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" not"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" turns"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" provide"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" any"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" but"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" additional"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" now"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" outside"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" of"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" this"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" logical"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" if"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" next"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I'm"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" step"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" deciding"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" advance"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user's"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884799,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" request"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" as"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"My"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" per"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" instructions"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" only"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" contain"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" The"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" instructions"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" say"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" since"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I'm"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Keep"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" deciding"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" your"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clear"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":";"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" please"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" shouldn't"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" do"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" add"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" not"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" extra"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" make"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" text"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" your"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" unless"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" necessary"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" verbose"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"!\""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" So"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" instructions"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" say"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" just"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" keep"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" make"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" responses"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clear"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" not"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" verbose"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"This"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" seems"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"So"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" like"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I'll"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" direct"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" output"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" match"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" just"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" available"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_64866740","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855028,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" all"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"aec0b881-26b5-4e1f-a428-1f70a8e27816_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[],"usage":{"prompt_tokens":288,"completion_tokens":27,"total_tokens":557,"prompt_tokens_details":{"text_tokens":288,"audio_tokens":0,"image_tokens":0,"cached_tokens":287},"completion_tokens_details":{"reasoning_tokens":242,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" required"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" parameters"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" are"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" provided"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" So"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Final"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" decision"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Trigger"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" with"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" location"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\"."}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_91894226","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"b0c242a8-b68d-f435-3f59-b35f8a09195a","object":"chat.completion.chunk","created":1762855029,"model":"grok-3-mini-high","choices":[],"usage":{"prompt_tokens":288,"completion_tokens":27,"total_tokens":588,"prompt_tokens_details":{"text_tokens":288,"audio_tokens":0,"image_tokens":0,"cached_tokens":287},"completion_tokens_details":{"reasoning_tokens":273,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_a6fbae1a97"} data: [DONE] @@ -521,22 +583,22 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 166.84775ms + duration: 196.291541ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 736 + content_length: 2177 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"call_64866740","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_64866740","role":"tool"}],"model":"grok-3-mini","reasoning_effort":"high","stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"call_91894226","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"First, the user is asking for the weather in Florence, Italy. I have an available function called \"weather\" that can get weather information for a location.\n\nThe function description is: \"Get weather information for a location\". The parameters require a \"location\" which is a string describing the city.\n\nIn this query, the user has provided \"Florence, Italy\". This clearly specifies the city and country, so the location is inferable as \"Florence, Italy\". I don''t need to ask for more clarification.\n\nThe function call should be in JSON format within \u003cfunction_call\u003e\u003c/function_call\u003e tags. The format is: \u003cfunction_call\u003e{\"action\": \"function_name\", \"action_input\": {\"parameter\": \"argument\"}}\u003c/function_call\u003e\n\nFor this, the action is \"weather\", and the action_input should have the parameter \"location\" with the value \"Florence, Italy\".\n\nI should not provide any additional response outside of the function call if I''m deciding to call a function, as per the instructions. The instructions say: \"Keep your response to user clear; please do not make your response verbose!\" So, I should just make the function call.\n\nThis seems like a direct match for the available function, and all required parameters are provided. So, I should call the function.\n\nFinal decision: Trigger the function call for weather with location \"Florence, Italy\"."},{"content":"40 C","tool_call_id":"call_91894226","role":"tool"}],"model":"grok-3-mini","reasoning_effort":"high","stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -545,507 +607,617 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"First","role":"assistant"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"First","role":"assistant"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" asked"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"What's"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"?\""}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" This"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" directly"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" matches"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" available"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" requires"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"location"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" parameter"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"I"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" already"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" called"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" my"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" previous"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" <"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"function"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_call"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":">{\""}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"action"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\":"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"action"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_input"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\":"}}],"system_fingerprint":"fp_a6fbae1a97"} + + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" {\""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"location"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884800,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" asked"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"What's"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"}}\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Now"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"?\""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" This"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" directly"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" has"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" matches"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" been"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" called"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" available"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I'm"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" given"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" requires"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"location"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" parameter"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" C"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" already"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" This"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" called"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" seems"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" be"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" output"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" my"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" from"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" previous"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" now"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"My"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I'm"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" role"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" receiving"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" be"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" from"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" helpful"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" assistant"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" After"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" C"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" This"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" likely"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" need"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" temperature"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" handle"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Celsius"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"My"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" provide"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" role"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" it"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" be"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855030,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" helpful"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" assistant"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clear"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" After"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" non"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" calling"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"-"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"verbose"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" way"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" provide"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" result"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clear"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" C"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" non"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"-"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"verbose"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" assume"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" way"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" means"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" degrees"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Celsius"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" was"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" successful"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" present"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" this"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" have"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clearly"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" result"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Since"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" don't"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user's"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" need"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" query"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884801,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" fully"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" any"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" addressed"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" more"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" by"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" functions"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" this"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" unless"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" more"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" needed"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" don't"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" need"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" isn't"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" any"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" case"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" more"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" here"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" functions"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" respond"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" just"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" with"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" respond"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" with"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" based"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" on"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Response"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" guidelines"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"'s"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" output"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"-"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Keep"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" The"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" it"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" output"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clear"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" not"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" verbose"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" C"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"-"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" If"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I'm"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" assume"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" not"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" means"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" calling"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" degrees"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Celsius"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" don't"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" To"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" use"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" make"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" it"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" <"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" helpful"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"_call"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":">"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" can"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" tags"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" phrase"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" it"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"-"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clearly"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" In"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" this"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Keep"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" case"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I'm"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" clear"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" responding"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" not"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" verbose"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" with"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" as"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" per"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" result"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" instructions"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"So"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Final"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" say"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" be"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" something"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" something"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" like"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" like"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" degrees"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" degrees"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Celsius"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Celsius"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\"\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\"\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" output"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" just"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" just"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855031,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" C"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" C"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"\","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" which"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" so"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I'll"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" informal"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" use"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" that"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" directly"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" make"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"I"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" it"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" shouldn't"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884802,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" add"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"-friendly"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" extra"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"Finally"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" unless"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" necessary"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" structure"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" my"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" The"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" user's"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" query"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" Since"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" I'm"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" fully"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" not"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" addressed"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" calling"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" with"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" another"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" this"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":".\n\n"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"No"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" my"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" need"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" response"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" for"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" should"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" another"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" be"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" function"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" plain"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" call"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":" text"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":"The"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" weather"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" in"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" Florence"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":","}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" Italy"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" is"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":" "}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":"40"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":"°C"}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":"°C"}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{"content":"."}}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"system_fingerprint":"fp_a6fbae1a97"} - data: {"id":"b0c61a42-4193-9739-e9c7-3a198631fa7f_us-east-1","object":"chat.completion.chunk","created":1758884803,"model":"grok-3-mini-high","choices":[],"usage":{"prompt_tokens":332,"completion_tokens":11,"total_tokens":581,"prompt_tokens_details":{"text_tokens":332,"audio_tokens":0,"image_tokens":0,"cached_tokens":331},"completion_tokens_details":{"reasoning_tokens":238,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_a6fbae1a97"} + data: {"id":"4ca6b812-27df-6be3-8428-01d957f2a01c","object":"chat.completion.chunk","created":1762855032,"model":"grok-3-mini-high","choices":[],"usage":{"prompt_tokens":331,"completion_tokens":11,"total_tokens":635,"prompt_tokens_details":{"text_tokens":331,"audio_tokens":0,"image_tokens":0,"cached_tokens":330},"completion_tokens_details":{"reasoning_tokens":293,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_a6fbae1a97"} data: [DONE] @@ -1054,4 +1226,4 @@ interactions: - text/event-stream status: 200 OK code: 200 - duration: 172.517709ms + duration: 170.574ms diff --git a/providertests/testdata/TestOpenAICompatibleThinking/xai-grok-3-mini/thinking.yaml b/providertests/testdata/TestOpenAICompatibleThinking/xai-grok-3-mini/thinking.yaml index 851562bddcad010943b984ac0776ba9f1828946f..de62efd6e6b1b7155cce9d7b2c1b0f76ce9674af 100644 --- a/providertests/testdata/TestOpenAICompatibleThinking/xai-grok-3-mini/thinking.yaml +++ b/providertests/testdata/TestOpenAICompatibleThinking/xai-grok-3-mini/thinking.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -24,28 +24,28 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"f34c1057-adbf-c28f-afc3-aa8737faf493_us-east-1","object":"chat.completion","created":1758884792,"model":"grok-3-mini-high","choices":[{"index":0,"message":{"role":"assistant","content":"","reasoning_content":"First, the user is asking for the weather in Florence, Italy. I have an available function called \"weather\" that can get weather information for a location.\n\nThe function description is: \"Get weather information for a location\". The parameters require a \"location\" which is a string describing the city.\n\nIn this query, the user has provided \"Florence, Italy\", which clearly specifies the city and country. This should be sufficient as the location parameter.\n\nAll required parameters are provided: the location is \"Florence, Italy\". I don''t need to ask for clarification.\n\nI should call the function in the specified JSON format within tags.\n\nFunction call format: {\"action\": \"function_name\", \"action_input\": {\"parameter\": \"argument\"}}\n\nFor this, the action is \"weather\", and the action_input should have \"location\" with the value \"Florence, Italy\".\n\nSo, the function call should be: {\"action\": \"weather\", \"action_input\": {\"location\": \"Florence, Italy\"}}\n\nAfter calling the function, I might need to handle the response in subsequent turns, but for now, this is the logical next step to advance the user''s request.\n\nMy response should only contain the function call since I''m deciding to call a function. I shouldn''t add any extra text unless necessary, and the instructions say to keep responses clear and not verbose.\n\nFinally, confirm: Is there any reason not to call the function? No, it matches perfectly.","tool_calls":[{"id":"call_71093541","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":288,"completion_tokens":27,"total_tokens":620,"prompt_tokens_details":{"text_tokens":288,"audio_tokens":0,"image_tokens":0,"cached_tokens":7},"completion_tokens_details":{"reasoning_tokens":305,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_a6fbae1a97"}' + body: '{"id":"4d46c468-07c9-43d6-ec35-526a4c35aaa2","object":"chat.completion","created":1762855019,"model":"grok-3-mini-high","choices":[{"index":0,"message":{"role":"assistant","content":"","reasoning_content":"First, the user is asking for the weather in Florence, Italy. I have an available function called \"weather\" that can get weather information for a location. The function requires a \"location\" parameter, which is a string describing the city.\n\nThe location provided in the query is \"Florence, Italy\". This seems clear and matches the required parameter. I can infer that \"Florence, Italy\" is the city name, so I don''t need more information.\n\nThe function description says the location is \"the city\", so passing \"Florence, Italy\" should work as it specifies the city and country, which might help in accuracy.\n\nI should call the function if it can address the query. Here, it directly can, so I need to use the tag in JSON format.\n\nThe format should be: {\"action\": \"weather\", \"action_input\": {\"location\": \"Florence, Italy\"}}\n\nAfter calling the function, I might need to handle the response in subsequent turns, but for now, this is the logical next step.\n\nMy response should not be verbose; keep it clear. Since I''m calling a function, I shouldn''t add extra text unless necessary. The instruction says to use the tag only when deciding to call a function, and not to add other text if not needed. But in this case, since the response is just the function call, I can output that directly.\n\nFinally, confirm: no missing parameters, location is provided. Function matches the query.","tool_calls":[{"id":"call_67567016","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":288,"completion_tokens":27,"total_tokens":621,"prompt_tokens_details":{"text_tokens":288,"audio_tokens":0,"image_tokens":0,"cached_tokens":5},"completion_tokens_details":{"reasoning_tokens":306,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_a6fbae1a97"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 3.0643785s + duration: 3.652396875s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 682 + content_length: 2222 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"call_71093541","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_71093541","role":"tool"}],"model":"grok-3-mini","reasoning_effort":"high","tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"call_67567016","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"First, the user is asking for the weather in Florence, Italy. I have an available function called \"weather\" that can get weather information for a location. The function requires a \"location\" parameter, which is a string describing the city.\n\nThe location provided in the query is \"Florence, Italy\". This seems clear and matches the required parameter. I can infer that \"Florence, Italy\" is the city name, so I don''t need more information.\n\nThe function description says the location is \"the city\", so passing \"Florence, Italy\" should work as it specifies the city and country, which might help in accuracy.\n\nI should call the function if it can address the query. Here, it directly can, so I need to use the \u003cfunction_call\u003e tag in JSON format.\n\nThe format should be: \u003cfunction_call\u003e{\"action\": \"weather\", \"action_input\": {\"location\": \"Florence, Italy\"}}\u003c/function_call\u003e\n\nAfter calling the function, I might need to handle the response in subsequent turns, but for now, this is the logical next step.\n\nMy response should not be verbose; keep it clear. Since I''m calling a function, I shouldn''t add extra text unless necessary. The instruction says to use the \u003cfunction_call\u003e tag only when deciding to call a function, and not to add other text if not needed. But in this case, since the response is just the function call, I can output that directly.\n\nFinally, confirm: no missing parameters, location is provided. Function matches the query."},{"content":"40 C","tool_call_id":"call_67567016","role":"tool"}],"model":"grok-3-mini","reasoning_effort":"high","tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.x.ai/v1/chat/completions method: POST response: @@ -54,10 +54,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"id":"17c031cd-ed79-e606-6e09-2f426babeb54_us-east-1","object":"chat.completion","created":1758884795,"model":"grok-3-mini-high","choices":[{"index":0,"message":{"role":"assistant","content":"The current weather in Florence, Italy, is 40°C.","reasoning_content":"First, the user asked about the weather in Florence, Italy. I have a function available called \"weather\" that can get weather information for a location. The required parameter is \"location\", which is a string.\n\nIn my initial response, I already called the function with the location \"Florence, Italy\", as it was a direct match and all parameters were provided.\n\nNow, the function call has been executed, and the response is \"40 C\". This means the weather function returned that the temperature is 40 degrees Celsius. I need to respond to the user with this information in a helpful and clear way.\n\nMy role is to be a helpful assistant. I should present the information from the function call clearly. Since the function call was successful and provided the data, I don''t need to call any more functions unless there''s more to the user''s request.\n\nThe user''s query is fully addressed with this weather information. I should not add extra unnecessary information or verbosity, as per the instructions.\n\nFinally, I need to format my response properly. I''m not calling another function here, so I shouldn''t use the tags. Just a straightforward response.\n\nResponse structure:\n- Keep it clear and concise.\n- State the weather based on the function''s output.","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":332,"completion_tokens":13,"total_tokens":594,"prompt_tokens_details":{"text_tokens":332,"audio_tokens":0,"image_tokens":0,"cached_tokens":283},"completion_tokens_details":{"reasoning_tokens":249,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_a6fbae1a97"}' + body: '{"id":"8f7e3075-4206-df84-6f7a-689e2b8deb0f","object":"chat.completion","created":1762855023,"model":"grok-3-mini-high","choices":[{"index":0,"message":{"role":"assistant","content":"The weather in Florence, Italy is 40°C.","reasoning_content":"First, the user asked: \"What''s the weather in Florence, Italy?\" This directly matches the available function \"weather\", which retrieves weather information for a location.\n\nThe function call I made was: {\"action\": \"weather\", \"action_input\": {\"location\": \"Florence, Italy\"}}. That was correct because the location is provided and inferable.\n\nNow, the response from the function is: \"40 C\". This seems to be the weather information, likely meaning 40 degrees Celsius.\n\nMy role is to be a helpful assistant. After calling a function, I need to provide a clear response to the user based on the function''s output. The instructions say: \"Keep your response to user clear; please do not make your response verbose!\" So, I should be concise.\n\nThe conversation is multi-turn, but in this case, the function call has been executed, and I have the result. I should now present this information to the user.\n\nThe function output is just \"40 C\", which is minimal. I can infer this means the temperature is 40 degrees Celsius, but I should confirm if there''s more to it. However, the function description is \"Get weather information\", and it returned \"40 C\", so I''ll assume that''s the key information provided.\n\nI need to decide if I should call another function or respond. The user''s request is fulfilled with this weather information, so no need for further function calls.\n\nResponse structure: I should not use tags unless I''m calling a function. Now, I''m responding with the result.\n\nClear and concise response: \"The weather in Florence, Italy is 40 degrees Celsius.\"\n\nTo make it even better, I could say: \"The current weather in Florence, Italy is 40°C.\"\n\nBut the function output is \"40 C\", so I''ll stick close to that.\n\nFinally, ensure I''m not verbose.","refusal":null},"finish_reason":"stop"}],"usage":{"prompt_tokens":331,"completion_tokens":11,"total_tokens":722,"prompt_tokens_details":{"text_tokens":331,"audio_tokens":0,"image_tokens":0,"cached_tokens":283},"completion_tokens_details":{"reasoning_tokens":380,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_a6fbae1a97"}' headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 2.515450375s + duration: 3.91244875s diff --git a/providertests/testdata/TestOpenAICompatibleThinking/zai-glm-4.5/thinking-streaming.yaml b/providertests/testdata/TestOpenAICompatibleThinking/zai-glm-4.5/thinking-streaming.yaml index 435d6d0975c1e6d1b8ef54460b9982e91c91676f..44254cedf11ce57bcea59b61b6d18e0d4467a18c 100644 --- a/providertests/testdata/TestOpenAICompatibleThinking/zai-glm-4.5/thinking-streaming.yaml +++ b/providertests/testdata/TestOpenAICompatibleThinking/zai-glm-4.5/thinking-streaming.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -24,117 +24,141 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" asking"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" asking"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" information"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Florence"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Florence"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Italy"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Italy"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" have"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" have"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" access"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" access"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" that"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" that"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" takes"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" takes"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" location"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" location"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameter"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameter"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" has"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" has"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" specified"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" specified"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Flo"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Flo"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"rence"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"rence"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Italy"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Italy"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" as"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" as"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" location"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" location"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" so"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" so"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" have"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" have"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" all"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" all"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" required"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" required"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameters"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameters"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" make"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" make"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" call"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" call"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"tool_calls":[{"id":"call_e6e3edb2371843ad9503e65b","index":0,"type":"function","function":{"name":"weather","arguments":"{\"location\": \"Florence, Italy\"}"}}]}}]} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"I"}}]} - data: {"id":"2025092619065217d08d861c2248cd","created":1758884812,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":179,"completion_tokens":72,"total_tokens":251,"prompt_tokens_details":{"cached_tokens":43}}} + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'ll"}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" check"}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" weather"}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Florence"}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Italy"}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":".\n"}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_c31d9089eb114d168d3264ff","index":0,"type":"function","function":{"name":"weather","arguments":"{\"location\":\"Florence, Italy\"}"}}]}}]} + + data: {"id":"202511111757251676844c980648b3","created":1762855045,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":179,"completion_tokens":84,"total_tokens":263,"prompt_tokens_details":{"cached_tokens":178}}} data: [DONE] @@ -143,22 +167,22 @@ interactions: - text/event-stream;charset=UTF-8 status: 200 OK code: 200 - duration: 901.215542ms + duration: 1.438553125s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 782 + content_length: 1113 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"content":"\n\n","tool_calls":[{"id":"call_e6e3edb2371843ad9503e65b","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_e6e3edb2371843ad9503e65b","role":"tool"}],"model":"glm-4.5","reasoning_effort":"high","stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"content":"\nI''ll check the weather in Florence, Italy for you.\n","tool_calls":[{"id":"call_c31d9089eb114d168d3264ff","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"\nThe user is asking for weather information for Florence, Italy. I have access to a weather function that takes a location parameter. The user has specified \"Florence, Italy\" as the location, so I have all the required parameters to make the function call."},{"content":"40 C","tool_call_id":"call_c31d9089eb114d168d3264ff","role":"tool"}],"model":"glm-4.5","reasoning_effort":"high","stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -167,217 +191,193 @@ interactions: proto_minor: 0 content_length: -1 body: |+ - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" returned"}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"40"}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" C"}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Florence"}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Italy"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" This"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" weather"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" returned"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" very"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" high"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"40"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" temperature"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" C"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" -"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"40"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Florence"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" degrees"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Celsius"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Italy"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" quite"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" This"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" hot"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" indicates"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"!"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" current"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" temperature"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provide"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" information"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"40"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" degrees"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Celsius"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" which"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" perhaps"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" add"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" quite"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" some"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" hot"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" context"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" about"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" what"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provide"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" temperature means"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" information"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"The"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" current"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" weather"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Florence"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" clear"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Italy"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" helpful"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" is"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" way"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"40"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"°C"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"The"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" ("}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" current"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"104"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" weather"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"°F"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":")."}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Florence"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" That"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'s"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" Italy"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" quite"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" is"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" hot"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" "}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"!"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"40"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" This"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"°C"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" is"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" ("}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" a"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"104"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" very"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"°F"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" warm"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":")."}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" temperature"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" That"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'s"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" so"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" quite"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" if"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" hot"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"!"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'re"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" It"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" planning"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'s"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" a"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" be"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" very"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" outdoors"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" warm"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" day"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" make"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" sure"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" so"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" if"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" stay"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" hydrated"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"'re"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" planning"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" wear"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" light"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" be"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" clothing"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" outdoors"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" make"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" seek"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" sure"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" shade"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" during"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" stay"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" hydrated"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" hottest"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" parts"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" seek"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" of"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" shade"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" when"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" day"}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":" possible"}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"."}}]} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"."}}]} - data: {"id":"20250926190654d7bdfa5ed14249d1","created":1758884815,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":207,"completion_tokens":109,"total_tokens":316,"prompt_tokens_details":{"cached_tokens":43}}} + data: {"id":"202511111757299016f9976fc249dd","created":1762855049,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":271,"completion_tokens":96,"total_tokens":367,"prompt_tokens_details":{"cached_tokens":262}}} data: [DONE] @@ -386,4 +386,4 @@ interactions: - text/event-stream;charset=UTF-8 status: 200 OK code: 200 - duration: 676.7695ms + duration: 701.355917ms diff --git a/providertests/testdata/TestOpenAICompatibleThinking/zai-glm-4.5/thinking.yaml b/providertests/testdata/TestOpenAICompatibleThinking/zai-glm-4.5/thinking.yaml index ea69f2bcf72edf5453983eaf0c3639bad12eeb97..a0a68f96595688884a5ef351b460deb88ae1a382 100644 --- a/providertests/testdata/TestOpenAICompatibleThinking/zai-glm-4.5/thinking.yaml +++ b/providertests/testdata/TestOpenAICompatibleThinking/zai-glm-4.5/thinking.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -24,28 +24,28 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"\n\nI''ll check the weather in Florence, Italy for you.\n","reasoning_content":"The user is asking for weather information for Florence, Italy. I have access to a weather function that requires a \"location\" parameter. The user has provided \"Florence, Italy\" as the location, so I have all the required information to make the function call.","role":"assistant","tool_calls":[{"function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"id":"call_-8303617501649735809","index":0,"type":"function"}]}}],"created":1758884808,"id":"20250926190643068def4b4247493f","model":"glm-4.5","request_id":"20250926190643068def4b4247493f","usage":{"completion_tokens":86,"prompt_tokens":179,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":265}}' + body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"\nI''ll check the weather in Florence, Italy for you.\n","reasoning_content":"\nThe user is asking for the weather in Florence, Italy. I need to use the weather function to get this information. The function requires a \"location\" parameter, and the user has specified \"Florence, Italy\" as the location. I should use this exact value for the location parameter.","role":"assistant","tool_calls":[{"function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"id":"call_-8167683298435521960","index":0,"type":"function"}]}}],"created":1762855036,"id":"20251111175712e9c3abb6e9ff40e7","model":"glm-4.5","request_id":"20251111175712e9c3abb6e9ff40e7","usage":{"completion_tokens":91,"prompt_tokens":179,"prompt_tokens_details":{"cached_tokens":44},"total_tokens":270}}' headers: Content-Type: - application/json; charset=UTF-8 status: 200 OK code: 200 - duration: 4.969463833s + duration: 4.539574875s - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 772 + content_length: 1078 host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"content":"\n\nI''ll check the weather in Florence, Italy for you.\n","tool_calls":[{"id":"call_-8303617501649735809","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_-8303617501649735809","role":"tool"}],"model":"glm-4.5","reasoning_effort":"high","tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"content":"\nI''ll check the weather in Florence, Italy for you.\n","tool_calls":[{"id":"call_-8167683298435521960","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"\nThe user is asking for the weather in Florence, Italy. I need to use the weather function to get this information. The function requires a \"location\" parameter, and the user has specified \"Florence, Italy\" as the location. I should use this exact value for the location parameter."},{"content":"40 C","tool_call_id":"call_-8167683298435521960","role":"tool"}],"model":"glm-4.5","reasoning_effort":"high","tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}' headers: Accept: - application/json Content-Type: - application/json User-Agent: - - OpenAI/Go 2.3.0 + - OpenAI/Go 2.7.1 url: https://api.z.ai/api/coding/paas/v4/chat/completions method: POST response: @@ -54,10 +54,10 @@ interactions: proto_minor: 0 content_length: -1 uncompressed: true - body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"\n\nThe weather in Florence, Italy is currently 40°C (104°F). That''s quite hot! Florence typically has warm summers, but this temperature is particularly high even for the region. Make sure to stay hydrated and seek shade if you''re there, as this level of heat can be quite intense.","reasoning_content":"The weather function returned \"40 C\" for Florence, Italy. This seems like a very high temperature (40°C/104°F), which would be extremely hot for Florence. Let me provide this information to the user while noting that this seems unusually warm.","role":"assistant"}}],"created":1758884811,"id":"2025092619064878c373b988234a18","model":"glm-4.5","request_id":"2025092619064878c373b988234a18","usage":{"completion_tokens":116,"prompt_tokens":219,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":335}}' + body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"\nThe current weather in Florence, Italy is 40°C (104°F). That''s quite hot! Make sure to stay hydrated and seek shade if you''re out and about.","reasoning_content":"\nThe weather function returned \"40 C\" for Florence, Italy. This indicates it''s quite hot - 40 degrees Celsius. I should provide this information to the user in a clear and helpful way.","role":"assistant"}}],"created":1762855045,"id":"20251111175717dfeae12b868f40ed","model":"glm-4.5","request_id":"20251111175717dfeae12b868f40ed","usage":{"completion_tokens":80,"prompt_tokens":278,"prompt_tokens_details":{"cached_tokens":176},"total_tokens":358}}' headers: Content-Type: - application/json; charset=UTF-8 status: 200 OK code: 200 - duration: 3.68313875s + duration: 8.759282417s From cce6428cd4bbb0ae2d124d5cdcac1839ef39e520 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Wed, 12 Nov 2025 20:22:20 +0100 Subject: [PATCH 5/8] feat: support structured output (#66) --- agent_test.go | 8 + errors.go | 28 + examples/structured-outputs/go.mod | 26 + examples/structured-outputs/go.sum | 44 + examples/structured-outputs/main.go | 99 ++ go.mod | 12 +- go.sum | 22 +- model.go | 4 +- object.go | 233 ++++ object/object.go | 616 +++++++++ providers/anthropic/anthropic.go | 37 +- providers/google/google.go | 284 +++- providers/openai/language_model.go | 301 ++++- providers/openai/openai.go | 21 +- providers/openai/responses_language_model.go | 309 ++++- providers/openaicompat/openaicompat.go | 20 + providers/openrouter/openrouter.go | 25 +- providertests/anthropic_test.go | 8 + providertests/google_test.go | 16 + providertests/object_test.go | 421 ++++++ providertests/openai_responses_test.go | 8 + providertests/openai_test.go | 8 + providertests/openaicompat_test.go | 8 + .../claude-sonnet-4/complex_object.yaml | 33 + .../complex_object_streaming.yaml | 152 +++ .../claude-sonnet-4/simple_object.yaml | 33 + .../simple_object_streaming.yaml | 89 ++ .../gemini-2.5-flash/complex_object.yaml | 62 + .../complex_object_streaming.yaml | 34 + .../gemini-2.5-flash/simple_object.yaml | 62 + .../simple_object_streaming.yaml | 34 + .../gemini-2.5-pro/complex_object.yaml | 62 + .../complex_object_streaming.yaml | 34 + .../gemini-2.5-pro/simple_object.yaml | 62 + .../simple_object_streaming.yaml | 34 + .../complex_object.yaml | 33 + .../complex_object_streaming.yaml | 132 ++ .../simple_object.yaml | 33 + .../simple_object_streaming.yaml | 81 ++ .../complex_object.yaml | 70 + .../complex_object_streaming.yaml | 34 + .../simple_object.yaml | 70 + .../simple_object_streaming.yaml | 34 + .../vertex-gemini-2-5-pro/complex_object.yaml | 70 + .../complex_object_streaming.yaml | 34 + .../vertex-gemini-2-5-pro/simple_object.yaml | 70 + .../simple_object_streaming.yaml | 34 + .../xai-grok-4-fast/complex_object.yaml | 33 + .../complex_object_streaming.yaml | 1158 +++++++++++++++++ .../xai-grok-4-fast/simple_object.yaml | 33 + .../simple_object_streaming.yaml | 378 ++++++ .../xai-grok-code-fast/complex_object.yaml | 33 + .../complex_object_streaming.yaml | 320 +++++ .../xai-grok-code-fast/simple_object.yaml | 33 + .../simple_object_streaming.yaml | 338 +++++ .../zai-glm-4.5/complex_object.yaml | 33 + .../zai-glm-4.5/complex_object_streaming.yaml | 446 +++++++ .../zai-glm-4.5/simple_object.yaml | 33 + .../zai-glm-4.5/simple_object_streaming.yaml | 200 +++ .../openai-gpt-4o-mini/complex_object.yaml | 69 + .../complex_object_streaming.yaml | 126 ++ .../openai-gpt-4o-mini/simple_object.yaml | 69 + .../simple_object_streaming.yaml | 66 + .../openai-gpt-4o/complex_object.yaml | 69 + .../complex_object_streaming.yaml | 126 ++ .../openai-gpt-4o/simple_object.yaml | 69 + .../simple_object_streaming.yaml | 66 + .../openai-gpt-5/complex_object.yaml | 68 + .../complex_object_streaming.yaml | 126 ++ .../openai-gpt-5/simple_object.yaml | 68 + .../openai-gpt-5/simple_object_streaming.yaml | 66 + .../openai-o4-mini/complex_object.yaml | 68 + .../complex_object_streaming.yaml | 116 ++ .../openai-o4-mini/simple_object.yaml | 68 + .../simple_object_streaming.yaml | 66 + .../openai-gpt-4o-mini/complex_object.yaml | 149 +++ .../complex_object_streaming.yaml | 176 +++ .../openai-gpt-4o-mini/simple_object.yaml | 127 ++ .../simple_object_streaming.yaml | 95 ++ .../openai-gpt-4o/complex_object.yaml | 149 +++ .../complex_object_streaming.yaml | 176 +++ .../openai-gpt-4o/simple_object.yaml | 127 ++ .../simple_object_streaming.yaml | 95 ++ .../openai-gpt-5/complex_object.yaml | 154 +++ .../complex_object_streaming.yaml | 191 +++ .../openai-gpt-5/simple_object.yaml | 132 ++ .../openai-gpt-5/simple_object_streaming.yaml | 101 ++ .../openai-o4-mini/complex_object.yaml | 154 +++ .../complex_object_streaming.yaml | 176 +++ .../openai-o4-mini/simple_object.yaml | 132 ++ .../simple_object_streaming.yaml | 101 ++ schema/schema.go | 403 ++++++ schema/schema_test.go | 534 ++++++++ tool.go | 220 +--- tool_test.go | 528 -------- 95 files changed, 11437 insertions(+), 771 deletions(-) create mode 100644 examples/structured-outputs/go.mod create mode 100644 examples/structured-outputs/go.sum create mode 100644 examples/structured-outputs/main.go create mode 100644 object.go create mode 100644 object/object.go create mode 100644 providertests/object_test.go create mode 100644 providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/complex_object.yaml create mode 100644 providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/simple_object.yaml create mode 100644 providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/complex_object.yaml create mode 100644 providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/simple_object.yaml create mode 100644 providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/complex_object.yaml create mode 100644 providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/simple_object.yaml create mode 100644 providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/complex_object.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/simple_object.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/complex_object.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/simple_object.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/complex_object.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/simple_object.yaml create mode 100644 providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/simple_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/complex_object.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/complex_object_streaming.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/simple_object.yaml create mode 100644 providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/simple_object_streaming.yaml create mode 100644 schema/schema.go create mode 100644 schema/schema_test.go diff --git a/agent_test.go b/agent_test.go index dce488116c012e2be15034750cf87779a70671f7..8074b519b167b6878fea712ffdd8ab4704444caf 100644 --- a/agent_test.go +++ b/agent_test.go @@ -82,6 +82,14 @@ func (m *mockLanguageModel) Model() string { return "mock-model" } +func (m *mockLanguageModel) GenerateObject(ctx context.Context, call ObjectCall) (*ObjectResponse, error) { + return nil, fmt.Errorf("mock GenerateObject not implemented") +} + +func (m *mockLanguageModel) StreamObject(ctx context.Context, call ObjectCall) (ObjectStreamResponse, error) { + return nil, fmt.Errorf("mock StreamObject not implemented") +} + // Test result.content - comprehensive content types (matches TS test) func TestAgent_Generate_ResultContent_AllTypes(t *testing.T) { t.Parallel() diff --git a/errors.go b/errors.go index 479b0c1a45eefe84bfcf11064865eb44b80f5b5f..0f9efaf986f038b982b129a6ccc7f6bcba12d3c1 100644 --- a/errors.go +++ b/errors.go @@ -1,6 +1,7 @@ package fantasy import ( + "errors" "fmt" "net/http" "strings" @@ -74,3 +75,30 @@ func (e RetryError) Unwrap() error { func ErrorTitleForStatusCode(statusCode int) string { return strings.ToLower(http.StatusText(statusCode)) } + +// NoObjectGeneratedError is returned when object generation fails +// due to parsing errors, validation errors, or model failures. +type NoObjectGeneratedError struct { + RawText string + ParseError error + ValidationError error + Usage Usage + FinishReason FinishReason +} + +// Error implements the error interface. +func (e *NoObjectGeneratedError) Error() string { + if e.ValidationError != nil { + return fmt.Sprintf("object validation failed: %v", e.ValidationError) + } + if e.ParseError != nil { + return fmt.Sprintf("failed to parse object: %v", e.ParseError) + } + return "failed to generate object" +} + +// IsNoObjectGeneratedError checks if an error is of type NoObjectGeneratedError. +func IsNoObjectGeneratedError(err error) bool { + var target *NoObjectGeneratedError + return errors.As(err, &target) +} diff --git a/examples/structured-outputs/go.mod b/examples/structured-outputs/go.mod new file mode 100644 index 0000000000000000000000000000000000000000..13c0b7b7ab15d810dc04b50844ab9a2b2e32d05d --- /dev/null +++ b/examples/structured-outputs/go.mod @@ -0,0 +1,26 @@ +module structured-outputs + +go 1.25.2 + +replace charm.land/fantasy => ../.. + +require charm.land/fantasy v0.0.0-00010101000000-000000000000 + +require ( + github.com/RealAlexandreAI/json-repair v0.0.14 // indirect + github.com/charmbracelet/x/exp/slice v0.0.0-20250904123553-b4e2667e5ad5 // indirect + github.com/charmbracelet/x/json v0.2.0 // indirect + github.com/go-json-experiment/json v0.0.0-20250910080747-cc2cfa0554c3 // indirect + github.com/go-viper/mapstructure/v2 v2.4.0 // indirect + github.com/goccy/go-yaml v1.18.0 // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/kaptinlin/go-i18n v0.2.0 // indirect + github.com/kaptinlin/jsonschema v0.5.2 // indirect + github.com/kaptinlin/messageformat-go v0.4.5 // indirect + github.com/openai/openai-go/v2 v2.7.1 // indirect + github.com/tidwall/gjson v1.18.0 // indirect + github.com/tidwall/match v1.1.1 // indirect + github.com/tidwall/pretty v1.2.1 // indirect + github.com/tidwall/sjson v1.2.5 // indirect + golang.org/x/text v0.29.0 // indirect +) diff --git a/examples/structured-outputs/go.sum b/examples/structured-outputs/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..63c7d370e97dde1a699a81e152d48244d4fb233b --- /dev/null +++ b/examples/structured-outputs/go.sum @@ -0,0 +1,44 @@ +github.com/RealAlexandreAI/json-repair v0.0.14 h1:4kTqotVonDVTio5n2yweRUELVcNe2x518wl0bCsw0t0= +github.com/RealAlexandreAI/json-repair v0.0.14/go.mod h1:GKJi5borR78O8c7HCVbgqjhoiVibZ6hJldxbc6dGrAI= +github.com/charmbracelet/x/exp/slice v0.0.0-20250904123553-b4e2667e5ad5 h1:DTSZxdV9qQagD4iGcAt9RgaRBZtJl01bfKgdLzUzUPI= +github.com/charmbracelet/x/exp/slice v0.0.0-20250904123553-b4e2667e5ad5/go.mod h1:vI5nDVMWi6veaYH+0Fmvpbe/+cv/iJfMntdh+N0+Tms= +github.com/charmbracelet/x/json v0.2.0 h1:DqB+ZGx2h+Z+1s98HOuOyli+i97wsFQIxP2ZQANTPrQ= +github.com/charmbracelet/x/json v0.2.0/go.mod h1:opFIflx2YgXgi49xVUu8gEQ21teFAxyMwvOiZhIvWNM= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/go-json-experiment/json v0.0.0-20250910080747-cc2cfa0554c3 h1:02WINGfSX5w0Mn+F28UyRoSt9uvMhKguwWMlOAh6U/0= +github.com/go-json-experiment/json v0.0.0-20250910080747-cc2cfa0554c3/go.mod h1:uNVvRXArCGbZ508SxYYTC5v1JWoz2voff5pm25jU1Ok= +github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs= +github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= +github.com/goccy/go-yaml v1.18.0 h1:8W7wMFS12Pcas7KU+VVkaiCng+kG8QiFeFwzFb+rwuw= +github.com/goccy/go-yaml v1.18.0/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/kaptinlin/go-i18n v0.2.0 h1:8iwjAERQbCVF78c3HxC4MxUDxDRFvQVQlMDvlsO43hU= +github.com/kaptinlin/go-i18n v0.2.0/go.mod h1:gRHEMrTHtQLsAFwulPbJG71TwHjXxkagn88O8FI8FuA= +github.com/kaptinlin/jsonschema v0.5.2 h1:ipUBEv1/RnT+ErwdqXZ3Xtwkwp6uqp/Q9lFILrwhUfc= +github.com/kaptinlin/jsonschema v0.5.2/go.mod h1:HuWb90460GwFxRe0i9Ni3Z7YXwkjpqjeccWTB9gTZZE= +github.com/kaptinlin/messageformat-go v0.4.5 h1:Y1CTf38O6lKKXX/UZTwb2Xw7c6DPk7kjQEHPJW6qxTI= +github.com/kaptinlin/messageformat-go v0.4.5/go.mod h1:r0PH7FsxJX8jS/n6LAYZon5w3X+yfCLUrquqYd2H7ks= +github.com/openai/openai-go/v2 v2.7.1 h1:/tfvTJhfv7hTSL8mWwc5VL4WLLSDL5yn9VqVykdu9r8= +github.com/openai/openai-go/v2 v2.7.1/go.mod h1:jrJs23apqJKKbT+pqtFgNKpRju/KP9zpUTZhz3GElQE= +github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= +github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY= +github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= +github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= +github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY= +github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28= +golang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk= +golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/examples/structured-outputs/main.go b/examples/structured-outputs/main.go new file mode 100644 index 0000000000000000000000000000000000000000..6307ea3aa62a7818903772b16b66ce934dfa7971 --- /dev/null +++ b/examples/structured-outputs/main.go @@ -0,0 +1,99 @@ +package main + +// This example demonstrates how to get structured, type-safe outputs from an +// LLM. Here we're getting a recipe with validated fields that we can use +// directly in our code. + +import ( + "context" + "fmt" + "os" + + "charm.land/fantasy" + "charm.land/fantasy/object" + "charm.land/fantasy/providers/openai" +) + +// Here's what we want the LLM to fill out. The struct tags tell the model +// what each field is for. +type Recipe struct { + Name string `json:"name" description:"The name of the recipe"` + Ingredients []string `json:"ingredients" description:"List of ingredients needed"` + Steps []string `json:"steps" description:"Step-by-step cooking instructions"` + PrepTime int `json:"prep_time" description:"Preparation time in minutes"` +} + +func main() { + // We'll use OpenAI for this one. + apiKey := os.Getenv("OPENAI_API_KEY") + if apiKey == "" { + fmt.Println("Please set OPENAI_API_KEY environment variable") + os.Exit(1) + } + + ctx := context.Background() + + // Set up the provider. + provider, err := openai.New(openai.WithAPIKey(apiKey)) + if err != nil { + fmt.Fprintf(os.Stderr, "Whoops: %v\n", err) + os.Exit(1) + } + + // Pick the model. + model, err := provider.LanguageModel(ctx, "gpt-4o-mini") + if err != nil { + fmt.Fprintf(os.Stderr, "Dang: %v\n", err) + os.Exit(1) + } + + fmt.Println("\n🍪 Generating a recipe...") + + // Ask for a structured recipe. The model will return a Recipe struct + // that's been validated against our schema. + result, err := object.Generate[Recipe](ctx, model, fantasy.ObjectCall{ + Prompt: fantasy.Prompt{ + fantasy.NewUserMessage("Give me a recipe for chocolate chip cookies"), + }, + }) + if err != nil { + fmt.Fprintf(os.Stderr, "Oof: %v\n", err) + os.Exit(1) + } + + // Now we have a type-safe Recipe we can use directly. + fmt.Printf("Recipe: %s\n", result.Object.Name) + fmt.Printf("Prep time: %d minutes\n", result.Object.PrepTime) + fmt.Printf("Ingredients: %d\n", len(result.Object.Ingredients)) + for i, ing := range result.Object.Ingredients { + fmt.Printf(" %d. %s\n", i+1, ing) + } + fmt.Printf("Steps: %d\n", len(result.Object.Steps)) + for i, step := range result.Object.Steps { + fmt.Printf(" %d. %s\n", i+1, step) + } + fmt.Printf("\nTokens used: %d\n\n", result.Usage.TotalTokens) + + // Want to see progressive updates as the object builds? Use streaming! + fmt.Println("🌊 Now let's try streaming...") + + stream, err := object.Stream[Recipe](ctx, model, fantasy.ObjectCall{ + Prompt: fantasy.Prompt{ + fantasy.NewUserMessage("Give me a recipe for banana bread"), + }, + }) + if err != nil { + fmt.Fprintf(os.Stderr, "Oof: %v\n", err) + os.Exit(1) + } + + // Watch the recipe build in real-time! + updateCount := 0 + for partial := range stream.PartialObjectStream() { + updateCount++ + fmt.Printf(" Update %d: %s (%d ingredients, %d steps)\n", + updateCount, partial.Name, len(partial.Ingredients), len(partial.Steps)) + } + + fmt.Println() +} diff --git a/go.mod b/go.mod index 6572c45a665cadf7717d208d8f10e6714b75315f..0148b9e9e8bc6e4cb6baf85bc338675da5c36ba4 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,10 @@ module charm.land/fantasy -go 1.24.5 +go 1.25 require ( cloud.google.com/go/auth v0.17.0 + github.com/RealAlexandreAI/json-repair v0.0.14 github.com/aws/aws-sdk-go-v2 v1.39.6 github.com/aws/smithy-go v1.23.2 github.com/charmbracelet/anthropic-sdk-go v0.0.0-20251024181547-21d6f3d9a904 @@ -12,6 +13,7 @@ require ( github.com/go-viper/mapstructure/v2 v2.4.0 github.com/google/uuid v1.6.0 github.com/joho/godotenv v1.5.1 + github.com/kaptinlin/jsonschema v0.5.2 github.com/openai/openai-go/v2 v2.7.1 github.com/stretchr/testify v1.11.1 go.yaml.in/yaml/v4 v4.0.0-rc.3 @@ -40,13 +42,17 @@ require ( github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/go-json-experiment/json v0.0.0-20250910080747-cc2cfa0554c3 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect + github.com/goccy/go-yaml v1.18.0 // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/google/s2a-go v0.1.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect github.com/googleapis/gax-go/v2 v2.15.0 // indirect github.com/gorilla/websocket v1.5.3 // indirect + github.com/kaptinlin/go-i18n v0.2.0 // indirect + github.com/kaptinlin/messageformat-go v0.4.5 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/tidwall/gjson v1.18.0 // indirect github.com/tidwall/match v1.1.1 // indirect @@ -60,9 +66,9 @@ require ( go.opentelemetry.io/otel/trace v1.36.0 // indirect golang.org/x/crypto v0.41.0 // indirect golang.org/x/net v0.43.0 // indirect - golang.org/x/sync v0.16.0 // indirect + golang.org/x/sync v0.17.0 // indirect golang.org/x/sys v0.35.0 // indirect - golang.org/x/text v0.28.0 // indirect + golang.org/x/text v0.29.0 // indirect golang.org/x/time v0.12.0 // indirect google.golang.org/api v0.239.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect diff --git a/go.sum b/go.sum index c0b15d20f8056fc797ce543b376cbfb76b484c62..566d18a5d83c2b118cb73b4dccb5fe699ab5011b 100644 --- a/go.sum +++ b/go.sum @@ -14,6 +14,8 @@ github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xP github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= +github.com/RealAlexandreAI/json-repair v0.0.14 h1:4kTqotVonDVTio5n2yweRUELVcNe2x518wl0bCsw0t0= +github.com/RealAlexandreAI/json-repair v0.0.14/go.mod h1:GKJi5borR78O8c7HCVbgqjhoiVibZ6hJldxbc6dGrAI= github.com/aws/aws-sdk-go-v2 v1.39.6 h1:2JrPCVgWJm7bm83BDwY5z8ietmeJUbh3O2ACnn+Xsqk= github.com/aws/aws-sdk-go-v2 v1.39.6/go.mod h1:c9pm7VwuW0UPxAEYGyTmyurVcNrbF6Rt/wixFqDhcjE= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.3 h1:tW1/Rkad38LA15X4UQtjXZXNKsCgkshC3EbmcUmghTg= @@ -52,6 +54,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/go-json-experiment/json v0.0.0-20250910080747-cc2cfa0554c3 h1:02WINGfSX5w0Mn+F28UyRoSt9uvMhKguwWMlOAh6U/0= +github.com/go-json-experiment/json v0.0.0-20250910080747-cc2cfa0554c3/go.mod h1:uNVvRXArCGbZ508SxYYTC5v1JWoz2voff5pm25jU1Ok= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -59,6 +63,8 @@ github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs= github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= +github.com/goccy/go-yaml v1.18.0 h1:8W7wMFS12Pcas7KU+VVkaiCng+kG8QiFeFwzFb+rwuw= +github.com/goccy/go-yaml v1.18.0/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= @@ -77,6 +83,12 @@ github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aN github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= +github.com/kaptinlin/go-i18n v0.2.0 h1:8iwjAERQbCVF78c3HxC4MxUDxDRFvQVQlMDvlsO43hU= +github.com/kaptinlin/go-i18n v0.2.0/go.mod h1:gRHEMrTHtQLsAFwulPbJG71TwHjXxkagn88O8FI8FuA= +github.com/kaptinlin/jsonschema v0.5.2 h1:ipUBEv1/RnT+ErwdqXZ3Xtwkwp6uqp/Q9lFILrwhUfc= +github.com/kaptinlin/jsonschema v0.5.2/go.mod h1:HuWb90460GwFxRe0i9Ni3Z7YXwkjpqjeccWTB9gTZZE= +github.com/kaptinlin/messageformat-go v0.4.5 h1:Y1CTf38O6lKKXX/UZTwb2Xw7c6DPk7kjQEHPJW6qxTI= +github.com/kaptinlin/messageformat-go v0.4.5/go.mod h1:r0PH7FsxJX8jS/n6LAYZon5w3X+yfCLUrquqYd2H7ks= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -85,6 +97,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/openai/openai-go/v2 v2.7.1 h1:/tfvTJhfv7hTSL8mWwc5VL4WLLSDL5yn9VqVykdu9r8= github.com/openai/openai-go/v2 v2.7.1/go.mod h1:jrJs23apqJKKbT+pqtFgNKpRju/KP9zpUTZhz3GElQE= +github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= +github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -127,12 +141,12 @@ golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= golang.org/x/oauth2 v0.33.0 h1:4Q+qn+E5z8gPRJfmRy7C2gGG3T4jIprK6aSYgTXGRpo= golang.org/x/oauth2 v0.33.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= -golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= -golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug= +golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng= -golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU= +golang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk= +golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4= golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE= golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= google.golang.org/api v0.239.0 h1:2hZKUnFZEy81eugPs4e2XzIJ5SOwQg0G82bpXD65Puo= diff --git a/model.go b/model.go index 72721e09966a6089027d805783d8c3efedd2793c..c45b12ce3f3139a912d42e16904f75199704d92c 100644 --- a/model.go +++ b/model.go @@ -219,7 +219,6 @@ type Call struct { ProviderOptions ProviderOptions `json:"provider_options"` } -// CallWarningType represents the type of call warning. // CallWarningType represents the type of call warning. type CallWarningType string @@ -248,6 +247,9 @@ type LanguageModel interface { Generate(context.Context, Call) (*Response, error) Stream(context.Context, Call) (StreamResponse, error) + GenerateObject(context.Context, ObjectCall) (*ObjectResponse, error) + StreamObject(context.Context, ObjectCall) (ObjectStreamResponse, error) + Provider() string Model() string } diff --git a/object.go b/object.go new file mode 100644 index 0000000000000000000000000000000000000000..4b8aed3692eda0c08c95d9726843665ed04dea5b --- /dev/null +++ b/object.go @@ -0,0 +1,233 @@ +package fantasy + +import ( + "context" + "encoding/json" + "fmt" + "iter" + "reflect" + + "charm.land/fantasy/schema" +) + +// ObjectMode specifies how structured output should be generated. +type ObjectMode string + +const ( + // ObjectModeAuto lets the provider choose the best approach. + ObjectModeAuto ObjectMode = "auto" + + // ObjectModeJSON forces the use of native JSON mode (if supported). + ObjectModeJSON ObjectMode = "json" + + // ObjectModeTool forces the use of tool-based approach. + ObjectModeTool ObjectMode = "tool" + + // ObjectModeText uses text generation with schema in prompt (fallback for models without tool/JSON support). + ObjectModeText ObjectMode = "text" +) + +// ObjectCall represents a request to generate a structured object. +type ObjectCall struct { + Prompt Prompt + Schema Schema + SchemaName string + SchemaDescription string + + MaxOutputTokens *int64 + Temperature *float64 + TopP *float64 + TopK *int64 + PresencePenalty *float64 + FrequencyPenalty *float64 + + ProviderOptions ProviderOptions + + RepairText schema.ObjectRepairFunc +} + +// ObjectResponse represents the response from a structured object generation. +type ObjectResponse struct { + Object any + RawText string + Usage Usage + FinishReason FinishReason + Warnings []CallWarning + ProviderMetadata ProviderMetadata +} + +// ObjectStreamPartType indicates the type of stream part. +type ObjectStreamPartType string + +const ( + // ObjectStreamPartTypeObject is emitted when a new partial object is available. + ObjectStreamPartTypeObject ObjectStreamPartType = "object" + + // ObjectStreamPartTypeTextDelta is emitted for text deltas (if model generates text). + ObjectStreamPartTypeTextDelta ObjectStreamPartType = "text-delta" + + // ObjectStreamPartTypeError is emitted when an error occurs. + ObjectStreamPartTypeError ObjectStreamPartType = "error" + + // ObjectStreamPartTypeFinish is emitted when streaming completes. + ObjectStreamPartTypeFinish ObjectStreamPartType = "finish" +) + +// ObjectStreamPart represents a single chunk in the object stream. +type ObjectStreamPart struct { + Type ObjectStreamPartType + Object any + Delta string + Error error + Usage Usage + FinishReason FinishReason + Warnings []CallWarning + ProviderMetadata ProviderMetadata +} + +// ObjectStreamResponse is an iterator over ObjectStreamPart. +type ObjectStreamResponse = iter.Seq[ObjectStreamPart] + +// ObjectResult is a typed result wrapper returned by GenerateObject[T]. +type ObjectResult[T any] struct { + Object T + RawText string + Usage Usage + FinishReason FinishReason + Warnings []CallWarning + ProviderMetadata ProviderMetadata +} + +// StreamObjectResult provides typed access to a streaming object generation result. +type StreamObjectResult[T any] struct { + stream ObjectStreamResponse + ctx context.Context +} + +// NewStreamObjectResult creates a typed stream result from an untyped stream. +func NewStreamObjectResult[T any](ctx context.Context, stream ObjectStreamResponse) *StreamObjectResult[T] { + return &StreamObjectResult[T]{ + stream: stream, + ctx: ctx, + } +} + +// PartialObjectStream returns an iterator that yields progressively more complete objects. +// Only emits when the object actually changes (deduplication). +func (s *StreamObjectResult[T]) PartialObjectStream() iter.Seq[T] { + return func(yield func(T) bool) { + var lastObject T + var hasEmitted bool + + for part := range s.stream { + if part.Type == ObjectStreamPartTypeObject && part.Object != nil { + var current T + if err := unmarshalObject(part.Object, ¤t); err != nil { + continue + } + + if !hasEmitted || !reflect.DeepEqual(current, lastObject) { + if !yield(current) { + return + } + lastObject = current + hasEmitted = true + } + } + } + } +} + +// TextStream returns an iterator that yields text deltas. +// Useful if the model generates explanatory text alongside the object. +func (s *StreamObjectResult[T]) TextStream() iter.Seq[string] { + return func(yield func(string) bool) { + for part := range s.stream { + if part.Type == ObjectStreamPartTypeTextDelta && part.Delta != "" { + if !yield(part.Delta) { + return + } + } + } + } +} + +// FullStream returns an iterator that yields all stream parts including errors and metadata. +func (s *StreamObjectResult[T]) FullStream() iter.Seq[ObjectStreamPart] { + return s.stream +} + +// Object waits for the stream to complete and returns the final object. +// Returns an error if streaming fails or no valid object was generated. +func (s *StreamObjectResult[T]) Object() (*ObjectResult[T], error) { + var finalObject T + var usage Usage + var finishReason FinishReason + var warnings []CallWarning + var providerMetadata ProviderMetadata + var rawText string + var lastError error + hasObject := false + + for part := range s.stream { + switch part.Type { + case ObjectStreamPartTypeObject: + if part.Object != nil { + if err := unmarshalObject(part.Object, &finalObject); err == nil { + hasObject = true + if jsonBytes, err := json.Marshal(part.Object); err == nil { + rawText = string(jsonBytes) + } + } + } + + case ObjectStreamPartTypeError: + lastError = part.Error + + case ObjectStreamPartTypeFinish: + usage = part.Usage + finishReason = part.FinishReason + if len(part.Warnings) > 0 { + warnings = part.Warnings + } + if len(part.ProviderMetadata) > 0 { + providerMetadata = part.ProviderMetadata + } + } + } + + if lastError != nil { + return nil, lastError + } + + if !hasObject { + return nil, &NoObjectGeneratedError{ + RawText: rawText, + ParseError: fmt.Errorf("no valid object generated in stream"), + Usage: usage, + FinishReason: finishReason, + } + } + + return &ObjectResult[T]{ + Object: finalObject, + RawText: rawText, + Usage: usage, + FinishReason: finishReason, + Warnings: warnings, + ProviderMetadata: providerMetadata, + }, nil +} + +func unmarshalObject(obj any, target any) error { + jsonBytes, err := json.Marshal(obj) + if err != nil { + return fmt.Errorf("failed to marshal object: %w", err) + } + + if err := json.Unmarshal(jsonBytes, target); err != nil { + return fmt.Errorf("failed to unmarshal into target type: %w", err) + } + + return nil +} diff --git a/object/object.go b/object/object.go new file mode 100644 index 0000000000000000000000000000000000000000..c62b1cbec4735a031c652f26a811bc6053dc7ff1 --- /dev/null +++ b/object/object.go @@ -0,0 +1,616 @@ +// Package object provides utilities for generating structured objects with automatic schema generation. +// It simplifies working with typed structured outputs by handling schema reflection and unmarshaling. +package object + +import ( + "context" + "encoding/json" + "fmt" + "reflect" + + "charm.land/fantasy" + "charm.land/fantasy/schema" +) + +// Generate generates a structured object that matches the given type T. +// The schema is automatically generated from T using reflection. +// +// Example: +// +// type Recipe struct { +// Name string `json:"name"` +// Ingredients []string `json:"ingredients"` +// } +// +// result, err := object.Generate[Recipe](ctx, model, fantasy.ObjectCall{ +// Prompt: fantasy.Prompt{fantasy.NewUserMessage("Generate a lasagna recipe")}, +// }) +func Generate[T any]( + ctx context.Context, + model fantasy.LanguageModel, + opts fantasy.ObjectCall, +) (*fantasy.ObjectResult[T], error) { + var zero T + s := schema.Generate(reflect.TypeOf(zero)) + opts.Schema = s + + resp, err := model.GenerateObject(ctx, opts) + if err != nil { + return nil, err + } + + var result T + if err := unmarshal(resp.Object, &result); err != nil { + return nil, fmt.Errorf("failed to unmarshal to %T: %w", result, err) + } + + return &fantasy.ObjectResult[T]{ + Object: result, + RawText: resp.RawText, + Usage: resp.Usage, + FinishReason: resp.FinishReason, + Warnings: resp.Warnings, + ProviderMetadata: resp.ProviderMetadata, + }, nil +} + +// Stream streams a structured object that matches the given type T. +// Returns a StreamObjectResult[T] with progressive updates and deduplication. +// +// Example: +// +// stream, err := object.Stream[Recipe](ctx, model, fantasy.ObjectCall{ +// Prompt: fantasy.Prompt{fantasy.NewUserMessage("Generate a lasagna recipe")}, +// }) +// +// for partial := range stream.PartialObjectStream() { +// fmt.Printf("Progress: %s\n", partial.Name) +// } +// +// result, err := stream.Object() // Wait for final result +func Stream[T any]( + ctx context.Context, + model fantasy.LanguageModel, + opts fantasy.ObjectCall, +) (*fantasy.StreamObjectResult[T], error) { + var zero T + s := schema.Generate(reflect.TypeOf(zero)) + opts.Schema = s + + stream, err := model.StreamObject(ctx, opts) + if err != nil { + return nil, err + } + + return fantasy.NewStreamObjectResult[T](ctx, stream), nil +} + +// GenerateWithTool is a helper for providers without native JSON mode. +// It converts the schema to a tool definition, forces the model to call it, +// and extracts the tool's input as the structured output. +func GenerateWithTool( + ctx context.Context, + model fantasy.LanguageModel, + call fantasy.ObjectCall, +) (*fantasy.ObjectResponse, error) { + toolName := call.SchemaName + if toolName == "" { + toolName = "generate_object" + } + + toolDescription := call.SchemaDescription + if toolDescription == "" { + toolDescription = "Generate a structured object matching the schema" + } + + tool := fantasy.FunctionTool{ + Name: toolName, + Description: toolDescription, + InputSchema: schema.ToMap(call.Schema), + } + + toolChoice := fantasy.SpecificToolChoice(tool.Name) + resp, err := model.Generate(ctx, fantasy.Call{ + Prompt: call.Prompt, + Tools: []fantasy.Tool{tool}, + ToolChoice: &toolChoice, + MaxOutputTokens: call.MaxOutputTokens, + Temperature: call.Temperature, + TopP: call.TopP, + TopK: call.TopK, + PresencePenalty: call.PresencePenalty, + FrequencyPenalty: call.FrequencyPenalty, + ProviderOptions: call.ProviderOptions, + }) + if err != nil { + return nil, fmt.Errorf("tool-based generation failed: %w", err) + } + + toolCalls := resp.Content.ToolCalls() + if len(toolCalls) == 0 { + return nil, &fantasy.NoObjectGeneratedError{ + RawText: resp.Content.Text(), + ParseError: fmt.Errorf("no tool call generated"), + Usage: resp.Usage, + FinishReason: resp.FinishReason, + } + } + + toolCall := toolCalls[0] + + var obj any + if call.RepairText != nil { + obj, err = schema.ParseAndValidateWithRepair(ctx, toolCall.Input, call.Schema, call.RepairText) + } else { + obj, err = schema.ParseAndValidate(toolCall.Input, call.Schema) + } + + if err != nil { + if nogErr, ok := err.(*fantasy.NoObjectGeneratedError); ok { + nogErr.Usage = resp.Usage + nogErr.FinishReason = resp.FinishReason + } + return nil, err + } + + return &fantasy.ObjectResponse{ + Object: obj, + RawText: toolCall.Input, + Usage: resp.Usage, + FinishReason: resp.FinishReason, + Warnings: resp.Warnings, + ProviderMetadata: resp.ProviderMetadata, + }, nil +} + +// GenerateWithText is a helper for providers without tool or JSON mode support. +// It adds the schema to the system prompt and parses the text response as JSON. +// This is a fallback for older models or simple providers. +func GenerateWithText( + ctx context.Context, + model fantasy.LanguageModel, + call fantasy.ObjectCall, +) (*fantasy.ObjectResponse, error) { + jsonSchemaBytes, err := json.Marshal(call.Schema) + if err != nil { + return nil, fmt.Errorf("failed to marshal schema: %w", err) + } + + schemaInstruction := fmt.Sprintf( + "You must respond with valid JSON that matches this schema: %s\n"+ + "Respond ONLY with the JSON object, no additional text or explanation.", + string(jsonSchemaBytes), + ) + + enhancedPrompt := make(fantasy.Prompt, 0, len(call.Prompt)+1) + + hasSystem := false + for _, msg := range call.Prompt { + if msg.Role == fantasy.MessageRoleSystem { + hasSystem = true + existingText := "" + if len(msg.Content) > 0 { + if textPart, ok := msg.Content[0].(fantasy.TextPart); ok { + existingText = textPart.Text + } + } + enhancedPrompt = append(enhancedPrompt, fantasy.NewSystemMessage(existingText+"\n\n"+schemaInstruction)) + } else { + enhancedPrompt = append(enhancedPrompt, msg) + } + } + + if !hasSystem { + enhancedPrompt = append(fantasy.Prompt{fantasy.NewSystemMessage(schemaInstruction)}, call.Prompt...) + } + + resp, err := model.Generate(ctx, fantasy.Call{ + Prompt: enhancedPrompt, + MaxOutputTokens: call.MaxOutputTokens, + Temperature: call.Temperature, + TopP: call.TopP, + TopK: call.TopK, + PresencePenalty: call.PresencePenalty, + FrequencyPenalty: call.FrequencyPenalty, + ProviderOptions: call.ProviderOptions, + }) + if err != nil { + return nil, fmt.Errorf("text-based generation failed: %w", err) + } + + textContent := resp.Content.Text() + if textContent == "" { + return nil, &fantasy.NoObjectGeneratedError{ + RawText: "", + ParseError: fmt.Errorf("no text content in response"), + Usage: resp.Usage, + FinishReason: resp.FinishReason, + } + } + + var obj any + if call.RepairText != nil { + obj, err = schema.ParseAndValidateWithRepair(ctx, textContent, call.Schema, call.RepairText) + } else { + obj, err = schema.ParseAndValidate(textContent, call.Schema) + } + + if err != nil { + if nogErr, ok := err.(*schema.ParseError); ok { + return nil, &fantasy.NoObjectGeneratedError{ + RawText: nogErr.RawText, + ParseError: nogErr.ParseError, + ValidationError: nogErr.ValidationError, + Usage: resp.Usage, + FinishReason: resp.FinishReason, + } + } + return nil, err + } + + return &fantasy.ObjectResponse{ + Object: obj, + RawText: textContent, + Usage: resp.Usage, + FinishReason: resp.FinishReason, + Warnings: resp.Warnings, + ProviderMetadata: resp.ProviderMetadata, + }, nil +} + +// StreamWithTool is a helper for providers without native JSON streaming. +// It uses streaming tool calls to extract and parse the structured output progressively. +func StreamWithTool( + ctx context.Context, + model fantasy.LanguageModel, + call fantasy.ObjectCall, +) (fantasy.ObjectStreamResponse, error) { + // Create a tool from the schema + toolName := call.SchemaName + if toolName == "" { + toolName = "generate_object" + } + + toolDescription := call.SchemaDescription + if toolDescription == "" { + toolDescription = "Generate a structured object matching the schema" + } + + tool := fantasy.FunctionTool{ + Name: toolName, + Description: toolDescription, + InputSchema: schema.ToMap(call.Schema), + } + + // Make a streaming Generate call with forced tool choice + toolChoice := fantasy.SpecificToolChoice(tool.Name) + stream, err := model.Stream(ctx, fantasy.Call{ + Prompt: call.Prompt, + Tools: []fantasy.Tool{tool}, + ToolChoice: &toolChoice, + MaxOutputTokens: call.MaxOutputTokens, + Temperature: call.Temperature, + TopP: call.TopP, + TopK: call.TopK, + PresencePenalty: call.PresencePenalty, + FrequencyPenalty: call.FrequencyPenalty, + ProviderOptions: call.ProviderOptions, + }) + if err != nil { + return nil, fmt.Errorf("tool-based streaming failed: %w", err) + } + + // Convert the text stream to object stream parts + return func(yield func(fantasy.ObjectStreamPart) bool) { + var accumulated string + var lastParsedObject any + var usage fantasy.Usage + var finishReason fantasy.FinishReason + var warnings []fantasy.CallWarning + var providerMetadata fantasy.ProviderMetadata + var streamErr error + + for part := range stream { + switch part.Type { + case fantasy.StreamPartTypeTextDelta: + accumulated += part.Delta + + obj, state, parseErr := schema.ParsePartialJSON(accumulated) + + if state == schema.ParseStateSuccessful || state == schema.ParseStateRepaired { + if err := schema.ValidateAgainstSchema(obj, call.Schema); err == nil { + if !reflect.DeepEqual(obj, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj, + }) { + return + } + lastParsedObject = obj + } + } + } + + if state == schema.ParseStateFailed && call.RepairText != nil { + repairedText, repairErr := call.RepairText(ctx, accumulated, parseErr) + if repairErr == nil { + obj2, state2, _ := schema.ParsePartialJSON(repairedText) + if (state2 == schema.ParseStateSuccessful || state2 == schema.ParseStateRepaired) && + schema.ValidateAgainstSchema(obj2, call.Schema) == nil { + if !reflect.DeepEqual(obj2, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj2, + }) { + return + } + lastParsedObject = obj2 + } + } + } + } + + case fantasy.StreamPartTypeToolInputDelta: + accumulated += part.Delta + + obj, state, parseErr := schema.ParsePartialJSON(accumulated) + if state == schema.ParseStateSuccessful || state == schema.ParseStateRepaired { + if err := schema.ValidateAgainstSchema(obj, call.Schema); err == nil { + if !reflect.DeepEqual(obj, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj, + }) { + return + } + lastParsedObject = obj + } + } + } + + if state == schema.ParseStateFailed && call.RepairText != nil { + repairedText, repairErr := call.RepairText(ctx, accumulated, parseErr) + if repairErr == nil { + obj2, state2, _ := schema.ParsePartialJSON(repairedText) + if (state2 == schema.ParseStateSuccessful || state2 == schema.ParseStateRepaired) && + schema.ValidateAgainstSchema(obj2, call.Schema) == nil { + if !reflect.DeepEqual(obj2, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj2, + }) { + return + } + lastParsedObject = obj2 + } + } + } + } + + case fantasy.StreamPartTypeToolCall: + toolInput := part.ToolCallInput + + var obj any + var err error + if call.RepairText != nil { + obj, err = schema.ParseAndValidateWithRepair(ctx, toolInput, call.Schema, call.RepairText) + } else { + obj, err = schema.ParseAndValidate(toolInput, call.Schema) + } + + if err == nil { + if !reflect.DeepEqual(obj, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj, + }) { + return + } + lastParsedObject = obj + } + } + + case fantasy.StreamPartTypeError: + streamErr = part.Error + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: part.Error, + }) { + return + } + + case fantasy.StreamPartTypeFinish: + usage = part.Usage + finishReason = part.FinishReason + + case fantasy.StreamPartTypeWarnings: + warnings = part.Warnings + } + + if len(part.ProviderMetadata) > 0 { + providerMetadata = part.ProviderMetadata + } + } + + if streamErr == nil && lastParsedObject != nil { + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeFinish, + Usage: usage, + FinishReason: finishReason, + Warnings: warnings, + ProviderMetadata: providerMetadata, + }) + } else if streamErr == nil && lastParsedObject == nil { + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: &fantasy.NoObjectGeneratedError{ + RawText: accumulated, + ParseError: fmt.Errorf("no valid object generated in stream"), + Usage: usage, + FinishReason: finishReason, + }, + }) + } + }, nil +} + +// StreamWithText is a helper for providers without tool or JSON streaming support. +// It adds the schema to the system prompt and parses the streamed text as JSON progressively. +func StreamWithText( + ctx context.Context, + model fantasy.LanguageModel, + call fantasy.ObjectCall, +) (fantasy.ObjectStreamResponse, error) { + jsonSchemaMap := schema.ToMap(call.Schema) + jsonSchemaBytes, err := json.Marshal(jsonSchemaMap) + if err != nil { + return nil, fmt.Errorf("failed to marshal schema: %w", err) + } + + schemaInstruction := fmt.Sprintf( + "You must respond with valid JSON that matches this schema: %s\n"+ + "Respond ONLY with the JSON object, no additional text or explanation.", + string(jsonSchemaBytes), + ) + + enhancedPrompt := make(fantasy.Prompt, 0, len(call.Prompt)+1) + + hasSystem := false + for _, msg := range call.Prompt { + if msg.Role == fantasy.MessageRoleSystem { + hasSystem = true + existingText := "" + if len(msg.Content) > 0 { + if textPart, ok := msg.Content[0].(fantasy.TextPart); ok { + existingText = textPart.Text + } + } + enhancedPrompt = append(enhancedPrompt, fantasy.NewSystemMessage(existingText+"\n\n"+schemaInstruction)) + } else { + enhancedPrompt = append(enhancedPrompt, msg) + } + } + + if !hasSystem { + enhancedPrompt = append(fantasy.Prompt{fantasy.NewSystemMessage(schemaInstruction)}, call.Prompt...) + } + + stream, err := model.Stream(ctx, fantasy.Call{ + Prompt: enhancedPrompt, + MaxOutputTokens: call.MaxOutputTokens, + Temperature: call.Temperature, + TopP: call.TopP, + TopK: call.TopK, + PresencePenalty: call.PresencePenalty, + FrequencyPenalty: call.FrequencyPenalty, + ProviderOptions: call.ProviderOptions, + }) + if err != nil { + return nil, fmt.Errorf("text-based streaming failed: %w", err) + } + + return func(yield func(fantasy.ObjectStreamPart) bool) { + var accumulated string + var lastParsedObject any + var usage fantasy.Usage + var finishReason fantasy.FinishReason + var warnings []fantasy.CallWarning + var providerMetadata fantasy.ProviderMetadata + var streamErr error + + for part := range stream { + switch part.Type { + case fantasy.StreamPartTypeTextDelta: + accumulated += part.Delta + + obj, state, parseErr := schema.ParsePartialJSON(accumulated) + + if state == schema.ParseStateSuccessful || state == schema.ParseStateRepaired { + if err := schema.ValidateAgainstSchema(obj, call.Schema); err == nil { + if !reflect.DeepEqual(obj, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj, + }) { + return + } + lastParsedObject = obj + } + } + } + + if state == schema.ParseStateFailed && call.RepairText != nil { + repairedText, repairErr := call.RepairText(ctx, accumulated, parseErr) + if repairErr == nil { + obj2, state2, _ := schema.ParsePartialJSON(repairedText) + if (state2 == schema.ParseStateSuccessful || state2 == schema.ParseStateRepaired) && + schema.ValidateAgainstSchema(obj2, call.Schema) == nil { + if !reflect.DeepEqual(obj2, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj2, + }) { + return + } + lastParsedObject = obj2 + } + } + } + } + + case fantasy.StreamPartTypeError: + streamErr = part.Error + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: part.Error, + }) { + return + } + + case fantasy.StreamPartTypeFinish: + usage = part.Usage + finishReason = part.FinishReason + + case fantasy.StreamPartTypeWarnings: + warnings = part.Warnings + } + + if len(part.ProviderMetadata) > 0 { + providerMetadata = part.ProviderMetadata + } + } + + if streamErr == nil && lastParsedObject != nil { + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeFinish, + Usage: usage, + FinishReason: finishReason, + Warnings: warnings, + ProviderMetadata: providerMetadata, + }) + } else if streamErr == nil && lastParsedObject == nil { + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: &fantasy.NoObjectGeneratedError{ + RawText: accumulated, + ParseError: fmt.Errorf("no valid object generated in stream"), + Usage: usage, + FinishReason: finishReason, + }, + }) + } + }, nil +} + +func unmarshal(obj any, target any) error { + jsonBytes, err := json.Marshal(obj) + if err != nil { + return fmt.Errorf("failed to marshal object: %w", err) + } + + if err := json.Unmarshal(jsonBytes, target); err != nil { + return fmt.Errorf("failed to unmarshal into target type: %w", err) + } + + return nil +} diff --git a/providers/anthropic/anthropic.go b/providers/anthropic/anthropic.go index 86c0e03c96e7a10cac7145620c9e6461c6a035f2..eb1500060a9e53db4e8a41b7a21493a1ddacb07e 100644 --- a/providers/anthropic/anthropic.go +++ b/providers/anthropic/anthropic.go @@ -13,6 +13,7 @@ import ( "strings" "charm.land/fantasy" + "charm.land/fantasy/object" "github.com/charmbracelet/anthropic-sdk-go" "github.com/charmbracelet/anthropic-sdk-go/bedrock" "github.com/charmbracelet/anthropic-sdk-go/option" @@ -40,6 +41,8 @@ type options struct { skipAuth bool useBedrock bool + + objectMode fantasy.ObjectMode } type provider struct { @@ -52,7 +55,8 @@ type Option = func(*options) // New creates a new Anthropic provider with the given options. func New(opts ...Option) (fantasy.Provider, error) { providerOptions := options{ - headers: map[string]string{}, + headers: map[string]string{}, + objectMode: fantasy.ObjectModeAuto, } for _, o := range opts { o(&providerOptions) @@ -120,6 +124,17 @@ func WithHTTPClient(client option.HTTPClient) Option { } } +// WithObjectMode sets the object generation mode. +func WithObjectMode(om fantasy.ObjectMode) Option { + return func(o *options) { + // not supported + if om == fantasy.ObjectModeJSON { + om = fantasy.ObjectModeAuto + } + o.objectMode = om + } +} + func (a *provider) LanguageModel(ctx context.Context, modelID string) (fantasy.LanguageModel, error) { clientOptions := make([]option.RequestOption, 0, 5+len(a.options.headers)) clientOptions = append(clientOptions, option.WithMaxRetries(0)) @@ -952,3 +967,23 @@ func (a languageModel) Stream(ctx context.Context, call fantasy.Call) (fantasy.S } }, nil } + +// GenerateObject implements fantasy.LanguageModel. +func (a languageModel) GenerateObject(ctx context.Context, call fantasy.ObjectCall) (*fantasy.ObjectResponse, error) { + switch a.options.objectMode { + case fantasy.ObjectModeText: + return object.GenerateWithText(ctx, a, call) + default: + return object.GenerateWithTool(ctx, a, call) + } +} + +// StreamObject implements fantasy.LanguageModel. +func (a languageModel) StreamObject(ctx context.Context, call fantasy.ObjectCall) (fantasy.ObjectStreamResponse, error) { + switch a.options.objectMode { + case fantasy.ObjectModeText: + return object.StreamWithText(ctx, a, call) + default: + return object.StreamWithTool(ctx, a, call) + } +} diff --git a/providers/google/google.go b/providers/google/google.go index c64cc379cb60467236cdad53923b1f3dfcc0fc0b..964649b9b5f183d269aaab287dc267b87b39375c 100644 --- a/providers/google/google.go +++ b/providers/google/google.go @@ -8,10 +8,13 @@ import ( "fmt" "maps" "net/http" + "reflect" "strings" "charm.land/fantasy" + "charm.land/fantasy/object" "charm.land/fantasy/providers/anthropic" + "charm.land/fantasy/schema" "cloud.google.com/go/auth" "github.com/charmbracelet/x/exp/slice" "github.com/google/uuid" @@ -39,6 +42,7 @@ type options struct { location string skipAuth bool toolCallIDFunc ToolCallIDFunc + objectMode fantasy.ObjectMode } // Option defines a function that configures Google provider options. @@ -128,6 +132,13 @@ func WithToolCallIDFunc(f ToolCallIDFunc) Option { } } +// WithObjectMode sets the object generation mode for the Google provider. +func WithObjectMode(om fantasy.ObjectMode) Option { + return func(o *options) { + o.objectMode = om + } +} + func (*provider) Name() string { return Name } @@ -137,6 +148,7 @@ type languageModel struct { modelID string client *genai.Client providerOptions options + objectMode fantasy.ObjectMode } // LanguageModel implements fantasy.Provider. @@ -182,11 +194,18 @@ func (a *provider) LanguageModel(ctx context.Context, modelID string) (fantasy.L if err != nil { return nil, err } + + objectMode := a.options.objectMode + if objectMode == "" { + objectMode = fantasy.ObjectModeAuto + } + return &languageModel{ modelID: modelID, provider: a.options.name, providerOptions: a.options, client: client, + objectMode: objectMode, }, nil } @@ -739,7 +758,8 @@ func (g *languageModel) Stream(ctx context.Context, call fantasy.Call) (fantasy. } } - if resp.UsageMetadata != nil { + // we need to make sure that there is actual tokendata + if resp.UsageMetadata != nil && resp.UsageMetadata.TotalTokenCount != 0 { currentUsage := mapUsage(resp.UsageMetadata) // if first usage chunk if usage == nil { @@ -789,6 +809,268 @@ func (g *languageModel) Stream(ctx context.Context, call fantasy.Call) (fantasy. }, nil } +// GenerateObject implements fantasy.LanguageModel. +func (g *languageModel) GenerateObject(ctx context.Context, call fantasy.ObjectCall) (*fantasy.ObjectResponse, error) { + switch g.objectMode { + case fantasy.ObjectModeText: + return object.GenerateWithText(ctx, g, call) + case fantasy.ObjectModeTool: + return object.GenerateWithTool(ctx, g, call) + default: + return g.generateObjectWithJSONMode(ctx, call) + } +} + +// StreamObject implements fantasy.LanguageModel. +func (g *languageModel) StreamObject(ctx context.Context, call fantasy.ObjectCall) (fantasy.ObjectStreamResponse, error) { + switch g.objectMode { + case fantasy.ObjectModeTool: + return object.StreamWithTool(ctx, g, call) + case fantasy.ObjectModeText: + return object.StreamWithText(ctx, g, call) + default: + return g.streamObjectWithJSONMode(ctx, call) + } +} + +func (g *languageModel) generateObjectWithJSONMode(ctx context.Context, call fantasy.ObjectCall) (*fantasy.ObjectResponse, error) { + // Convert our Schema to Google's JSON Schema format + jsonSchemaMap := schema.ToMap(call.Schema) + + // Build request using prepareParams + fantasyCall := fantasy.Call{ + Prompt: call.Prompt, + MaxOutputTokens: call.MaxOutputTokens, + Temperature: call.Temperature, + TopP: call.TopP, + TopK: call.TopK, + PresencePenalty: call.PresencePenalty, + FrequencyPenalty: call.FrequencyPenalty, + ProviderOptions: call.ProviderOptions, + } + + config, contents, warnings, err := g.prepareParams(fantasyCall) + if err != nil { + return nil, err + } + + // Set ResponseMIMEType and ResponseJsonSchema for structured output + config.ResponseMIMEType = "application/json" + config.ResponseJsonSchema = jsonSchemaMap + + lastMessage, history, ok := slice.Pop(contents) + if !ok { + return nil, errors.New("no messages to send") + } + + chat, err := g.client.Chats.Create(ctx, g.modelID, config, history) + if err != nil { + return nil, err + } + + response, err := chat.SendMessage(ctx, depointerSlice(lastMessage.Parts)...) + if err != nil { + return nil, toProviderErr(err) + } + + mappedResponse, err := g.mapResponse(response, warnings) + if err != nil { + return nil, err + } + + jsonText := mappedResponse.Content.Text() + if jsonText == "" { + return nil, &fantasy.NoObjectGeneratedError{ + RawText: "", + ParseError: fmt.Errorf("no text content in response"), + Usage: mappedResponse.Usage, + FinishReason: mappedResponse.FinishReason, + } + } + + // Parse and validate + var obj any + if call.RepairText != nil { + obj, err = schema.ParseAndValidateWithRepair(ctx, jsonText, call.Schema, call.RepairText) + } else { + obj, err = schema.ParseAndValidate(jsonText, call.Schema) + } + + if err != nil { + // Add usage info to error + if nogErr, ok := err.(*fantasy.NoObjectGeneratedError); ok { + nogErr.Usage = mappedResponse.Usage + nogErr.FinishReason = mappedResponse.FinishReason + } + return nil, err + } + + return &fantasy.ObjectResponse{ + Object: obj, + RawText: jsonText, + Usage: mappedResponse.Usage, + FinishReason: mappedResponse.FinishReason, + Warnings: warnings, + ProviderMetadata: mappedResponse.ProviderMetadata, + }, nil +} + +func (g *languageModel) streamObjectWithJSONMode(ctx context.Context, call fantasy.ObjectCall) (fantasy.ObjectStreamResponse, error) { + // Convert our Schema to Google's JSON Schema format + jsonSchemaMap := schema.ToMap(call.Schema) + + // Build request using prepareParams + fantasyCall := fantasy.Call{ + Prompt: call.Prompt, + MaxOutputTokens: call.MaxOutputTokens, + Temperature: call.Temperature, + TopP: call.TopP, + TopK: call.TopK, + PresencePenalty: call.PresencePenalty, + FrequencyPenalty: call.FrequencyPenalty, + ProviderOptions: call.ProviderOptions, + } + + config, contents, warnings, err := g.prepareParams(fantasyCall) + if err != nil { + return nil, err + } + + // Set ResponseMIMEType and ResponseJsonSchema for structured output + config.ResponseMIMEType = "application/json" + config.ResponseJsonSchema = jsonSchemaMap + + lastMessage, history, ok := slice.Pop(contents) + if !ok { + return nil, errors.New("no messages to send") + } + + chat, err := g.client.Chats.Create(ctx, g.modelID, config, history) + if err != nil { + return nil, err + } + + return func(yield func(fantasy.ObjectStreamPart) bool) { + if len(warnings) > 0 { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Warnings: warnings, + }) { + return + } + } + + var accumulated string + var lastParsedObject any + var usage *fantasy.Usage + var lastFinishReason fantasy.FinishReason + var streamErr error + + for resp, err := range chat.SendMessageStream(ctx, depointerSlice(lastMessage.Parts)...) { + if err != nil { + streamErr = toProviderErr(err) + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: streamErr, + }) + return + } + + if len(resp.Candidates) > 0 && resp.Candidates[0].Content != nil { + for _, part := range resp.Candidates[0].Content.Parts { + if part.Text != "" && !part.Thought { + accumulated += part.Text + + // Try to parse the accumulated text + obj, state, parseErr := schema.ParsePartialJSON(accumulated) + + // If we successfully parsed, validate and emit + if state == schema.ParseStateSuccessful || state == schema.ParseStateRepaired { + if err := schema.ValidateAgainstSchema(obj, call.Schema); err == nil { + // Only emit if object is different from last + if !reflect.DeepEqual(obj, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj, + }) { + return + } + lastParsedObject = obj + } + } + } + + // If parsing failed and we have a repair function, try it + if state == schema.ParseStateFailed && call.RepairText != nil { + repairedText, repairErr := call.RepairText(ctx, accumulated, parseErr) + if repairErr == nil { + obj2, state2, _ := schema.ParsePartialJSON(repairedText) + if (state2 == schema.ParseStateSuccessful || state2 == schema.ParseStateRepaired) && + schema.ValidateAgainstSchema(obj2, call.Schema) == nil { + if !reflect.DeepEqual(obj2, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj2, + }) { + return + } + lastParsedObject = obj2 + } + } + } + } + } + } + } + + // we need to make sure that there is actual tokendata + if resp.UsageMetadata != nil && resp.UsageMetadata.TotalTokenCount != 0 { + currentUsage := mapUsage(resp.UsageMetadata) + if usage == nil { + usage = ¤tUsage + } else { + usage.OutputTokens += currentUsage.OutputTokens + usage.ReasoningTokens += currentUsage.ReasoningTokens + usage.CacheReadTokens += currentUsage.CacheReadTokens + } + } + + if len(resp.Candidates) > 0 && resp.Candidates[0].FinishReason != "" { + lastFinishReason = mapFinishReason(resp.Candidates[0].FinishReason) + } + } + + // Final validation and emit + if streamErr == nil && lastParsedObject != nil { + finishReason := lastFinishReason + if finishReason == "" { + finishReason = fantasy.FinishReasonStop + } + + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeFinish, + Usage: *usage, + FinishReason: finishReason, + }) + } else if streamErr == nil && lastParsedObject == nil { + // No object was generated + finalUsage := fantasy.Usage{} + if usage != nil { + finalUsage = *usage + } + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: &fantasy.NoObjectGeneratedError{ + RawText: accumulated, + ParseError: fmt.Errorf("no valid object generated in stream"), + Usage: finalUsage, + FinishReason: lastFinishReason, + }, + }) + } + }, nil +} + func toGoogleTools(tools []fantasy.Tool, toolChoice *fantasy.ToolChoice) (googleTools []*genai.FunctionDeclaration, googleToolChoice *genai.ToolConfig, warnings []fantasy.CallWarning) { for _, tool := range tools { if tool.GetType() == fantasy.ToolTypeFunction { diff --git a/providers/openai/language_model.go b/providers/openai/language_model.go index ef85d2ccf0c35dd46bf09bb2cb26b768a43b725a..e1acf0036fb0664883b16bada360d14d2d4c1de7 100644 --- a/providers/openai/language_model.go +++ b/providers/openai/language_model.go @@ -4,10 +4,14 @@ import ( "context" "encoding/json" "errors" + "fmt" "io" + "reflect" "strings" "charm.land/fantasy" + "charm.land/fantasy/object" + "charm.land/fantasy/schema" xjson "github.com/charmbracelet/x/json" "github.com/google/uuid" "github.com/openai/openai-go/v2" @@ -19,6 +23,7 @@ type languageModel struct { provider string modelID string client openai.Client + objectMode fantasy.ObjectMode prepareCallFunc LanguageModelPrepareCallFunc mapFinishReasonFunc LanguageModelMapFinishReasonFunc extraContentFunc LanguageModelExtraContentFunc @@ -81,11 +86,23 @@ func WithLanguageModelToPromptFunc(fn LanguageModelToPromptFunc) LanguageModelOp } } +// WithLanguageModelObjectMode sets the object generation mode. +func WithLanguageModelObjectMode(om fantasy.ObjectMode) LanguageModelOption { + return func(l *languageModel) { + // not supported + if om == fantasy.ObjectModeJSON { + om = fantasy.ObjectModeAuto + } + l.objectMode = om + } +} + func newLanguageModel(modelID string, provider string, client openai.Client, opts ...LanguageModelOption) languageModel { model := languageModel{ modelID: modelID, provider: provider, client: client, + objectMode: fantasy.ObjectModeAuto, prepareCallFunc: DefaultPrepareCallFunc, mapFinishReasonFunc: DefaultMapFinishReasonFunc, usageFunc: DefaultUsageFunc, @@ -252,13 +269,12 @@ func (o languageModel) Generate(ctx context.Context, call fantasy.Call) (*fantas for _, tc := range choice.Message.ToolCalls { toolCallID := tc.ID content = append(content, fantasy.ToolCallContent{ - ProviderExecuted: false, // TODO: update when handling other tools + ProviderExecuted: false, ToolCallID: toolCallID, ToolName: tc.Function.Name, Input: tc.Function.Arguments, }) } - // Handle annotations/citations for _, annotation := range choice.Message.Annotations { if annotation.Type == "url_citation" { content = append(content, fantasy.SourceContent{ @@ -302,7 +318,6 @@ func (o languageModel) Stream(ctx context.Context, call fantasy.Call) (fantasy.S isActiveText := false toolCalls := make(map[int64]streamToolCall) - // Build provider metadata for streaming providerMetadata := fantasy.ProviderMetadata{ Name: &ProviderMetadata{}, } @@ -395,7 +410,6 @@ func (o languageModel) Stream(ctx context.Context, call fantasy.Call) (fantasy.S toolCalls[toolCallDelta.Index] = existingToolCall } } else { - // Does not exist var err error if toolCallDelta.Type != "function" { err = &fantasy.Error{Title: "invalid provider response", Message: "expected 'function' type."} @@ -470,7 +484,6 @@ func (o languageModel) Stream(ctx context.Context, call fantasy.Call) (fantasy.S } } - // Check for annotations in the delta's raw JSON for _, choice := range chunk.Choices { if annotations := parseAnnotationsFromDelta(choice.Delta); len(annotations) > 0 { for _, annotation := range annotations { @@ -491,7 +504,6 @@ func (o languageModel) Stream(ctx context.Context, call fantasy.Call) (fantasy.S } err := stream.Err() if err == nil || errors.Is(err, io.EOF) { - // finished if isActiveText { isActiveText = false if !yield(fantasy.StreamPart{ @@ -504,10 +516,8 @@ func (o languageModel) Stream(ctx context.Context, call fantasy.Call) (fantasy.S if len(acc.Choices) > 0 { choice := acc.Choices[0] - // Add logprobs if available providerMetadata = o.streamProviderMetadataFunc(choice, providerMetadata) - // Handle annotations/citations from accumulated response for _, annotation := range choice.Message.Annotations { if annotation.Type == "url_citation" { if !yield(fantasy.StreamPart{ @@ -585,7 +595,6 @@ func toOpenAiTools(tools []fantasy.Tool, toolChoice *fantasy.ToolChoice) (openAi continue } - // TODO: handle provider tool calls warnings = append(warnings, fantasy.CallWarning{ Type: fantasy.CallWarningTypeUnsupportedTool, Tool: tool, @@ -650,3 +659,277 @@ func parseAnnotationsFromDelta(delta openai.ChatCompletionChunkChoiceDelta) []op return annotations } + +// GenerateObject implements fantasy.LanguageModel. +func (o languageModel) GenerateObject(ctx context.Context, call fantasy.ObjectCall) (*fantasy.ObjectResponse, error) { + switch o.objectMode { + case fantasy.ObjectModeText: + return object.GenerateWithText(ctx, o, call) + case fantasy.ObjectModeTool: + return object.GenerateWithTool(ctx, o, call) + default: + return o.generateObjectWithJSONMode(ctx, call) + } +} + +// StreamObject implements fantasy.LanguageModel. +func (o languageModel) StreamObject(ctx context.Context, call fantasy.ObjectCall) (fantasy.ObjectStreamResponse, error) { + switch o.objectMode { + case fantasy.ObjectModeTool: + return object.StreamWithTool(ctx, o, call) + case fantasy.ObjectModeText: + return object.StreamWithText(ctx, o, call) + default: + return o.streamObjectWithJSONMode(ctx, call) + } +} + +func (o languageModel) generateObjectWithJSONMode(ctx context.Context, call fantasy.ObjectCall) (*fantasy.ObjectResponse, error) { + jsonSchemaMap := schema.ToMap(call.Schema) + + addAdditionalPropertiesFalse(jsonSchemaMap) + + schemaName := call.SchemaName + if schemaName == "" { + schemaName = "response" + } + + fantasyCall := fantasy.Call{ + Prompt: call.Prompt, + MaxOutputTokens: call.MaxOutputTokens, + Temperature: call.Temperature, + TopP: call.TopP, + PresencePenalty: call.PresencePenalty, + FrequencyPenalty: call.FrequencyPenalty, + ProviderOptions: call.ProviderOptions, + } + + params, warnings, err := o.prepareParams(fantasyCall) + if err != nil { + return nil, err + } + + params.ResponseFormat = openai.ChatCompletionNewParamsResponseFormatUnion{ + OfJSONSchema: &shared.ResponseFormatJSONSchemaParam{ + JSONSchema: shared.ResponseFormatJSONSchemaJSONSchemaParam{ + Name: schemaName, + Description: param.NewOpt(call.SchemaDescription), + Schema: jsonSchemaMap, + Strict: param.NewOpt(true), + }, + }, + } + + response, err := o.client.Chat.Completions.New(ctx, *params) + if err != nil { + return nil, toProviderErr(err) + } + + if len(response.Choices) == 0 { + usage, _ := o.usageFunc(*response) + return nil, &fantasy.NoObjectGeneratedError{ + RawText: "", + ParseError: fmt.Errorf("no choices in response"), + Usage: usage, + FinishReason: fantasy.FinishReasonUnknown, + } + } + + choice := response.Choices[0] + jsonText := choice.Message.Content + + var obj any + if call.RepairText != nil { + obj, err = schema.ParseAndValidateWithRepair(ctx, jsonText, call.Schema, call.RepairText) + } else { + obj, err = schema.ParseAndValidate(jsonText, call.Schema) + } + + usage, _ := o.usageFunc(*response) + finishReason := o.mapFinishReasonFunc(choice.FinishReason) + + if err != nil { + if nogErr, ok := err.(*fantasy.NoObjectGeneratedError); ok { + nogErr.Usage = usage + nogErr.FinishReason = finishReason + } + return nil, err + } + + return &fantasy.ObjectResponse{ + Object: obj, + RawText: jsonText, + Usage: usage, + FinishReason: finishReason, + Warnings: warnings, + }, nil +} + +func (o languageModel) streamObjectWithJSONMode(ctx context.Context, call fantasy.ObjectCall) (fantasy.ObjectStreamResponse, error) { + jsonSchemaMap := schema.ToMap(call.Schema) + + addAdditionalPropertiesFalse(jsonSchemaMap) + + schemaName := call.SchemaName + if schemaName == "" { + schemaName = "response" + } + + fantasyCall := fantasy.Call{ + Prompt: call.Prompt, + MaxOutputTokens: call.MaxOutputTokens, + Temperature: call.Temperature, + TopP: call.TopP, + PresencePenalty: call.PresencePenalty, + FrequencyPenalty: call.FrequencyPenalty, + ProviderOptions: call.ProviderOptions, + } + + params, warnings, err := o.prepareParams(fantasyCall) + if err != nil { + return nil, err + } + + params.ResponseFormat = openai.ChatCompletionNewParamsResponseFormatUnion{ + OfJSONSchema: &shared.ResponseFormatJSONSchemaParam{ + JSONSchema: shared.ResponseFormatJSONSchemaJSONSchemaParam{ + Name: schemaName, + Description: param.NewOpt(call.SchemaDescription), + Schema: jsonSchemaMap, + Strict: param.NewOpt(true), + }, + }, + } + + params.StreamOptions = openai.ChatCompletionStreamOptionsParam{ + IncludeUsage: openai.Bool(true), + } + + stream := o.client.Chat.Completions.NewStreaming(ctx, *params) + + return func(yield func(fantasy.ObjectStreamPart) bool) { + if len(warnings) > 0 { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Warnings: warnings, + }) { + return + } + } + + var accumulated string + var lastParsedObject any + var usage fantasy.Usage + var finishReason fantasy.FinishReason + var providerMetadata fantasy.ProviderMetadata + var streamErr error + + for stream.Next() { + chunk := stream.Current() + + // Update usage + usage, providerMetadata = o.streamUsageFunc(chunk, make(map[string]any), providerMetadata) + + if len(chunk.Choices) == 0 { + continue + } + + choice := chunk.Choices[0] + if choice.FinishReason != "" { + finishReason = o.mapFinishReasonFunc(choice.FinishReason) + } + + if choice.Delta.Content != "" { + accumulated += choice.Delta.Content + + obj, state, parseErr := schema.ParsePartialJSON(accumulated) + + if state == schema.ParseStateSuccessful || state == schema.ParseStateRepaired { + if err := schema.ValidateAgainstSchema(obj, call.Schema); err == nil { + if !reflect.DeepEqual(obj, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj, + }) { + return + } + lastParsedObject = obj + } + } + } + + if state == schema.ParseStateFailed && call.RepairText != nil { + repairedText, repairErr := call.RepairText(ctx, accumulated, parseErr) + if repairErr == nil { + obj2, state2, _ := schema.ParsePartialJSON(repairedText) + if (state2 == schema.ParseStateSuccessful || state2 == schema.ParseStateRepaired) && + schema.ValidateAgainstSchema(obj2, call.Schema) == nil { + if !reflect.DeepEqual(obj2, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj2, + }) { + return + } + lastParsedObject = obj2 + } + } + } + } + } + } + + err := stream.Err() + if err != nil && !errors.Is(err, io.EOF) { + streamErr = toProviderErr(err) + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: streamErr, + }) + return + } + + if lastParsedObject != nil { + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeFinish, + Usage: usage, + FinishReason: finishReason, + ProviderMetadata: providerMetadata, + }) + } else { + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: &fantasy.NoObjectGeneratedError{ + RawText: accumulated, + ParseError: fmt.Errorf("no valid object generated in stream"), + Usage: usage, + FinishReason: finishReason, + }, + }) + } + }, nil +} + +// addAdditionalPropertiesFalse recursively adds "additionalProperties": false to all object schemas. +// This is required by OpenAI's strict mode for structured outputs. +func addAdditionalPropertiesFalse(schema map[string]any) { + if schema["type"] == "object" { + if _, hasAdditional := schema["additionalProperties"]; !hasAdditional { + schema["additionalProperties"] = false + } + + // Recursively process nested properties + if properties, ok := schema["properties"].(map[string]any); ok { + for _, propValue := range properties { + if propSchema, ok := propValue.(map[string]any); ok { + addAdditionalPropertiesFalse(propSchema) + } + } + } + } + + // Handle array items + if items, ok := schema["items"].(map[string]any); ok { + addAdditionalPropertiesFalse(items) + } +} diff --git a/providers/openai/openai.go b/providers/openai/openai.go index 7f0e8f14d3d95b57ea91f080af50d8fa364d8a27..7ca74b9c78f3d0be5955ae941b645875716da01e 100644 --- a/providers/openai/openai.go +++ b/providers/openai/openai.go @@ -32,6 +32,7 @@ type options struct { headers map[string]string client option.HTTPClient sdkOptions []option.RequestOption + objectMode fantasy.ObjectMode languageModelOptions []LanguageModelOption } @@ -131,6 +132,17 @@ func WithUseResponsesAPI() Option { } } +// WithObjectMode sets the object generation mode. +func WithObjectMode(om fantasy.ObjectMode) Option { + return func(o *options) { + // not supported + if om == fantasy.ObjectModeJSON { + om = fantasy.ObjectModeAuto + } + o.objectMode = om + } +} + // LanguageModel implements fantasy.Provider. func (o *provider) LanguageModel(_ context.Context, modelID string) (fantasy.LanguageModel, error) { openaiClientOptions := make([]option.RequestOption, 0, 5+len(o.options.headers)+len(o.options.sdkOptions)) @@ -156,9 +168,16 @@ func (o *provider) LanguageModel(_ context.Context, modelID string) (fantasy.Lan client := openai.NewClient(openaiClientOptions...) if o.options.useResponsesAPI && IsResponsesModel(modelID) { - return newResponsesLanguageModel(modelID, o.options.name, client), nil + // Not supported for responses API + objectMode := o.options.objectMode + if objectMode == fantasy.ObjectModeJSON { + objectMode = fantasy.ObjectModeAuto + } + return newResponsesLanguageModel(modelID, o.options.name, client, objectMode), nil } + o.options.languageModelOptions = append(o.options.languageModelOptions, WithLanguageModelObjectMode(o.options.objectMode)) + return newLanguageModel( modelID, o.options.name, diff --git a/providers/openai/responses_language_model.go b/providers/openai/responses_language_model.go index 9d90cf78bc7f4776599cd71b982d489227d59d2c..13a9da50a26069aafa4e62788b02f99305147007 100644 --- a/providers/openai/responses_language_model.go +++ b/providers/openai/responses_language_model.go @@ -5,9 +5,12 @@ import ( "encoding/base64" "encoding/json" "fmt" + "reflect" "strings" "charm.land/fantasy" + "charm.land/fantasy/object" + "charm.land/fantasy/schema" "github.com/google/uuid" "github.com/openai/openai-go/v2" "github.com/openai/openai-go/v2/packages/param" @@ -18,18 +21,20 @@ import ( const topLogprobsMax = 20 type responsesLanguageModel struct { - provider string - modelID string - client openai.Client + provider string + modelID string + client openai.Client + objectMode fantasy.ObjectMode } // newResponsesLanguageModel implements a responses api model // INFO: (kujtim) currently we do not support stored parameter we default it to false. -func newResponsesLanguageModel(modelID string, provider string, client openai.Client) responsesLanguageModel { +func newResponsesLanguageModel(modelID string, provider string, client openai.Client, objectMode fantasy.ObjectMode) responsesLanguageModel { return responsesLanguageModel{ - modelID: modelID, - provider: provider, - client: client, + modelID: modelID, + provider: provider, + client: client, + objectMode: objectMode, } } @@ -1032,3 +1037,293 @@ type ongoingToolCall struct { type reasoningState struct { metadata *ResponsesReasoningMetadata } + +// GenerateObject implements fantasy.LanguageModel. +func (o responsesLanguageModel) GenerateObject(ctx context.Context, call fantasy.ObjectCall) (*fantasy.ObjectResponse, error) { + switch o.objectMode { + case fantasy.ObjectModeText: + return object.GenerateWithText(ctx, o, call) + case fantasy.ObjectModeTool: + return object.GenerateWithTool(ctx, o, call) + default: + return o.generateObjectWithJSONMode(ctx, call) + } +} + +// StreamObject implements fantasy.LanguageModel. +func (o responsesLanguageModel) StreamObject(ctx context.Context, call fantasy.ObjectCall) (fantasy.ObjectStreamResponse, error) { + switch o.objectMode { + case fantasy.ObjectModeTool: + return object.StreamWithTool(ctx, o, call) + case fantasy.ObjectModeText: + return object.StreamWithText(ctx, o, call) + default: + return o.streamObjectWithJSONMode(ctx, call) + } +} + +func (o responsesLanguageModel) generateObjectWithJSONMode(ctx context.Context, call fantasy.ObjectCall) (*fantasy.ObjectResponse, error) { + // Convert our Schema to OpenAI's JSON Schema format + jsonSchemaMap := schema.ToMap(call.Schema) + + // Add additionalProperties: false recursively for strict mode (OpenAI requirement) + addAdditionalPropertiesFalse(jsonSchemaMap) + + schemaName := call.SchemaName + if schemaName == "" { + schemaName = "response" + } + + // Build request using prepareParams + fantasyCall := fantasy.Call{ + Prompt: call.Prompt, + MaxOutputTokens: call.MaxOutputTokens, + Temperature: call.Temperature, + TopP: call.TopP, + PresencePenalty: call.PresencePenalty, + FrequencyPenalty: call.FrequencyPenalty, + ProviderOptions: call.ProviderOptions, + } + + params, warnings := o.prepareParams(fantasyCall) + + // Add structured output via Text.Format field + params.Text = responses.ResponseTextConfigParam{ + Format: responses.ResponseFormatTextConfigParamOfJSONSchema(schemaName, jsonSchemaMap), + } + + // Make request + response, err := o.client.Responses.New(ctx, *params) + if err != nil { + return nil, toProviderErr(err) + } + + if response.Error.Message != "" { + return nil, &fantasy.Error{ + Title: "provider error", + Message: fmt.Sprintf("%s (code: %s)", response.Error.Message, response.Error.Code), + } + } + + // Extract JSON text from response + var jsonText string + for _, outputItem := range response.Output { + if outputItem.Type == "message" { + for _, contentPart := range outputItem.Content { + if contentPart.Type == "output_text" { + jsonText = contentPart.Text + break + } + } + } + } + + if jsonText == "" { + usage := fantasy.Usage{ + InputTokens: response.Usage.InputTokens, + OutputTokens: response.Usage.OutputTokens, + TotalTokens: response.Usage.InputTokens + response.Usage.OutputTokens, + } + finishReason := mapResponsesFinishReason(response.IncompleteDetails.Reason, false) + return nil, &fantasy.NoObjectGeneratedError{ + RawText: "", + ParseError: fmt.Errorf("no text content in response"), + Usage: usage, + FinishReason: finishReason, + } + } + + // Parse and validate + var obj any + if call.RepairText != nil { + obj, err = schema.ParseAndValidateWithRepair(ctx, jsonText, call.Schema, call.RepairText) + } else { + obj, err = schema.ParseAndValidate(jsonText, call.Schema) + } + + usage := fantasy.Usage{ + InputTokens: response.Usage.InputTokens, + OutputTokens: response.Usage.OutputTokens, + TotalTokens: response.Usage.InputTokens + response.Usage.OutputTokens, + } + if response.Usage.OutputTokensDetails.ReasoningTokens != 0 { + usage.ReasoningTokens = response.Usage.OutputTokensDetails.ReasoningTokens + } + if response.Usage.InputTokensDetails.CachedTokens != 0 { + usage.CacheReadTokens = response.Usage.InputTokensDetails.CachedTokens + } + + finishReason := mapResponsesFinishReason(response.IncompleteDetails.Reason, false) + + if err != nil { + // Add usage info to error + if nogErr, ok := err.(*fantasy.NoObjectGeneratedError); ok { + nogErr.Usage = usage + nogErr.FinishReason = finishReason + } + return nil, err + } + + return &fantasy.ObjectResponse{ + Object: obj, + RawText: jsonText, + Usage: usage, + FinishReason: finishReason, + Warnings: warnings, + }, nil +} + +func (o responsesLanguageModel) streamObjectWithJSONMode(ctx context.Context, call fantasy.ObjectCall) (fantasy.ObjectStreamResponse, error) { + // Convert our Schema to OpenAI's JSON Schema format + jsonSchemaMap := schema.ToMap(call.Schema) + + // Add additionalProperties: false recursively for strict mode (OpenAI requirement) + addAdditionalPropertiesFalse(jsonSchemaMap) + + schemaName := call.SchemaName + if schemaName == "" { + schemaName = "response" + } + + // Build request using prepareParams + fantasyCall := fantasy.Call{ + Prompt: call.Prompt, + MaxOutputTokens: call.MaxOutputTokens, + Temperature: call.Temperature, + TopP: call.TopP, + PresencePenalty: call.PresencePenalty, + FrequencyPenalty: call.FrequencyPenalty, + ProviderOptions: call.ProviderOptions, + } + + params, warnings := o.prepareParams(fantasyCall) + + // Add structured output via Text.Format field + params.Text = responses.ResponseTextConfigParam{ + Format: responses.ResponseFormatTextConfigParamOfJSONSchema(schemaName, jsonSchemaMap), + } + + stream := o.client.Responses.NewStreaming(ctx, *params) + + return func(yield func(fantasy.ObjectStreamPart) bool) { + if len(warnings) > 0 { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Warnings: warnings, + }) { + return + } + } + + var accumulated string + var lastParsedObject any + var usage fantasy.Usage + var finishReason fantasy.FinishReason + var streamErr error + hasFunctionCall := false + + for stream.Next() { + event := stream.Current() + + switch event.Type { + case "response.output_text.delta": + textDelta := event.AsResponseOutputTextDelta() + accumulated += textDelta.Delta + + // Try to parse the accumulated text + obj, state, parseErr := schema.ParsePartialJSON(accumulated) + + // If we successfully parsed, validate and emit + if state == schema.ParseStateSuccessful || state == schema.ParseStateRepaired { + if err := schema.ValidateAgainstSchema(obj, call.Schema); err == nil { + // Only emit if object is different from last + if !reflect.DeepEqual(obj, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj, + }) { + return + } + lastParsedObject = obj + } + } + } + + // If parsing failed and we have a repair function, try it + if state == schema.ParseStateFailed && call.RepairText != nil { + repairedText, repairErr := call.RepairText(ctx, accumulated, parseErr) + if repairErr == nil { + obj2, state2, _ := schema.ParsePartialJSON(repairedText) + if (state2 == schema.ParseStateSuccessful || state2 == schema.ParseStateRepaired) && + schema.ValidateAgainstSchema(obj2, call.Schema) == nil { + if !reflect.DeepEqual(obj2, lastParsedObject) { + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeObject, + Object: obj2, + }) { + return + } + lastParsedObject = obj2 + } + } + } + } + + case "response.completed", "response.incomplete": + completed := event.AsResponseCompleted() + finishReason = mapResponsesFinishReason(completed.Response.IncompleteDetails.Reason, hasFunctionCall) + usage = fantasy.Usage{ + InputTokens: completed.Response.Usage.InputTokens, + OutputTokens: completed.Response.Usage.OutputTokens, + TotalTokens: completed.Response.Usage.InputTokens + completed.Response.Usage.OutputTokens, + } + if completed.Response.Usage.OutputTokensDetails.ReasoningTokens != 0 { + usage.ReasoningTokens = completed.Response.Usage.OutputTokensDetails.ReasoningTokens + } + if completed.Response.Usage.InputTokensDetails.CachedTokens != 0 { + usage.CacheReadTokens = completed.Response.Usage.InputTokensDetails.CachedTokens + } + + case "error": + errorEvent := event.AsError() + streamErr = fmt.Errorf("response error: %s (code: %s)", errorEvent.Message, errorEvent.Code) + if !yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: streamErr, + }) { + return + } + return + } + } + + err := stream.Err() + if err != nil { + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: toProviderErr(err), + }) + return + } + + // Final validation and emit + if streamErr == nil && lastParsedObject != nil { + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeFinish, + Usage: usage, + FinishReason: finishReason, + }) + } else if streamErr == nil && lastParsedObject == nil { + // No object was generated + yield(fantasy.ObjectStreamPart{ + Type: fantasy.ObjectStreamPartTypeError, + Error: &fantasy.NoObjectGeneratedError{ + RawText: accumulated, + ParseError: fmt.Errorf("no valid object generated in stream"), + Usage: usage, + FinishReason: finishReason, + }, + }) + } + }, nil +} diff --git a/providers/openaicompat/openaicompat.go b/providers/openaicompat/openaicompat.go index 5590b67227ef412403b67e79a72d4eecb826e471..236d43153c1defbe2d2aa05a45465c2a2e6a3a14 100644 --- a/providers/openaicompat/openaicompat.go +++ b/providers/openaicompat/openaicompat.go @@ -11,6 +11,7 @@ type options struct { openaiOptions []openai.Option languageModelOptions []openai.LanguageModelOption sdkOptions []option.RequestOption + objectMode fantasy.ObjectMode } const ( @@ -33,15 +34,24 @@ func New(opts ...Option) (fantasy.Provider, error) { openai.WithLanguageModelExtraContentFunc(ExtraContentFunc), openai.WithLanguageModelToPromptFunc(ToPromptFunc), }, + objectMode: fantasy.ObjectModeTool, // Default to tool mode for openai-compat } for _, o := range opts { o(&providerOptions) } + // Handle object mode: convert unsupported modes to tool + // OpenAI-compat endpoints don't support native JSON mode, so we use tool or text + objectMode := providerOptions.objectMode + if objectMode == fantasy.ObjectModeAuto || objectMode == fantasy.ObjectModeJSON { + objectMode = fantasy.ObjectModeTool + } + providerOptions.openaiOptions = append( providerOptions.openaiOptions, openai.WithSDKOptions(providerOptions.sdkOptions...), openai.WithLanguageModelOptions(providerOptions.languageModelOptions...), + openai.WithObjectMode(objectMode), ) return openai.New(providerOptions.openaiOptions...) } @@ -87,3 +97,13 @@ func WithSDKOptions(opts ...option.RequestOption) Option { o.sdkOptions = append(o.sdkOptions, opts...) } } + +// WithObjectMode sets the object generation mode for the OpenAI-compatible provider. +// Supported modes: ObjectModeTool, ObjectModeText. +// ObjectModeAuto and ObjectModeJSON are automatically converted to ObjectModeTool +// since OpenAI-compatible endpoints typically don't support native JSON mode. +func WithObjectMode(om fantasy.ObjectMode) Option { + return func(o *options) { + o.objectMode = om + } +} diff --git a/providers/openrouter/openrouter.go b/providers/openrouter/openrouter.go index 7551c14b1bbca5a23f7c8be14df08ba7ee6a0a3c..bd0e700aff487efd7660180ef0aaba9d6aa6f797 100644 --- a/providers/openrouter/openrouter.go +++ b/providers/openrouter/openrouter.go @@ -12,6 +12,7 @@ import ( type options struct { openaiOptions []openai.Option languageModelOptions []openai.LanguageModelOption + objectMode fantasy.ObjectMode } const ( @@ -39,12 +40,24 @@ func New(opts ...Option) (fantasy.Provider, error) { openai.WithLanguageModelExtraContentFunc(languageModelExtraContent), openai.WithLanguageModelToPromptFunc(languageModelToPrompt), }, + objectMode: fantasy.ObjectModeTool, // Default to tool mode for openrouter } for _, o := range opts { o(&providerOptions) } - providerOptions.openaiOptions = append(providerOptions.openaiOptions, openai.WithLanguageModelOptions(providerOptions.languageModelOptions...)) + // Handle object mode: convert unsupported modes to tool + // OpenRouter doesn't support native JSON mode, so we use tool or text + objectMode := providerOptions.objectMode + if objectMode == fantasy.ObjectModeAuto || objectMode == fantasy.ObjectModeJSON { + objectMode = fantasy.ObjectModeTool + } + + providerOptions.openaiOptions = append( + providerOptions.openaiOptions, + openai.WithLanguageModelOptions(providerOptions.languageModelOptions...), + openai.WithObjectMode(objectMode), + ) return openai.New(providerOptions.openaiOptions...) } @@ -76,6 +89,16 @@ func WithHTTPClient(client option.HTTPClient) Option { } } +// WithObjectMode sets the object generation mode for the OpenRouter provider. +// Supported modes: ObjectModeTool, ObjectModeText. +// ObjectModeAuto and ObjectModeJSON are automatically converted to ObjectModeTool +// since OpenRouter doesn't support native JSON mode. +func WithObjectMode(om fantasy.ObjectMode) Option { + return func(o *options) { + o.objectMode = om + } +} + func structToMapJSON(s any) (map[string]any, error) { var result map[string]any jsonBytes, err := json.Marshal(s) diff --git a/providertests/anthropic_test.go b/providertests/anthropic_test.go index bf5fece684882a275835b6eb11e1a627f493a22f..8cd98a7c70068cc7973bed41ccd28af140a5c35f 100644 --- a/providertests/anthropic_test.go +++ b/providertests/anthropic_test.go @@ -99,6 +99,14 @@ func TestAnthropicThinkingWithCacheControl(t *testing.T) { testThinking(t, pairs, testAnthropicThinking) } +func TestAnthropicObjectGeneration(t *testing.T) { + var pairs []builderPair + for _, m := range anthropicTestModels { + pairs = append(pairs, builderPair{m.name, anthropicBuilder(m.model), nil, nil}) + } + testObjectGeneration(t, pairs) +} + func testAnthropicThinking(t *testing.T, result *fantasy.AgentResult) { reasoningContentCount := 0 signaturesCount := 0 diff --git a/providertests/google_test.go b/providertests/google_test.go index f20aef8cb7625c4c4bc149d2fb7b4b611b2370ed..a3ed753612fc1411e1f2f30d28e28433ee5c60fe 100644 --- a/providertests/google_test.go +++ b/providertests/google_test.go @@ -55,6 +55,22 @@ func TestGoogleThinking(t *testing.T) { testThinking(t, pairs, testGoogleThinking) } +func TestGoogleObjectGeneration(t *testing.T) { + var pairs []builderPair + for _, m := range geminiTestModels { + pairs = append(pairs, builderPair{m.name, geminiBuilder(m.model), nil, nil}) + } + testObjectGeneration(t, pairs) +} + +func TestGoogleVertexObjectGeneration(t *testing.T) { + var pairs []builderPair + for _, m := range vertexTestModels { + pairs = append(pairs, builderPair{m.name, vertexBuilder(m.model), nil, nil}) + } + testObjectGeneration(t, pairs) +} + func testGoogleThinking(t *testing.T, result *fantasy.AgentResult) { reasoningContentCount := 0 // Test if we got the signature diff --git a/providertests/object_test.go b/providertests/object_test.go new file mode 100644 index 0000000000000000000000000000000000000000..b23986ee7aa547556ca7dda447a61bfc8617f9dd --- /dev/null +++ b/providertests/object_test.go @@ -0,0 +1,421 @@ +package providertests + +import ( + "context" + "strings" + "testing" + + "charm.land/fantasy" + "github.com/stretchr/testify/require" +) + +// Object generation tests for providers. +// +// These test functions can be used to test structured object generation +// (GenerateObject and StreamObject) for any provider implementation. +// +// Usage example: +// +// func TestMyProviderObjectGeneration(t *testing.T) { +// var pairs []builderPair +// for _, m := range myTestModels { +// pairs = append(pairs, builderPair{m.name, myBuilder(m.model), nil, nil}) +// } +// testObjectGeneration(t, pairs) +// } +// +// The tests cover: +// - Simple object generation (flat schema with basic types) +// - Complex object generation (nested objects and arrays) +// - Streaming object generation (progressive updates) +// - Object generation with custom repair functions + +// testObjectGeneration tests structured object generation for a provider. +// It includes both non-streaming (GenerateObject) and streaming (StreamObject) tests. +func testObjectGeneration(t *testing.T, pairs []builderPair) { + for _, pair := range pairs { + t.Run(pair.name, func(t *testing.T) { + testSimpleObject(t, pair) + testComplexObject(t, pair) + }) + } +} + +func testSimpleObject(t *testing.T, pair builderPair) { + // Define a simple schema for a person object + schema := fantasy.Schema{ + Type: "object", + Properties: map[string]*fantasy.Schema{ + "name": { + Type: "string", + Description: "The person's name", + }, + "age": { + Type: "integer", + Description: "The person's age", + }, + "city": { + Type: "string", + Description: "The city where the person lives", + }, + }, + Required: []string{"name", "age", "city"}, + } + + checkResult := func(t *testing.T, obj any, rawText string, usage fantasy.Usage) { + require.NotNil(t, obj, "object should not be nil") + require.NotEmpty(t, rawText, "raw text should not be empty") + require.Greater(t, usage.TotalTokens, int64(0), "usage should be tracked") + + // Validate structure + objMap, ok := obj.(map[string]any) + require.True(t, ok, "object should be a map") + require.Contains(t, objMap, "name") + require.Contains(t, objMap, "age") + require.Contains(t, objMap, "city") + + // Validate types + name, ok := objMap["name"].(string) + require.True(t, ok, "name should be a string") + require.NotEmpty(t, name, "name should not be empty") + + // Age could be float64 from JSON unmarshaling + age, ok := objMap["age"].(float64) + require.True(t, ok, "age should be a number") + require.Greater(t, age, 0.0, "age should be greater than 0") + + city, ok := objMap["city"].(string) + require.True(t, ok, "city should be a string") + require.NotEmpty(t, city, "city should not be empty") + } + + t.Run("simple object", func(t *testing.T) { + r := newRecorder(t) + + languageModel, err := pair.builder(t, r) + require.NoError(t, err, "failed to build language model") + + prompt := fantasy.Prompt{ + fantasy.NewUserMessage("Generate information about a person named Alice who is 30 years old and lives in Paris."), + } + + response, err := languageModel.GenerateObject(t.Context(), fantasy.ObjectCall{ + Prompt: prompt, + Schema: schema, + SchemaName: "Person", + SchemaDescription: "A person with name, age, and city", + MaxOutputTokens: fantasy.Opt(int64(4000)), + ProviderOptions: pair.providerOptions, + }) + require.NoError(t, err, "failed to generate object") + require.NotNil(t, response, "response should not be nil") + checkResult(t, response.Object, response.RawText, response.Usage) + }) + + t.Run("simple object streaming", func(t *testing.T) { + r := newRecorder(t) + + languageModel, err := pair.builder(t, r) + require.NoError(t, err, "failed to build language model") + + prompt := fantasy.Prompt{ + fantasy.NewUserMessage("Generate information about a person named Alice who is 30 years old and lives in Paris."), + } + + stream, err := languageModel.StreamObject(t.Context(), fantasy.ObjectCall{ + Prompt: prompt, + Schema: schema, + SchemaName: "Person", + SchemaDescription: "A person with name, age, and city", + MaxOutputTokens: fantasy.Opt(int64(4000)), + ProviderOptions: pair.providerOptions, + }) + require.NoError(t, err, "failed to create object stream") + require.NotNil(t, stream, "stream should not be nil") + + var lastObject any + var rawText string + var usage fantasy.Usage + var finishReason fantasy.FinishReason + objectCount := 0 + + for part := range stream { + switch part.Type { + case fantasy.ObjectStreamPartTypeObject: + lastObject = part.Object + objectCount++ + case fantasy.ObjectStreamPartTypeTextDelta: + rawText += part.Delta + case fantasy.ObjectStreamPartTypeFinish: + usage = part.Usage + finishReason = part.FinishReason + case fantasy.ObjectStreamPartTypeError: + t.Fatalf("stream error: %v", part.Error) + } + } + + require.NotNil(t, lastObject, "should have received at least one object") + require.Greater(t, objectCount, 0, "should have received object updates") + require.NotEqual(t, fantasy.FinishReasonUnknown, finishReason, "should have a finish reason") + + // Validate object structure without requiring rawText (may be empty in tool-based mode) + require.NotNil(t, lastObject, "object should not be nil") + require.Greater(t, usage.TotalTokens, int64(0), "usage should be tracked") + + // Validate structure + objMap, ok := lastObject.(map[string]any) + require.True(t, ok, "object should be a map") + require.Contains(t, objMap, "name") + require.Contains(t, objMap, "age") + require.Contains(t, objMap, "city") + + // Validate types + name, ok := objMap["name"].(string) + require.True(t, ok, "name should be a string") + require.NotEmpty(t, name, "name should not be empty") + + // Age could be float64 from JSON unmarshaling + age, ok := objMap["age"].(float64) + require.True(t, ok, "age should be a number") + require.Greater(t, age, 0.0, "age should be greater than 0") + + city, ok := objMap["city"].(string) + require.True(t, ok, "city should be a string") + require.NotEmpty(t, city, "city should not be empty") + }) +} + +func testComplexObject(t *testing.T, pair builderPair) { + // Define a more complex schema with nested objects and arrays + schema := fantasy.Schema{ + Type: "object", + Properties: map[string]*fantasy.Schema{ + "title": { + Type: "string", + Description: "The book title", + }, + "author": { + Type: "object", + Properties: map[string]*fantasy.Schema{ + "name": { + Type: "string", + Description: "Author's name", + }, + "nationality": { + Type: "string", + Description: "Author's nationality", + }, + }, + Required: []string{"name", "nationality"}, + }, + "genres": { + Type: "array", + Items: &fantasy.Schema{ + Type: "string", + }, + Description: "List of genres", + }, + "published_year": { + Type: "integer", + Description: "Year the book was published", + }, + }, + Required: []string{"title", "author", "genres", "published_year"}, + } + + checkResult := func(t *testing.T, obj any, rawText string, usage fantasy.Usage) { + require.NotNil(t, obj, "object should not be nil") + require.NotEmpty(t, rawText, "raw text should not be empty") + require.Greater(t, usage.TotalTokens, int64(0), "usage should be tracked") + + // Validate structure + objMap, ok := obj.(map[string]any) + require.True(t, ok, "object should be a map") + require.Contains(t, objMap, "title") + require.Contains(t, objMap, "author") + require.Contains(t, objMap, "genres") + require.Contains(t, objMap, "published_year") + + // Validate title + title, ok := objMap["title"].(string) + require.True(t, ok, "title should be a string") + require.True(t, strings.Contains(strings.ToLower(title), "rings"), "title should contain 'rings'") + + // Validate nested author object + author, ok := objMap["author"].(map[string]any) + require.True(t, ok, "author should be an object") + require.Contains(t, author, "name") + require.Contains(t, author, "nationality") + + // Validate genres array + genres, ok := objMap["genres"].([]any) + require.True(t, ok, "genres should be an array") + require.Greater(t, len(genres), 0, "genres should have at least one item") + for _, genre := range genres { + _, ok := genre.(string) + require.True(t, ok, "each genre should be a string") + } + + // Validate published_year + year, ok := objMap["published_year"].(float64) + require.True(t, ok, "published_year should be a number") + require.Greater(t, year, 1900.0, "published_year should be after 1900") + } + + t.Run("complex object", func(t *testing.T) { + r := newRecorder(t) + + languageModel, err := pair.builder(t, r) + require.NoError(t, err, "failed to build language model") + + prompt := fantasy.Prompt{ + fantasy.NewUserMessage("Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."), + } + + response, err := languageModel.GenerateObject(t.Context(), fantasy.ObjectCall{ + Prompt: prompt, + Schema: schema, + SchemaName: "Book", + SchemaDescription: "A book with title, author, genres, and publication year", + MaxOutputTokens: fantasy.Opt(int64(4000)), + ProviderOptions: pair.providerOptions, + }) + require.NoError(t, err, "failed to generate object") + require.NotNil(t, response, "response should not be nil") + checkResult(t, response.Object, response.RawText, response.Usage) + }) + + t.Run("complex object streaming", func(t *testing.T) { + r := newRecorder(t) + + languageModel, err := pair.builder(t, r) + require.NoError(t, err, "failed to build language model") + + prompt := fantasy.Prompt{ + fantasy.NewUserMessage("Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."), + } + + stream, err := languageModel.StreamObject(t.Context(), fantasy.ObjectCall{ + Prompt: prompt, + Schema: schema, + SchemaName: "Book", + SchemaDescription: "A book with title, author, genres, and publication year", + MaxOutputTokens: fantasy.Opt(int64(4000)), + ProviderOptions: pair.providerOptions, + }) + require.NoError(t, err, "failed to create object stream") + require.NotNil(t, stream, "stream should not be nil") + + var lastObject any + var rawText string + var usage fantasy.Usage + var finishReason fantasy.FinishReason + objectCount := 0 + + for part := range stream { + switch part.Type { + case fantasy.ObjectStreamPartTypeObject: + lastObject = part.Object + objectCount++ + case fantasy.ObjectStreamPartTypeTextDelta: + rawText += part.Delta + case fantasy.ObjectStreamPartTypeFinish: + usage = part.Usage + finishReason = part.FinishReason + case fantasy.ObjectStreamPartTypeError: + t.Fatalf("stream error: %v", part.Error) + } + } + + require.NotNil(t, lastObject, "should have received at least one object") + require.Greater(t, objectCount, 0, "should have received object updates") + require.NotEqual(t, fantasy.FinishReasonUnknown, finishReason, "should have a finish reason") + + // Validate object structure without requiring rawText (may be empty in tool-based mode) + require.NotNil(t, lastObject, "object should not be nil") + require.Greater(t, usage.TotalTokens, int64(0), "usage should be tracked") + + // Validate structure + objMap, ok := lastObject.(map[string]any) + require.True(t, ok, "object should be a map") + require.Contains(t, objMap, "title") + require.Contains(t, objMap, "author") + require.Contains(t, objMap, "genres") + require.Contains(t, objMap, "published_year") + + // Validate title + title, ok := objMap["title"].(string) + require.True(t, ok, "title should be a string") + require.True(t, strings.Contains(strings.ToLower(title), "rings"), "title should contain 'rings'") + + // Validate nested author object + author, ok := objMap["author"].(map[string]any) + require.True(t, ok, "author should be an object") + require.Contains(t, author, "name") + require.Contains(t, author, "nationality") + + // Validate genres array + genres, ok := objMap["genres"].([]any) + require.True(t, ok, "genres should be an array") + require.Greater(t, len(genres), 0, "genres should have at least one item") + for _, genre := range genres { + _, ok := genre.(string) + require.True(t, ok, "each genre should be a string") + } + + // Validate published_year + year, ok := objMap["published_year"].(float64) + require.True(t, ok, "published_year should be a number") + require.Greater(t, year, 1900.0, "published_year should be after 1900") + }) +} + +// testObjectWithRepair tests object generation with custom repair functionality. +func testObjectWithRepair(t *testing.T, pairs []builderPair) { + for _, pair := range pairs { + t.Run(pair.name, func(t *testing.T) { + t.Run("object with repair", func(t *testing.T) { + r := newRecorder(t) + + languageModel, err := pair.builder(t, r) + require.NoError(t, err, "failed to build language model") + + minVal := 1.0 + schema := fantasy.Schema{ + Type: "object", + Properties: map[string]*fantasy.Schema{ + "count": { + Type: "integer", + Description: "A count that must be positive", + Minimum: &minVal, + }, + }, + Required: []string{"count"}, + } + + prompt := fantasy.Prompt{ + fantasy.NewUserMessage("Return a count of 5"), + } + + repairFunc := func(ctx context.Context, text string, err error) (string, error) { + // Simple repair: if the JSON is malformed, try to fix it + // This is a placeholder - real repair would be more sophisticated + return text, nil + } + + response, err := languageModel.GenerateObject(t.Context(), fantasy.ObjectCall{ + Prompt: prompt, + Schema: schema, + SchemaName: "Count", + SchemaDescription: "A simple count object", + MaxOutputTokens: fantasy.Opt(int64(4000)), + RepairText: repairFunc, + ProviderOptions: pair.providerOptions, + }) + require.NoError(t, err, "failed to generate object") + require.NotNil(t, response, "response should not be nil") + require.NotNil(t, response.Object, "object should not be nil") + }) + }) + } +} diff --git a/providertests/openai_responses_test.go b/providertests/openai_responses_test.go index dae04f89d2d359ffc7b7846fd5dcbdc292cd6298..d036fe607908c7082641026c969579494859000b 100644 --- a/providertests/openai_responses_test.go +++ b/providertests/openai_responses_test.go @@ -53,6 +53,14 @@ func TestOpenAIResponsesWithSummaryThinking(t *testing.T) { testThinking(t, pairs, testOpenAIResponsesThinkingWithSummaryThinking) } +func TestOpenAIResponsesObjectGeneration(t *testing.T) { + var pairs []builderPair + for _, m := range openaiTestModels { + pairs = append(pairs, builderPair{m.name, openAIReasoningBuilder(m.model), nil, nil}) + } + testObjectGeneration(t, pairs) +} + func testOpenAIResponsesThinkingWithSummaryThinking(t *testing.T, result *fantasy.AgentResult) { reasoningContentCount := 0 encryptedData := 0 diff --git a/providertests/openai_test.go b/providertests/openai_test.go index f3a62be3d760a1ecf2df3212e7c0001913605460..82a8d77e83d9af6c5b8540e763f65aec688c7351 100644 --- a/providertests/openai_test.go +++ b/providertests/openai_test.go @@ -25,6 +25,14 @@ func TestOpenAICommon(t *testing.T) { testCommon(t, pairs) } +func TestOpenAIObjectGeneration(t *testing.T) { + var pairs []builderPair + for _, m := range openaiTestModels { + pairs = append(pairs, builderPair{m.name, openAIBuilder(m.model), nil, nil}) + } + testObjectGeneration(t, pairs) +} + func openAIBuilder(model string) builderFunc { return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { provider, err := openai.New( diff --git a/providertests/openaicompat_test.go b/providertests/openaicompat_test.go index 6d90b6a523a63dddc22da275dc50d4e57b750ca6..e7191d724582c08fc0940d56a856d339a5310a46 100644 --- a/providertests/openaicompat_test.go +++ b/providertests/openaicompat_test.go @@ -23,6 +23,14 @@ func TestOpenAICompatibleCommon(t *testing.T) { }) } +func TestOpenAICompatObjectGeneration(t *testing.T) { + testObjectGeneration(t, []builderPair{ + {"xai-grok-4-fast", builderXAIGrok4Fast, nil, nil}, + {"xai-grok-code-fast", builderXAIGrokCodeFast, nil, nil}, + {"zai-glm-4.5", builderZAIGLM45, nil, nil}, + }) +} + func TestOpenAICompatibleThinking(t *testing.T) { opts := fantasy.ProviderOptions{ openaicompat.Name: &openaicompat.ProviderOptions{ diff --git a/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/complex_object.yaml b/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..129f02b51b4ddd218cf070cdb5b017d49e527136 --- /dev/null +++ b/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/complex_object.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 973 + host: "" + body: '{"max_tokens":4000,"messages":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-20250514","tool_choice":{"name":"Book","disable_parallel_tool_use":false,"type":"tool"},"tools":[{"input_schema":{"properties":{"author":{"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"name":"Book","description":"A book with title, author, genres, and publication year"}]}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Anthropic/Go 1.14.0 + url: https://api.anthropic.com/v1/messages + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: '{"model":"claude-sonnet-4-20250514","id":"msg_01UkSBWK7ReA1Jc9w3ZSKrNb","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_01C9Z3xQvtkmqxD7fyJ4BHN5","name":"Book","input":{"title":"The Lord of the Rings","author":{"name":"J.R.R. Tolkien","nationality":"British"},"genres":["Fantasy","Adventure","Epic Fantasy","High Fantasy"],"published_year":1954}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":549,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":124,"service_tier":"standard"}}' + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.668454583s diff --git a/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/complex_object_streaming.yaml b/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5e9a654ac2d2307b3884b801026aceceef2d2bb3 --- /dev/null +++ b/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/complex_object_streaming.yaml @@ -0,0 +1,152 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 987 + host: "" + body: '{"max_tokens":4000,"messages":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-20250514","tool_choice":{"name":"Book","disable_parallel_tool_use":false,"type":"tool"},"tools":[{"input_schema":{"properties":{"author":{"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"name":"Book","description":"A book with title, author, genres, and publication year"}],"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Anthropic/Go 1.14.0 + url: https://api.anthropic.com/v1/messages + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + event: message_start + data: {"type":"message_start","message":{"model":"claude-sonnet-4-20250514","id":"msg_01USjYftFnxQLCtwU6p9mdju","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":549,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":16,"service_tier":"standard"}} } + + event: content_block_start + data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01GSfr2xJn2q4zqG46GXNdxt","name":"Book","input":{}} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""} } + + event: ping + data: {"type": "ping"} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"ti"} } + + event: ping + data: {"type": "ping"} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"tle\": \"T"} } + + event: ping + data: {"type": "ping"} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"he Lord"} } + + event: ping + data: {"type": "ping"} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" of t"} } + + event: ping + data: {"type": "ping"} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"he Ring"} } + + event: ping + data: {"type": "ping"} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"s\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"author\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": {\"nam"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"e\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":":\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"J.R.R. To"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"lkien\",\"na"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"tionality\":\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"Bri"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"tish\"}"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"g"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"enre"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"s\": [\"Fanta"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"sy\",\"Adventu"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"re\",\"Epic Fa"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"nta"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"sy\",\"High "} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"Fantasy\"]"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"pub"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"lished_"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"yea"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"r\":"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" 1954}"} } + + event: content_block_stop + data: {"type":"content_block_stop","index":0} + + event: message_delta + data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":549,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":124} } + + event: message_stop + data: {"type":"message_stop" } + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 1.980122625s diff --git a/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/simple_object.yaml b/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cd685ccb68c048a7dc0d097bd459d9cf455a3b95 --- /dev/null +++ b/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/simple_object.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 637 + host: "" + body: '{"max_tokens":4000,"messages":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-20250514","tool_choice":{"name":"Person","disable_parallel_tool_use":false,"type":"tool"},"tools":[{"input_schema":{"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"name":"Person","description":"A person with name, age, and city"}]}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Anthropic/Go 1.14.0 + url: https://api.anthropic.com/v1/messages + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: '{"model":"claude-sonnet-4-20250514","id":"msg_01NeodXcmcw7q1AnbSJ8ShV4","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_019sLuNYTpv7VTTJEuGWXzki","name":"Person","input":{"name":"Alice","age":30,"city":"Paris"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":454,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":67,"service_tier":"standard"}}' + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 2.542812416s diff --git a/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/simple_object_streaming.yaml b/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cc9828a27a0a4bf58b13008fe724e8e1552e1eb6 --- /dev/null +++ b/providertests/testdata/TestAnthropicObjectGeneration/claude-sonnet-4/simple_object_streaming.yaml @@ -0,0 +1,89 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 651 + host: "" + body: '{"max_tokens":4000,"messages":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-20250514","tool_choice":{"name":"Person","disable_parallel_tool_use":false,"type":"tool"},"tools":[{"input_schema":{"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"name":"Person","description":"A person with name, age, and city"}],"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Anthropic/Go 1.14.0 + url: https://api.anthropic.com/v1/messages + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + event: message_start + data: {"type":"message_start","message":{"model":"claude-sonnet-4-20250514","id":"msg_01AihXNzoggoeqPeQuWPMYSo","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":454,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":24,"service_tier":"standard"}} } + + event: content_block_start + data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01Midg7qjzUz6pdkS8HcgRY7","name":"Person","input":{}} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""} } + + event: ping + data: {"type": "ping"} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"n"} } + + event: ping + data: {"type": "ping"} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ame\":"} } + + event: ping + data: {"type": "ping"} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" \"Alic"} } + + event: ping + data: {"type": "ping"} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"e\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"age\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": 30"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"c"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ity\": \"Pa"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ris\"}"} } + + event: content_block_stop + data: {"type":"content_block_stop","index":0 } + + event: message_delta + data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":454,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":67} } + + event: message_stop + data: {"type":"message_stop" } + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 2.144504667s diff --git a/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/complex_object.yaml b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..551687a567c9a69407b47b716dbe1322514829ae --- /dev/null +++ b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/complex_object.yaml @@ -0,0 +1,62 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 817 + host: generativelanguage.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"author":{"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"responseMimeType":"application/json"}} + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "candidates": [ + { + "content": { + "parts": [ + { + "text": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"fantasy\",\"adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}" + } + ], + "role": "model" + }, + "finishReason": "STOP", + "index": 0 + } + ], + "usageMetadata": { + "promptTokenCount": 38, + "candidatesTokenCount": 41, + "totalTokenCount": 218, + "promptTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 38 + } + ], + "thoughtsTokenCount": 139 + }, + "modelVersion": "gemini-2.5-flash", + "responseId": "stsRaZqEJ9qO28oPiaHWwQ4" + } + headers: + Content-Type: + - application/json; charset=UTF-8 + status: 200 OK + code: 200 + duration: 1.554350125s diff --git a/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/complex_object_streaming.yaml b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a9e9e05a27aeb3663a159d49b821f2567f31d84d --- /dev/null +++ b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/complex_object_streaming.yaml @@ -0,0 +1,34 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 817 + host: generativelanguage.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"author":{"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"responseMimeType":"application/json"}} + form: + alt: + - sse + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:streamGenerateContent?alt=sse + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"{\\\"author\\\":{\\\"name\\\":\\\"J.R.R. Tolkien\\\",\\\"nationality\\\":\\\"British\\\"},\\\"genres\\\":[\\\"fantasy\\\",\\\"adventure\\\"],\\\"published_year\\\":1954,\\\"title\\\":\\\"The Lord\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 38,\"candidatesTokenCount\": 37,\"totalTokenCount\": 205,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 38}],\"thoughtsTokenCount\": 130},\"modelVersion\": \"gemini-2.5-flash\",\"responseId\": \"s9sRaeWODKqYvdIP4_6V6Q8\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \" of the Rings\\\"}\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 38,\"candidatesTokenCount\": 41,\"totalTokenCount\": 209,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 38}],\"thoughtsTokenCount\": 130},\"modelVersion\": \"gemini-2.5-flash\",\"responseId\": \"s9sRaeWODKqYvdIP4_6V6Q8\"}\r\n\r\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.408184334s diff --git a/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/simple_object.yaml b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..13cc2c9e1027070f8dd98d13eac26a1dc7c89150 --- /dev/null +++ b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/simple_object.yaml @@ -0,0 +1,62 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 499 + host: generativelanguage.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"responseMimeType":"application/json"}} + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "candidates": [ + { + "content": { + "parts": [ + { + "text": "{\"age\": 30, \"city\": \"Paris\", \"name\": \"Alice\"}" + } + ], + "role": "model" + }, + "finishReason": "STOP", + "index": 0 + } + ], + "usageMetadata": { + "promptTokenCount": 20, + "candidatesTokenCount": 19, + "totalTokenCount": 127, + "promptTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 20 + } + ], + "thoughtsTokenCount": 88 + }, + "modelVersion": "gemini-2.5-flash", + "responseId": "r9sRaffqJa-jvdIPwMT46A8" + } + headers: + Content-Type: + - application/json; charset=UTF-8 + status: 200 OK + code: 200 + duration: 1.129109875s diff --git a/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/simple_object_streaming.yaml b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fddf50af755441d88db58e72372af73778efe411 --- /dev/null +++ b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-flash/simple_object_streaming.yaml @@ -0,0 +1,34 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 499 + host: generativelanguage.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"responseMimeType":"application/json"}} + form: + alt: + - sse + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:streamGenerateContent?alt=sse + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"{\\\"age\\\": 30, \\\"city\\\": \\\"Paris\\\", \\\"name\\\": \\\"Alice\\\"}\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 20,\"candidatesTokenCount\": 19,\"totalTokenCount\": 138,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 20}],\"thoughtsTokenCount\": 99},\"modelVersion\": \"gemini-2.5-flash\",\"responseId\": \"sNsRad21He_hxN8PlPed0Qs\"}\r\n\r\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.556089083s diff --git a/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/complex_object.yaml b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ea767a1ff6f0f319966074297eee1e989c72ec92 --- /dev/null +++ b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/complex_object.yaml @@ -0,0 +1,62 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 817 + host: generativelanguage.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"author":{"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"responseMimeType":"application/json"}} + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "candidates": [ + { + "content": { + "parts": [ + { + "text": "{\n \"author\": {\n \"name\": \"J.R.R. Tolkien\",\n \"nationality\": \"British\"\n },\n \"genres\": [\n \"Fantasy\",\n \"Adventure\"\n ],\n \"published_year\": 1954,\n \"title\": \"The Lord of the Rings\"\n}" + } + ], + "role": "model" + }, + "finishReason": "STOP", + "index": 0 + } + ], + "usageMetadata": { + "promptTokenCount": 38, + "candidatesTokenCount": 78, + "totalTokenCount": 352, + "promptTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 38 + } + ], + "thoughtsTokenCount": 236 + }, + "modelVersion": "gemini-2.5-pro", + "responseId": "v9sRad3jAc_7xs0P77zDwQE" + } + headers: + Content-Type: + - application/json; charset=UTF-8 + status: 200 OK + code: 200 + duration: 4.027611625s diff --git a/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/complex_object_streaming.yaml b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9adeb839977f64d2be3beee0791aae3b6b5efb7a --- /dev/null +++ b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/complex_object_streaming.yaml @@ -0,0 +1,34 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 817 + host: generativelanguage.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"author":{"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"responseMimeType":"application/json"}} + form: + alt: + - sse + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:streamGenerateContent?alt=sse + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"{\\n \\\"author\\\": {\\n \\\"name\\\": \\\"J\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 38,\"candidatesTokenCount\": 14,\"totalTokenCount\": 419,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 38}],\"thoughtsTokenCount\": 367},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"wNsRadCzOKX6vdIPva2A4Qs\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \".R.R. Tolkien\\\",\\n \\\"nationality\\\": \\\"British\\\"\\n },\\n \\\"genres\\\": [\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 38,\"candidatesTokenCount\": 38,\"totalTokenCount\": 443,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 38}],\"thoughtsTokenCount\": 367},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"wNsRadCzOKX6vdIPva2A4Qs\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"\\n \\\"fantasy\\\",\\n \\\"adventure\\\"\\n ],\\n \\\"published_year\\\": 195\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 38,\"candidatesTokenCount\": 60,\"totalTokenCount\": 465,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 38}],\"thoughtsTokenCount\": 367},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"wNsRadCzOKX6vdIPva2A4Qs\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"4,\\n \\\"title\\\": \\\"The Lord of the Rings\\\"\\n}\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 38,\"candidatesTokenCount\": 76,\"totalTokenCount\": 481,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 38}],\"thoughtsTokenCount\": 367},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"wNsRadCzOKX6vdIPva2A4Qs\"}\r\n\r\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 4.864529167s diff --git a/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/simple_object.yaml b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d130b2eb4f6f179487b6e625c8dfa63b3af4cdc6 --- /dev/null +++ b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/simple_object.yaml @@ -0,0 +1,62 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 499 + host: generativelanguage.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"responseMimeType":"application/json"}} + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "candidates": [ + { + "content": { + "parts": [ + { + "text": "{\n \"age\": 30,\n \"city\": \"Paris\",\n \"name\": \"Alice\"\n}" + } + ], + "role": "model" + }, + "finishReason": "STOP", + "index": 0 + } + ], + "usageMetadata": { + "promptTokenCount": 20, + "candidatesTokenCount": 28, + "totalTokenCount": 109, + "promptTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 20 + } + ], + "thoughtsTokenCount": 61 + }, + "modelVersion": "gemini-2.5-pro", + "responseId": "ttsRacXtC86PvdIP1Zjy8AE" + } + headers: + Content-Type: + - application/json; charset=UTF-8 + status: 200 OK + code: 200 + duration: 2.077859292s diff --git a/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/simple_object_streaming.yaml b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..df99b2303543aea48320b4701e08b3c1b5dc6dae --- /dev/null +++ b/providertests/testdata/TestGoogleObjectGeneration/gemini-2.5-pro/simple_object_streaming.yaml @@ -0,0 +1,34 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 499 + host: generativelanguage.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"responseMimeType":"application/json"}} + form: + alt: + - sse + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:streamGenerateContent?alt=sse + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"{\\n \\\"age\\\": 30,\\n \\\"city\\\":\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 20,\"candidatesTokenCount\": 15,\"totalTokenCount\": 189,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 20}],\"thoughtsTokenCount\": 154},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"udsRabusHJH_xN8PppGAiQ8\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \" \\\"Paris\\\",\\n \\\"name\\\": \\\"Alice\\\"\\n}\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 20,\"candidatesTokenCount\": 28,\"totalTokenCount\": 202,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 20}],\"thoughtsTokenCount\": 154},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"udsRabusHJH_xN8PppGAiQ8\"}\r\n\r\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 4.791360833s diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/complex_object.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2c5dcb93319cccfeb7152d773dee7170c6109e26 --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/complex_object.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 978 + host: "" + body: '{"max_tokens":4000,"messages":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"text"}],"role":"user"}],"tool_choice":{"name":"Book","disable_parallel_tool_use":false,"type":"tool"},"tools":[{"input_schema":{"properties":{"author":{"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"name":"Book","description":"A book with title, author, genres, and publication year"}],"anthropic_version":"vertex-2023-10-16"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Anthropic/Go 1.14.0 + url: https://us-east5-aiplatform.googleapis.com/v1/projects/fantasy-playground-472418/locations/us-east5/publishers/anthropic/models/claude-3-7-sonnet@20250219:rawPredict + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: '{"model":"claude-3-7-sonnet-20250219","id":"msg_vrtx_01UAjss8kpXQotMqUWtjP8Vd","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_vrtx_01UqmeUWH5fBpvtZE1jx4knQ","name":"Book","input":{"title":"The Lord of the Rings","author":{"name":"J.R.R. Tolkien","nationality":"British"},"genres":["Fantasy","Adventure","Epic","High fantasy"],"published_year":1954}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":548,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":132}}' + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 2.867918541s diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/complex_object_streaming.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f4ef60e3ae49ff353c32d55933e4fbed8c207f18 --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/complex_object_streaming.yaml @@ -0,0 +1,132 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 992 + host: "" + body: '{"max_tokens":4000,"messages":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"text"}],"role":"user"}],"tool_choice":{"name":"Book","disable_parallel_tool_use":false,"type":"tool"},"tools":[{"input_schema":{"properties":{"author":{"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"name":"Book","description":"A book with title, author, genres, and publication year"}],"stream":true,"anthropic_version":"vertex-2023-10-16"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Anthropic/Go 1.14.0 + url: https://us-east5-aiplatform.googleapis.com/v1/projects/fantasy-playground-472418/locations/us-east5/publishers/anthropic/models/claude-3-7-sonnet@20250219:streamRawPredict + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: |+ + event: message_start + data: {"type":"message_start","message":{"model":"claude-3-7-sonnet-20250219","id":"msg_vrtx_01JiiYx8JQZEW8hLLjVmFa6C","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":548,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":15}} } + + event: ping + data: {"type": "ping"} + + event: content_block_start + data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_vrtx_01TpniKAvXfPprSuYGgYUUSx","name":"Book","input":{}} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"title\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": \"T"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"he "} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"Lord "} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"of the Rings"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"au"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"thor\": {\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"name\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":":\"J.R"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":".R. Tolkien"}} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\","} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\"nationalit"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"y\":\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"British\"}"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"genre"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"s\": [\"Fantas"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"y\",\"A"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"dventure\",\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"Epic\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"]"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"publishe"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"d_yea"}} + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"r\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": 195"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"4}"} } + + event: content_block_stop + data: {"type":"content_block_stop","index":0 } + + event: message_delta + data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"output_tokens":119} } + + event: message_stop + data: {"type":"message_stop" } + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 952.687083ms diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/simple_object.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..edef4a4e3a22c470317dbc8df9b070c7dde1a2c9 --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/simple_object.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 642 + host: "" + body: '{"max_tokens":4000,"messages":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"text"}],"role":"user"}],"tool_choice":{"name":"Person","disable_parallel_tool_use":false,"type":"tool"},"tools":[{"input_schema":{"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"name":"Person","description":"A person with name, age, and city"}],"anthropic_version":"vertex-2023-10-16"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Anthropic/Go 1.14.0 + url: https://us-east5-aiplatform.googleapis.com/v1/projects/fantasy-playground-472418/locations/us-east5/publishers/anthropic/models/claude-3-7-sonnet@20250219:rawPredict + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: '{"model":"claude-3-7-sonnet-20250219","id":"msg_vrtx_014VLsXeDXtuC84Nx9V4pBdW","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_vrtx_01TaBaQU6GZpxjApVgvzLfev","name":"Person","input":{"name":"Alice","age":30,"city":"Paris"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":453,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":67}}' + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.818802583s diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/simple_object_streaming.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..86dfcc838cafd5942bc7a26748781a683920ebe7 --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-claude-3-7-sonnet/simple_object_streaming.yaml @@ -0,0 +1,81 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 656 + host: "" + body: '{"max_tokens":4000,"messages":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"text"}],"role":"user"}],"tool_choice":{"name":"Person","disable_parallel_tool_use":false,"type":"tool"},"tools":[{"input_schema":{"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"name":"Person","description":"A person with name, age, and city"}],"stream":true,"anthropic_version":"vertex-2023-10-16"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Anthropic/Go 1.14.0 + url: https://us-east5-aiplatform.googleapis.com/v1/projects/fantasy-playground-472418/locations/us-east5/publishers/anthropic/models/claude-3-7-sonnet@20250219:streamRawPredict + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: |+ + event: message_start + data: {"type":"message_start","message":{"model":"claude-3-7-sonnet-20250219","id":"msg_vrtx_01XdrdQzn2BFw8pob1JJCRnX","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":453,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":11}}} + + event: ping + data: {"type": "ping"} + + event: content_block_start + data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_vrtx_01Y5BDgK5DcxEvwThJWL5Pix","name":"Person","input":{}} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"name\":"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" \"Alice\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"age\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": 30"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"city\""} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": \"P"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ari"} } + + event: content_block_delta + data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"s\"}"} } + + event: content_block_stop + data: {"type":"content_block_stop","index":0 } + + event: message_delta + data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"output_tokens":67} } + + event: message_stop + data: {"type":"message_stop" } + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 1.471510916s diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/complex_object.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2f6f90712175a1b8f64d2f475afaa790f796fbbf --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/complex_object.yaml @@ -0,0 +1,70 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 817 + host: us-east5-aiplatform.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"author":{"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"responseMimeType":"application/json"}} + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-flash:generateContent + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "candidates": [ + { + "content": { + "role": "model", + "parts": [ + { + "text": "{\n \"title\": \"The Lord of the Rings\",\n \"author\": {\n \"name\": \"J.R.R. Tolkien\",\n \"nationality\": \"British\"\n },\n \"genres\": [\n \"fantasy\",\n \"adventure\"\n ],\n \"published_year\": 1954\n}" + } + ] + }, + "finishReason": "STOP", + "avgLogprobs": -0.45047834322050018 + } + ], + "usageMetadata": { + "promptTokenCount": 37, + "candidatesTokenCount": 77, + "totalTokenCount": 246, + "trafficType": "ON_DEMAND", + "promptTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 37 + } + ], + "candidatesTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 77 + } + ], + "thoughtsTokenCount": 132 + }, + "modelVersion": "gemini-2.5-flash", + "createTime": "2025-11-10T12:36:25.122147Z", + "responseId": "SdwRaaO6B9fzptQPk5W9sQ8" + } + headers: + Content-Type: + - application/json; charset=UTF-8 + status: 200 OK + code: 200 + duration: 1.655407625s diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/complex_object_streaming.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..696814b863d59ff4db6476bffd4f3fc7cb9e49c1 --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/complex_object_streaming.yaml @@ -0,0 +1,34 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 817 + host: us-east5-aiplatform.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"author":{"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"responseMimeType":"application/json"}} + form: + alt: + - sse + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-flash:streamGenerateContent?alt=sse + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: "data: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\": [{\"text\": \"{\\n \\\"title\\\": \\\"The Lord of the Rings\\\",\\n \\\"author\\\": {\\n \"}]}}],\"usageMetadata\": {\"trafficType\": \"ON_DEMAND\"},\"modelVersion\": \"gemini-2.5-flash\",\"createTime\": \"2025-11-10T12:36:26.936156Z\",\"responseId\": \"StwRadyROZ3qptQPg8OiiQU\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\": [{\"text\": \"\\\"name\\\": \\\"J.R.R. Tolkien\\\",\\n \\\"nationality\\\": \\\"British\\\"\\n },\\n \\\"genres\\\": [\\n \\\"fantasy\\\",\\n \\\"adventure\\\"\\n ],\\n \\\"published_year\"}]}}],\"usageMetadata\": {\"trafficType\": \"ON_DEMAND\"},\"modelVersion\": \"gemini-2.5-flash\",\"createTime\": \"2025-11-10T12:36:26.936156Z\",\"responseId\": \"StwRadyROZ3qptQPg8OiiQU\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\": [{\"text\": \"\\\": 1954\\n}\"}]},\"finishReason\": \"STOP\"}],\"usageMetadata\": {\"promptTokenCount\": 37,\"candidatesTokenCount\": 77,\"totalTokenCount\": 165,\"trafficType\": \"ON_DEMAND\",\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 37}],\"candidatesTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 77}],\"thoughtsTokenCount\": 51},\"modelVersion\": \"gemini-2.5-flash\",\"createTime\": \"2025-11-10T12:36:26.936156Z\",\"responseId\": \"StwRadyROZ3qptQPg8OiiQU\"}\r\n\r\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 997.700625ms diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/simple_object.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ad3fdc501570d30e9d80bc9ec2b26ebc5746841e --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/simple_object.yaml @@ -0,0 +1,70 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 499 + host: us-east5-aiplatform.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"responseMimeType":"application/json"}} + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-flash:generateContent + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "candidates": [ + { + "content": { + "role": "model", + "parts": [ + { + "text": "{\"name\": \"Alice\", \"age\": 30, \"city\": \"Paris\"}" + } + ] + }, + "finishReason": "STOP", + "avgLogprobs": -0.57498173964651011 + } + ], + "usageMetadata": { + "promptTokenCount": 19, + "candidatesTokenCount": 19, + "totalTokenCount": 83, + "trafficType": "ON_DEMAND", + "promptTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 19 + } + ], + "candidatesTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 19 + } + ], + "thoughtsTokenCount": 45 + }, + "modelVersion": "gemini-2.5-flash", + "createTime": "2025-11-10T12:36:22.649878Z", + "responseId": "RtwRaZbVJ-zzptQPvOrxqQ8" + } + headers: + Content-Type: + - application/json; charset=UTF-8 + status: 200 OK + code: 200 + duration: 1.886921167s diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/simple_object_streaming.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9f21d89812179e53c0aab3026959657230e7e4b7 --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-flash/simple_object_streaming.yaml @@ -0,0 +1,34 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 499 + host: us-east5-aiplatform.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"responseMimeType":"application/json"}} + form: + alt: + - sse + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-flash:streamGenerateContent?alt=sse + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: "data: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\": [{\"text\": \"{\\n \\\"name\\\": \\\"Alice\\\",\\n \\\"age\\\": 30,\\n \\\"city\\\": \\\"Paris\\\"\\n}\"}]},\"finishReason\": \"STOP\"}],\"usageMetadata\": {\"promptTokenCount\": 19,\"candidatesTokenCount\": 28,\"totalTokenCount\": 124,\"trafficType\": \"ON_DEMAND\",\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 19}],\"candidatesTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 28}],\"thoughtsTokenCount\": 77},\"modelVersion\": \"gemini-2.5-flash\",\"createTime\": \"2025-11-10T12:36:23.898113Z\",\"responseId\": \"R9wRacHoNpyYw8cPz9-4-QY\"}\r\n\r\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.064075083s diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/complex_object.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..13a19b28412599d12d887853d796432d903ba999 --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/complex_object.yaml @@ -0,0 +1,70 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 817 + host: us-east5-aiplatform.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"author":{"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"responseMimeType":"application/json"}} + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-pro:generateContent + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "candidates": [ + { + "content": { + "role": "model", + "parts": [ + { + "text": "{\n \"title\": \"The Lord of the Rings\",\n \"author\": {\n \"name\": \"J.R.R. Tolkien\",\n \"nationality\": \"British\"\n },\n \"genres\": [\n \"Fantasy\",\n \"Adventure\"\n ],\n \"published_year\": 1954\n}" + } + ] + }, + "finishReason": "STOP", + "avgLogprobs": -0.67830568784243106 + } + ], + "usageMetadata": { + "promptTokenCount": 37, + "candidatesTokenCount": 77, + "totalTokenCount": 514, + "trafficType": "ON_DEMAND", + "promptTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 37 + } + ], + "candidatesTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 77 + } + ], + "thoughtsTokenCount": 400 + }, + "modelVersion": "gemini-2.5-pro", + "createTime": "2025-11-10T12:36:32.031653Z", + "responseId": "UNwRaaX3AZ3qptQPg8OiiQU" + } + headers: + Content-Type: + - application/json; charset=UTF-8 + status: 200 OK + code: 200 + duration: 5.257772958s diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/complex_object_streaming.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cbbd24b4605a8f8446e4f5229ed937791e1f844b --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/complex_object_streaming.yaml @@ -0,0 +1,34 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 817 + host: us-east5-aiplatform.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"author":{"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"responseMimeType":"application/json"}} + form: + alt: + - sse + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-pro:streamGenerateContent?alt=sse + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: "data: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\": [{\"text\": \"{\\n \\\"title\\\": \\\"The Lord of the Rings\\\",\\n \\\"author\\\": {\\n \\\"name\\\": \\\"J.R.R. Tolkien\\\",\\n \\\"nationality\\\": \\\"British\\\"\\n },\\n \\\"genres\\\": [\\n \\\"Fantasy\"}]}}],\"usageMetadata\": {\"trafficType\": \"ON_DEMAND\"},\"modelVersion\": \"gemini-2.5-pro\",\"createTime\": \"2025-11-10T12:36:37.457838Z\",\"responseId\": \"VdwRae74G-zzptQPvOrxqQ8\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\": [{\"text\": \"\\\",\\n \\\"Adventure\\\"\\n ],\\n \\\"published_year\\\": 1954\\n}\"}]},\"finishReason\": \"STOP\"}],\"usageMetadata\": {\"promptTokenCount\": 37,\"candidatesTokenCount\": 77,\"totalTokenCount\": 467,\"trafficType\": \"ON_DEMAND\",\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 37}],\"candidatesTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 77}],\"thoughtsTokenCount\": 353},\"modelVersion\": \"gemini-2.5-pro\",\"createTime\": \"2025-11-10T12:36:37.457838Z\",\"responseId\": \"VdwRae74G-zzptQPvOrxqQ8\"}\r\n\r\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 3.749448334s diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/simple_object.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c13ec37b7d76a5dcbe78c30af22ea5fe4829a530 --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/simple_object.yaml @@ -0,0 +1,70 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 499 + host: us-east5-aiplatform.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"responseMimeType":"application/json"}} + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-pro:generateContent + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "candidates": [ + { + "content": { + "role": "model", + "parts": [ + { + "text": "{\n \"name\": \"Alice\",\n \"age\": 30,\n \"city\": \"Paris\"\n}" + } + ] + }, + "finishReason": "STOP", + "avgLogprobs": -0.58463580267769955 + } + ], + "usageMetadata": { + "promptTokenCount": 19, + "candidatesTokenCount": 28, + "totalTokenCount": 102, + "trafficType": "ON_DEMAND", + "promptTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 19 + } + ], + "candidatesTokensDetails": [ + { + "modality": "TEXT", + "tokenCount": 28 + } + ], + "thoughtsTokenCount": 55 + }, + "modelVersion": "gemini-2.5-pro", + "createTime": "2025-11-10T12:36:28.270555Z", + "responseId": "TNwRadvBENLK5OMPoK7I0AI" + } + headers: + Content-Type: + - application/json; charset=UTF-8 + status: 200 OK + code: 200 + duration: 1.459651375s diff --git a/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/simple_object_streaming.yaml b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5fdc60544e7c023cd401561300478bd51221812d --- /dev/null +++ b/providertests/testdata/TestGoogleVertexObjectGeneration/vertex-gemini-2-5-pro/simple_object_streaming.yaml @@ -0,0 +1,34 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 499 + host: us-east5-aiplatform.googleapis.com + body: | + {"contents":[{"parts":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"responseMimeType":"application/json"}} + form: + alt: + - sse + headers: + Content-Type: + - application/json + User-Agent: + - google-genai-sdk/1.34.0 gl-go/go1.25.0 + url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-pro:streamGenerateContent?alt=sse + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: "data: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\": [{\"text\": \"{\\n \\\"name\\\": \\\"Alice\\\",\\n \\\"age\\\": 30,\\n \\\"city\\\": \\\"Paris\\\"\\n}\"}]},\"finishReason\": \"STOP\"}],\"usageMetadata\": {\"promptTokenCount\": 19,\"candidatesTokenCount\": 28,\"totalTokenCount\": 209,\"trafficType\": \"ON_DEMAND\",\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 19}],\"candidatesTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 28}],\"thoughtsTokenCount\": 162},\"modelVersion\": \"gemini-2.5-pro\",\"createTime\": \"2025-11-10T12:36:29.889263Z\",\"responseId\": \"TdwRaa-jNvWAptQPkJGMwQ8\"}\r\n\r\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.9909835s diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/complex_object.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4f359150012da77bf7eec85fcbfa3098632fce48 --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/complex_object.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 962 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"grok-4-fast","max_tokens":4000,"tool_choice":{"function":{"name":"Book"},"type":"function"},"tools":[{"function":{"name":"Book","strict":false,"description":"A book with title, author, genres, and publication year","parameters":{"properties":{"author":{"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"function"}]}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.x.ai/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: '{"id":"c507c7e0-9670-a02e-8c70-1df65c243406","object":"chat.completion","created":1762637614,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_93127190","function":{"name":"Book","arguments":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"fantasy\",\"adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":468,"completion_tokens":83,"total_tokens":1122,"prompt_tokens_details":{"text_tokens":468,"audio_tokens":0,"image_tokens":0,"cached_tokens":305},"completion_tokens_details":{"reasoning_tokens":571,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"}' + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.442305458s diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/complex_object_streaming.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..93d28c0b053fe06941769bebd60645dfa8ad986c --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/complex_object_streaming.yaml @@ -0,0 +1,1158 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1016 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"grok-4-fast","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":{"function":{"name":"Book"},"type":"function"},"tools":[{"function":{"name":"Book","strict":false,"description":"A book with title, author, genres, and publication year","parameters":{"properties":{"author":{"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"function"}],"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.x.ai/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637618,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637619,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637620,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637621,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_96704413","function":{"name":"Book","arguments":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"fantasy\",\"adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637621,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"7737a2b5-8585-c605-a8bb-3007b764dbfa","object":"chat.completion.chunk","created":1762637621,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":468,"completion_tokens":79,"total_tokens":1106,"prompt_tokens_details":{"text_tokens":468,"audio_tokens":0,"image_tokens":0,"cached_tokens":305},"completion_tokens_details":{"reasoning_tokens":559,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 168.769958ms diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/simple_object.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7e8648974e4afa1863f97b6fc5171bc63b939275 --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/simple_object.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 626 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"grok-4-fast","max_tokens":4000,"tool_choice":{"function":{"name":"Person"},"type":"function"},"tools":[{"function":{"name":"Person","strict":false,"description":"A person with name, age, and city","parameters":{"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"function"}]}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.x.ai/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: '{"id":"c741f0c0-b3ad-605e-94e9-aa17f8ad0f1f","object":"chat.completion","created":1762637610,"model":"grok-4-fast-reasoning","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_85975414","function":{"name":"Person","arguments":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":401,"completion_tokens":46,"total_tokens":787,"prompt_tokens_details":{"text_tokens":401,"audio_tokens":0,"image_tokens":0,"cached_tokens":305},"completion_tokens_details":{"reasoning_tokens":340,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"}' + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 2.228575458s diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/simple_object_streaming.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..80ef0a1830ba2caaa97bb80132ac258d2a264a25 --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-4-fast/simple_object_streaming.yaml @@ -0,0 +1,378 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 680 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"grok-4-fast","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":{"function":{"name":"Person"},"type":"function"},"tools":[{"function":{"name":"Person","strict":false,"description":"A person with name, age, and city","parameters":{"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"function"}],"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.x.ai/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"role":"assistant"}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637613,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637614,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_85608889","function":{"name":"Person","arguments":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637614,"model":"grok-4-fast-reasoning","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_bfbe7bd0a2"} + + data: {"id":"a6a4a8e9-1f95-504d-3f2c-0f106447d2d2","object":"chat.completion.chunk","created":1762637614,"model":"grok-4-fast-reasoning","choices":[],"usage":{"prompt_tokens":401,"completion_tokens":46,"total_tokens":616,"prompt_tokens_details":{"text_tokens":401,"audio_tokens":0,"image_tokens":0,"cached_tokens":400},"completion_tokens_details":{"reasoning_tokens":169,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_bfbe7bd0a2"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 176.963166ms diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/complex_object.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..361b9a00ee2ac289131f64c34f3efd68e4587e0a --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/complex_object.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 967 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"grok-code-fast-1","max_tokens":4000,"tool_choice":{"function":{"name":"Book"},"type":"function"},"tools":[{"function":{"name":"Book","strict":false,"description":"A book with title, author, genres, and publication year","parameters":{"properties":{"author":{"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"function"}]}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.x.ai/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: '{"id":"2537f822-595e-1e8e-fe59-59c9761c15a1","object":"chat.completion","created":1762637624,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_05092142","function":{"name":"Book","arguments":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"fantasy\",\"adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":496,"completion_tokens":81,"total_tokens":820,"prompt_tokens_details":{"text_tokens":496,"audio_tokens":0,"image_tokens":0,"cached_tokens":320},"completion_tokens_details":{"reasoning_tokens":243,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 2.213765834s diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/complex_object_streaming.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ac074e4c28f247f57f71f376ea2255af1a8d5812 --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/complex_object_streaming.yaml @@ -0,0 +1,320 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1021 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"grok-code-fast-1","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":{"function":{"name":"Book"},"type":"function"},"tools":[{"function":{"name":"Book","strict":false,"description":"A book with title, author, genres, and publication year","parameters":{"properties":{"author":{"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"function"}],"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.x.ai/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"The","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" asked"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" generate"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" about"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" '"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"The"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Lord"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" of"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" the"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Rings"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"'"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" by"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" J"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".R"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".R"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Tolkien"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" with"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" genres"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" fantasy"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" adventure"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" publication"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" year"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"195"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"4"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637626,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_07349906","function":{"name":"Book","arguments":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"fantasy\",\"adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"821dc033-d41a-abe2-4f7a-61da882f43b8","object":"chat.completion.chunk","created":1762637627,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":496,"completion_tokens":77,"total_tokens":713,"prompt_tokens_details":{"text_tokens":496,"audio_tokens":0,"image_tokens":0,"cached_tokens":448},"completion_tokens_details":{"reasoning_tokens":140,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 391.881125ms diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/simple_object.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1520ab859d96a5f5249262163fdc6d55a1116ecc --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/simple_object.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 631 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"grok-code-fast-1","max_tokens":4000,"tool_choice":{"function":{"name":"Person"},"type":"function"},"tools":[{"function":{"name":"Person","strict":false,"description":"A person with name, age, and city","parameters":{"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"function"}]}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.x.ai/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: '{"id":"8d3d6258-cbe1-f871-55c0-32bd3487f2d7","object":"chat.completion","created":1762637621,"model":"grok-code-fast-1","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_38033184","function":{"name":"Person","arguments":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"},"type":"function"}],"refusal":null},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":429,"completion_tokens":44,"total_tokens":630,"prompt_tokens_details":{"text_tokens":429,"audio_tokens":0,"image_tokens":0,"cached_tokens":320},"completion_tokens_details":{"reasoning_tokens":157,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"}' + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.615676541s diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/simple_object_streaming.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4ac46828931d2b9752d9ad19b3a56915fef9c938 --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/xai-grok-code-fast/simple_object_streaming.yaml @@ -0,0 +1,338 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 685 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"grok-code-fast-1","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":{"function":{"name":"Person"},"type":"function"},"tools":[{"function":{"name":"Person","strict":false,"description":"A person with name, age, and city","parameters":{"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"function"}],"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.x.ai/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"The","role":"assistant"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" user"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" asked"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" to"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" generate"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" information"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" about"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" person"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" named"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Alice"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" "}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"30"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" years"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" old"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" living"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" in"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" Paris"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"."}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" There's"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" a"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" tool"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" called"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" \""}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"Person"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\""}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" that"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" matches"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" this"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" exactly"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":":"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" it"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" has"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" name"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" age"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":","}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" and"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":" city"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":".\n"}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_71440968","function":{"name":"Person","arguments":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"},"index":0,"type":"function"}]}}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[{"index":0,"delta":{"reasoning_content":"\n\n## Investigating user request \n- The user asked for information about Alice, a 30-year-old living in Paris."},"finish_reason":"tool_calls"}],"system_fingerprint":"fp_10f00c862d"} + + data: {"id":"8887124f-28ef-3f97-76c9-b348294a5bd5","object":"chat.completion.chunk","created":1762637623,"model":"grok-code-fast-1","choices":[],"usage":{"prompt_tokens":429,"completion_tokens":44,"total_tokens":622,"prompt_tokens_details":{"text_tokens":429,"audio_tokens":0,"image_tokens":0,"cached_tokens":384},"completion_tokens_details":{"reasoning_tokens":149,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"num_sources_used":0},"system_fingerprint":"fp_10f00c862d"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 244.686625ms diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/complex_object.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..62a93ca212988bc80f12926af1b2df8606403989 --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/complex_object.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 958 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"glm-4.5","max_tokens":4000,"tool_choice":{"function":{"name":"Book"},"type":"function"},"tools":[{"function":{"name":"Book","strict":false,"description":"A book with title, author, genres, and publication year","parameters":{"properties":{"author":{"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"function"}]}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.z.ai/api/coding/paas/v4/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"","reasoning_content":"\nThe user is asking me to generate information about \"The Lord of the Rings\" book. They''ve provided specific details:\n- Title: \"The Lord of the Rings\"\n- Author: J.R.R. Tolkien \n- Genres: fantasy and adventure\n- Publication year: 1954\n\nI need to use the Book function to create this information. Let me check the required parameters:\n- title: \"The Lord of the Rings\" ✓\n- author: This needs to be an object with name and nationality. The user provided \"J.R.R. Tolkien\" as the name, but didn''t specify nationality. However, I know Tolkien was British, so I should include that.\n- genres: [\"fantasy\", \"adventure\"] ✓\n- published_year: 1954 ✓\n\nFor the author parameter, I need to create an object with:\n- name: \"J.R.R. Tolkien\"\n- nationality: I should use \"British\" as Tolkien was from the UK\n\nLet me make the function call.","role":"assistant","tool_calls":[{"function":{"arguments":"{\"author\":{\"name\": \"J.R.R. Tolkien\", \"nationality\": \"British\"},\"genres\":[\"fantasy\", \"adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}","name":"Book"},"id":"call_-8178161609897772812","index":0,"type":"function"}]}}],"created":1762637648,"id":"20251109053400036d2d4153bd41bf","model":"glm-4.5","request_id":"20251109053400036d2d4153bd41bf","usage":{"completion_tokens":275,"prompt_tokens":317,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":592}}' + headers: + Content-Type: + - application/json; charset=UTF-8 + status: 200 OK + code: 200 + duration: 8.903275792s diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/complex_object_streaming.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5f73fae91a9700cf6f1be48a789003f7b7d5f678 --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/complex_object_streaming.yaml @@ -0,0 +1,446 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1012 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"glm-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":{"function":{"name":"Book"},"type":"function"},"tools":[{"function":{"name":"Book","strict":false,"description":"A book with title, author, genres, and publication year","parameters":{"properties":{"author":{"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"function"}],"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.z.ai/api/coding/paas/v4/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" generate"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" information"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" about"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Lord"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" of"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Rings"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" book"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" by"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" J"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".R"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".R"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Tolkien"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" They"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'ve"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provided"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" specific"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" details"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Title"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Lord"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" of"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Rings"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Author"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" J"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".R"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".R"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Tolkien"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Gen"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"res"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" fantasy"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" adventure"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Publication"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" year"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"195"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"4"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" need"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Book"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" create"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" information"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Let"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" check"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" required"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameters"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" title"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Lord"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" of"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Rings"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ✓"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" author"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" This"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" needs"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" be"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" an"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" object"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" name"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" nationality"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provided"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"J"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".R"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".R"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Tolkien"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" as"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" name"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" but"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" didn"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'t"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" specify"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" nationality"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" reasonable"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" nationality"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Tolkien"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" -"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" he"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" was"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" British"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"English"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" genres"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" [\""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"fant"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"asy"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\","}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"ad"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"venture"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"]"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ✓"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" published"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"_year"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"195"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"4"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ✓"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n\n"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"For"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" author"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" need"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" create"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" an"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" object"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" name"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"J"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".R"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".R"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Tolkien"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" nationality"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Tolkien"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" was"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" British"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" so"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'ll"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"British"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" as"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" nationality"}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_94b356a0eb5f46da8edc2ac4","index":0,"type":"function","function":{"name":"Book","arguments":"{\"author\":{\"name\": \"J.R.R. Tolkien\", \"nationality\": \"British\"},\"genres\":[\"fantasy\", \"adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}}]}}]} + + data: {"id":"202511090534097e2c534f7c00470a","created":1762637649,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":317,"completion_tokens":272,"total_tokens":589,"prompt_tokens_details":{"cached_tokens":316}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream;charset=UTF-8 + status: 200 OK + code: 200 + duration: 650.778291ms diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/simple_object.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2cb27dfed8186c00d1fa04d6062c65d0ed92114e --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/simple_object.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 622 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"glm-4.5","max_tokens":4000,"tool_choice":{"function":{"name":"Person"},"type":"function"},"tools":[{"function":{"name":"Person","strict":false,"description":"A person with name, age, and city","parameters":{"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"function"}]}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.z.ai/api/coding/paas/v4/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"","reasoning_content":"\nThe user is asking me to generate information about a person named Alice who is 30 years old and lives in Paris. Looking at the available function, I have a \"Person\" function that takes three required parameters:\n- name: \"Alice\" \n- age: 30\n- city: \"Paris\"\n\nAll the required parameters are provided, so I can call this function.","role":"assistant","tool_calls":[{"function":{"arguments":"{\"age\": 30, \"city\": \"Paris\", \"name\": \"Alice\"}","name":"Person"},"id":"call_-8178200539482324764","index":0,"type":"function"}]}}],"created":1762637635,"id":"2025110905335254041e69de3b448e","model":"glm-4.5","request_id":"2025110905335254041e69de3b448e","usage":{"completion_tokens":121,"prompt_tokens":230,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":351}}' + headers: + Content-Type: + - application/json; charset=UTF-8 + status: 200 OK + code: 200 + duration: 6.174196125s diff --git a/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/simple_object_streaming.yaml b/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8e6668ce2c18b2db2f93599fbdbe76176fa91930 --- /dev/null +++ b/providertests/testdata/TestOpenAICompatObjectGeneration/zai-glm-4.5/simple_object_streaming.yaml @@ -0,0 +1,200 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 676 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"glm-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":{"function":{"name":"Person"},"type":"function"},"tools":[{"function":{"name":"Person","strict":false,"description":"A person with name, age, and city","parameters":{"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"function"}],"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.z.ai/api/coding/paas/v4/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" generate"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" information"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" about"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" person"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" specific"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" details"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Name"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Alice"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Age"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"30"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" City"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Paris"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n\n"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" have"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Person"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" available"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" that"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" takes"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" these"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" exact"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameters"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" name"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"required"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"):"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Alice"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"\n"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" age"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"required"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"):"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":" "}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"30"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning_content":"\n"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" city"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"required"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"):"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Paris"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"\n\n"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"All"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" required"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameters"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" are"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provided"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" so"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" can"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" make"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" function"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" call"}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_11f61396a06b43ebb9ab7992","index":0,"type":"function","function":{"name":"Person","arguments":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}}]}}]} + + data: {"id":"2025110905335643ffc6855fee49b2","created":1762637636,"model":"glm-4.5","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":230,"completion_tokens":112,"total_tokens":342,"prompt_tokens_details":{"cached_tokens":43}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream;charset=UTF-8 + status: 200 OK + code: 200 + duration: 1.864133208s diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/complex_object.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9470db3d95790c0665b6401394f658fdb5e20f22 --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/complex_object.yaml @@ -0,0 +1,69 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 968 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"gpt-4o-mini","max_tokens":4000,"response_format":{"json_schema":{"name":"Book","strict":true,"description":"A book with title, author, genres, and publication year","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"json_schema"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "id": "chatcmpl-CZkh7y0v50HiK3bHkckDQM27mAxaF", + "object": "chat.completion", + "created": 1762637009, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\",\"High Fantasy\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}", + "refusal": null, + "annotations": [] + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 160, + "completion_tokens": 43, + "total_tokens": 203, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "service_tier": "default", + "system_fingerprint": "fp_560af6e559" + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.814804666s diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/complex_object_streaming.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b3f826684e20d513006970ef2210d384a8164a56 --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/complex_object_streaming.yaml @@ -0,0 +1,126 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1022 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"gpt-4o-mini","max_tokens":4000,"stream_options":{"include_usage":true},"response_format":{"json_schema":{"name":"Book","strict":true,"description":"A book with title, author, genres, and publication year","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"json_schema"},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"EoocpAT2f"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"{\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4WcRrCy6"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"author"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"c9snD"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\":{\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cfO71"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"name"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"R0natd4"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TfZHov"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"J"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"o1EOEur9HR"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":".R"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"HoTfqDfrp"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":".R"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6Zgemp56q"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Lu4Li3pC49"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" Tolkien"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ubO"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KEepu5"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"national"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"A2p"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"ity"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"xPvO5yWm"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"EbLjkP"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"British"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"BxsD"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"DLGVoo4R"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"hnXwwj8X"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"genres"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"gEVWT"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\":[\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"XJ409"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"Fantasy"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"eeqV"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"PI6dT4"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"Adventure"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VE"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"CHOoeY"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"Epic"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"GNkrW3W"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"96yoKZ"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"High"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"3DHitkZ"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" Fantasy"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"12y"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\"],"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"75v0KEB"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"48pugM49v"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"published"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"oe"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"_year"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"mT79gF"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\":"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4Uj7yFLo"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"195"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Ir9ny27F"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"HgJ2OAk2Wf"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"lspW3jd3"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"title"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"C5hYZ3"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Wa8NAb"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"o4Fx7yhJ"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" Lord"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cwn0KV"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" of"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"eiCgaQSI"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" the"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"IdQLy0E"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" Rings"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TOcTG"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bKNNB3Vt"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"TVJnC"} + + data: {"id":"chatcmpl-CZkh9fNoyVymRxJhgvRr0eAMdJPdM","object":"chat.completion.chunk","created":1762637011,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[],"usage":{"prompt_tokens":160,"completion_tokens":43,"total_tokens":203,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"tUHwei0G"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 691.543167ms diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/simple_object.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..61c649e8078abe4c27bccb6a67b676169cf95966 --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/simple_object.yaml @@ -0,0 +1,69 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 601 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"gpt-4o-mini","max_tokens":4000,"response_format":{"json_schema":{"name":"Person","strict":true,"description":"A person with name, age, and city","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"json_schema"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "id": "chatcmpl-CZkh6UpzjVoPIwiP6798RaJh45GaE", + "object": "chat.completion", + "created": 1762637008, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}", + "refusal": null, + "annotations": [] + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 99, + "completion_tokens": 13, + "total_tokens": 112, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "service_tier": "default", + "system_fingerprint": "fp_560af6e559" + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 926.519208ms diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/simple_object_streaming.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..29959253eec1e83554f73d367f62701b780d6316 --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o-mini/simple_object_streaming.yaml @@ -0,0 +1,66 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 655 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"gpt-4o-mini","max_tokens":4000,"stream_options":{"include_usage":true},"response_format":{"json_schema":{"name":"Person","strict":true,"description":"A person with name, age, and city","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"json_schema"},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FopRVPvq1"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"{\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vcH0mk1c"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"age"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Yp08y6zs"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\":"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"yEwAOmw5"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"30"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"PedSD3PYu"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"I5M18YOR"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"city"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9ReOCb0"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dRYkzy"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"Paris"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"clnEfR"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"y8uwQU"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"name"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"hoFrRnB"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"f2tFLb"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"Alice"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"MdtNOk"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4NFrFBQr"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"RyhJI"} + + data: {"id":"chatcmpl-CZkh6JIHchpBryosw9Q1zBULiOgQP","object":"chat.completion.chunk","created":1762637008,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[],"usage":{"prompt_tokens":99,"completion_tokens":13,"total_tokens":112,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"a9TEmM6E7"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 611.309416ms diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/complex_object.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..000d1ba9a74e3145744145c2d55dc5dca4ea79c8 --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/complex_object.yaml @@ -0,0 +1,69 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 963 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"gpt-4o","max_tokens":4000,"response_format":{"json_schema":{"name":"Book","strict":true,"description":"A book with title, author, genres, and publication year","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"json_schema"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "id": "chatcmpl-CZkh4icu3jixl4IcoAjWVF1mV1oYu", + "object": "chat.completion", + "created": 1762637006, + "model": "gpt-4o-2024-08-06", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}", + "refusal": null, + "annotations": [] + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 160, + "completion_tokens": 40, + "total_tokens": 200, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "service_tier": "default", + "system_fingerprint": "fp_b1442291a8" + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.01740425s diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/complex_object_streaming.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..242bd55c451617f292d06b192bb90bb4605e7b9f --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/complex_object_streaming.yaml @@ -0,0 +1,126 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1017 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"gpt-4o","max_tokens":4000,"stream_options":{"include_usage":true},"response_format":{"json_schema":{"name":"Book","strict":true,"description":"A book with title, author, genres, and publication year","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"json_schema"},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"oRfA4z9DWq7qj8"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"{\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6zBd5qX7Btxxs"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"author"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TM0t4Pm61A"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":{\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vGe6G1eVLX"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"name"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"IzcNGOmzos0t"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"l7hTuQxFaSd"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"J"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KUdeHzDFBeGZqrS"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":".R"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"53WRtPIBKf8ppj"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":".R"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"k1Sj1EOhcZYCrc"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"qg5EAndN8z366Rb"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" Tolkien"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5FtxI3Pp"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"M5dFMIxnYln"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"national"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KWRPefSc"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"ity"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Am6NFkfoBupq4"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"mE6llEgaiEl"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"British"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"NOxOkP0FW"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dTuuDbNhmHIam"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1YF0LTdj65xaU"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"genres"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"sgSIFdyI3Y"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":[\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"J7yKvYHrAE"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"Fantasy"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1bi4UyMpr"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"YKmjdjs48hJ"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"Adventure"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TPD2t4l"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vlNVJvvgk1c"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"Epic"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"w7jUArhKEasV"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5Y8gslzJdue"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"High"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cOxUUXJCFsCN"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" Fantasy"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pvt7toWU"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\"],"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"X4iUq3xGjfQZ"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9DWpvWngJkc3QW"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"published"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"x83XGTN"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"_year"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"b0pZYS1Ugrk"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TnUypAqlvMK0t"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"195"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5q3RZV2IBGwQq"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"seaiFS3GIkUeF8R"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5z7ebiG1wSVfE"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"title"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"t3kq28e6YDC"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"27pSWGte8Fs"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"hbcPvP0yuw3gs"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" Lord"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"w5Nf8vyr8dS"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" of"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"oEMgc3xOjSI7i"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" the"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QUboXKjGhMgZ"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" Rings"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VzpWMn93wL"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6SnH1kmGO0pUa"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"KDN8LMYAVx"} + + data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[],"usage":{"prompt_tokens":160,"completion_tokens":43,"total_tokens":203,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"GVU4FsyFvtGsL"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 608.567167ms diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/simple_object.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8f8ca148ec16eac46ab02889edf38321fd184289 --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/simple_object.yaml @@ -0,0 +1,69 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 596 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"gpt-4o","max_tokens":4000,"response_format":{"json_schema":{"name":"Person","strict":true,"description":"A person with name, age, and city","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"json_schema"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "id": "chatcmpl-CZkh2yUHIKUTvXaI7RuJhKssQ3u8J", + "object": "chat.completion", + "created": 1762637004, + "model": "gpt-4o-2024-08-06", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}", + "refusal": null, + "annotations": [] + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 99, + "completion_tokens": 13, + "total_tokens": 112, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "service_tier": "default", + "system_fingerprint": "fp_cbf1785567" + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 866.25175ms diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/simple_object_streaming.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..44ace558ebad032c874e775c6a8b7cd8d655df77 --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-4o/simple_object_streaming.yaml @@ -0,0 +1,66 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 650 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"gpt-4o","max_tokens":4000,"stream_options":{"include_usage":true},"response_format":{"json_schema":{"name":"Person","strict":true,"description":"A person with name, age, and city","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"json_schema"},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Q7EWId38WGszkS"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"{\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"WDGuponLquJpz"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"age"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rCGUFNPg6GmYo"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"\":"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"wEfLaS45CzBz3"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"30"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FXGR1dTIvN4Qp6"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KmEPUsJzFtpi5"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"city"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TxOjAiMNR8i2"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZdagyqxzdDT"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"Paris"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7AV1wjObQw9"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ecbr6MtR7cR"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"name"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"swinVIK7vWIt"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"V94lL7Iu9CQ"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"Alice"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"tegZ0PohAUA"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"npvxJxBLlAEZV"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"gxtfhzu7ZT"} + + data: {"id":"chatcmpl-CZkh26YobsyDr3tfAEylpsGb7mCKf","object":"chat.completion.chunk","created":1762637004,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[],"usage":{"prompt_tokens":99,"completion_tokens":13,"total_tokens":112,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"mo9vda7oGi3jDi"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 878.195625ms diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/complex_object.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b23171032b982e5eff33b80c0ced56d8cb933b2c --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/complex_object.yaml @@ -0,0 +1,68 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 973 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"gpt-5","max_completion_tokens":4000,"response_format":{"json_schema":{"name":"Book","strict":true,"description":"A book with title, author, genres, and publication year","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"json_schema"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "id": "chatcmpl-CZkhdPgupBvka4xhGSEPQHw0QQKRf", + "object": "chat.completion", + "created": 1762637041, + "model": "gpt-5-2025-08-07", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}", + "refusal": null, + "annotations": [] + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 156, + "completion_tokens": 370, + "total_tokens": 526, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 320, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "service_tier": "default", + "system_fingerprint": null + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 6.754405583s diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/complex_object_streaming.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4841a1f0a3646647f0a52b165347c9e96ba21d0b --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/complex_object_streaming.yaml @@ -0,0 +1,126 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1027 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"gpt-5","max_completion_tokens":4000,"stream_options":{"include_usage":true},"response_format":{"json_schema":{"name":"Book","strict":true,"description":"A book with title, author, genres, and publication year","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"json_schema"},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"krULCx6FpP"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"{\""},"finish_reason":null}],"usage":null,"obfuscation":"KhkT4ETwl"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"author"},"finish_reason":null}],"usage":null,"obfuscation":"JiqkV9"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":{\""},"finish_reason":null}],"usage":null,"obfuscation":"pLfh4Y"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"name"},"finish_reason":null}],"usage":null,"obfuscation":"O8warfq1"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"fAH5NNx"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"J"},"finish_reason":null}],"usage":null,"obfuscation":"iRAAQPuX204"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":".R"},"finish_reason":null}],"usage":null,"obfuscation":"W1AR5b5TWP"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":".R"},"finish_reason":null}],"usage":null,"obfuscation":"VTNoKDtQ17"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"."},"finish_reason":null}],"usage":null,"obfuscation":"HKmoGb3IINO"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" Tolkien"},"finish_reason":null}],"usage":null,"obfuscation":"p3JU"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\",\""},"finish_reason":null}],"usage":null,"obfuscation":"vcVbCL4"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"national"},"finish_reason":null}],"usage":null,"obfuscation":"R5MO"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"ity"},"finish_reason":null}],"usage":null,"obfuscation":"hnSvtExqQ"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"HyL59KZ"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"British"},"finish_reason":null}],"usage":null,"obfuscation":"ataN0"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"}"},"finish_reason":null}],"usage":null,"obfuscation":"OPSMNTPak"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":",\""},"finish_reason":null}],"usage":null,"obfuscation":"puUIHCDXD"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"genres"},"finish_reason":null}],"usage":null,"obfuscation":"66V8sV"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":[\""},"finish_reason":null}],"usage":null,"obfuscation":"zz6Bdi"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Fantasy"},"finish_reason":null}],"usage":null,"obfuscation":"TfPQ2"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\",\""},"finish_reason":null}],"usage":null,"obfuscation":"LNWEFWZ"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Adventure"},"finish_reason":null}],"usage":null,"obfuscation":"1vG"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\",\""},"finish_reason":null}],"usage":null,"obfuscation":"gWtPmFa"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"High"},"finish_reason":null}],"usage":null,"obfuscation":"rmqnBBtT"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" fantasy"},"finish_reason":null}],"usage":null,"obfuscation":"UPen"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\",\""},"finish_reason":null}],"usage":null,"obfuscation":"RDuP2zJ"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Epic"},"finish_reason":null}],"usage":null,"obfuscation":"IsesfQsQ"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"],"},"finish_reason":null}],"usage":null,"obfuscation":"w4JTRvLk"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\""},"finish_reason":null}],"usage":null,"obfuscation":"3w9JKeR72Q"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"published"},"finish_reason":null}],"usage":null,"obfuscation":"CLT"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_year"},"finish_reason":null}],"usage":null,"obfuscation":"MkfRSfT"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":"},"finish_reason":null}],"usage":null,"obfuscation":"bBQJScoy8"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"195"},"finish_reason":null}],"usage":null,"obfuscation":"YuX5V3Knn"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"4"},"finish_reason":null}],"usage":null,"obfuscation":"d6BGtnexZOj"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":",\""},"finish_reason":null}],"usage":null,"obfuscation":"tN8ZtZwyn"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"title"},"finish_reason":null}],"usage":null,"obfuscation":"60QEmXN"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"hHsvsxZ"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"The"},"finish_reason":null}],"usage":null,"obfuscation":"64Glw8yPR"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" Lord"},"finish_reason":null}],"usage":null,"obfuscation":"UryOL9U"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" of"},"finish_reason":null}],"usage":null,"obfuscation":"J9RVBlCzM"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" the"},"finish_reason":null}],"usage":null,"obfuscation":"He1UQSPn"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" Rings"},"finish_reason":null}],"usage":null,"obfuscation":"ldqk2U"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"}"},"finish_reason":null}],"usage":null,"obfuscation":"eC9lA0XOT"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":null,"obfuscation":"BEksRy"} + + data: {"id":"chatcmpl-CZkhj5CiURkaRRWO5hSOaz31x2Gfh","object":"chat.completion.chunk","created":1762637047,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":156,"completion_tokens":695,"total_tokens":851,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":640,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"CpyYGx"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 14.427336208s diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/simple_object.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..02e8100fbd5c865cb02c5d6450e7b2b0320dbcbf --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/simple_object.yaml @@ -0,0 +1,68 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 606 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"gpt-5","max_completion_tokens":4000,"response_format":{"json_schema":{"name":"Person","strict":true,"description":"A person with name, age, and city","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"json_schema"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "id": "chatcmpl-CZkhB1eWodsLQ6Gs98f4VUjNlzKV6", + "object": "chat.completion", + "created": 1762637013, + "model": "gpt-5-2025-08-07", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}", + "refusal": null, + "annotations": [] + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 95, + "completion_tokens": 793, + "total_tokens": 888, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 768, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "service_tier": "default", + "system_fingerprint": null + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 20.674063542s diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/simple_object_streaming.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9f3cd6ee2453f41761dcc16d305fa4a3e8d0768a --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-gpt-5/simple_object_streaming.yaml @@ -0,0 +1,66 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 660 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"gpt-5","max_completion_tokens":4000,"stream_options":{"include_usage":true},"response_format":{"json_schema":{"name":"Person","strict":true,"description":"A person with name, age, and city","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"json_schema"},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"XOkQ64PZpE"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"{\""},"finish_reason":null}],"usage":null,"obfuscation":"Ni84MpFSw"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"age"},"finish_reason":null}],"usage":null,"obfuscation":"HWAfWDi80"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":"},"finish_reason":null}],"usage":null,"obfuscation":"MgEKDfqen"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"30"},"finish_reason":null}],"usage":null,"obfuscation":"xSUuDmVnPA"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":",\""},"finish_reason":null}],"usage":null,"obfuscation":"rg02xRX4E"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"city"},"finish_reason":null}],"usage":null,"obfuscation":"Otwkppxs"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"WryBuCt"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Paris"},"finish_reason":null}],"usage":null,"obfuscation":"xHwu9qY"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\",\""},"finish_reason":null}],"usage":null,"obfuscation":"5fVw4lG"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"name"},"finish_reason":null}],"usage":null,"obfuscation":"9Ionk7pl"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"5vKRCJC"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Alice"},"finish_reason":null}],"usage":null,"obfuscation":"99RRfh5"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"}"},"finish_reason":null}],"usage":null,"obfuscation":"mpjzsT6aj"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":null,"obfuscation":"Y02J6J"} + + data: {"id":"chatcmpl-CZkhWAnMkiLSCMK7u8Hid2v2V0JKT","object":"chat.completion.chunk","created":1762637034,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":95,"completion_tokens":345,"total_tokens":440,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":320,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"oT4O7bI"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 6.848382125s diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/complex_object.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..931a5c902bcf8d8c5baf0ec13254912d0175d9da --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/complex_object.yaml @@ -0,0 +1,68 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 975 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"o4-mini","max_completion_tokens":4000,"response_format":{"json_schema":{"name":"Book","strict":true,"description":"A book with title, author, genres, and publication year","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"json_schema"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "id": "chatcmpl-CZki5CYlesaMKCtCSbinnMUnYGvLR", + "object": "chat.completion", + "created": 1762637069, + "model": "o4-mini-2025-04-16", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}", + "refusal": null, + "annotations": [] + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 156, + "completion_tokens": 187, + "total_tokens": 343, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 128, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "service_tier": "default", + "system_fingerprint": null + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.853936875s diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/complex_object_streaming.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cc3d4fa1fe993a728f990147d716d68f1ffddc13 --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/complex_object_streaming.yaml @@ -0,0 +1,116 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1029 + host: "" + body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"o4-mini","max_completion_tokens":4000,"stream_options":{"include_usage":true},"response_format":{"json_schema":{"name":"Book","strict":true,"description":"A book with title, author, genres, and publication year","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"json_schema"},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"jSbBDCYa"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"{\""},"finish_reason":null}],"usage":null,"obfuscation":"cHy1o6X"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"author"},"finish_reason":null}],"usage":null,"obfuscation":"un7v"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":{\""},"finish_reason":null}],"usage":null,"obfuscation":"adWo"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"name"},"finish_reason":null}],"usage":null,"obfuscation":"So4L3b"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"6JKwj"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"J"},"finish_reason":null}],"usage":null,"obfuscation":"e5dRHQDF4"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":".R"},"finish_reason":null}],"usage":null,"obfuscation":"HQo6f6PP"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":".R"},"finish_reason":null}],"usage":null,"obfuscation":"IkNadvEi"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"."},"finish_reason":null}],"usage":null,"obfuscation":"0nUhb2S8E"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" Tolkien"},"finish_reason":null}],"usage":null,"obfuscation":"an"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\",\""},"finish_reason":null}],"usage":null,"obfuscation":"8UmMX"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"national"},"finish_reason":null}],"usage":null,"obfuscation":"SU"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"ity"},"finish_reason":null}],"usage":null,"obfuscation":"63TqWO3"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"OhRZz"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"English"},"finish_reason":null}],"usage":null,"obfuscation":"ZkD"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"}"},"finish_reason":null}],"usage":null,"obfuscation":"oBSiY0t"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":",\""},"finish_reason":null}],"usage":null,"obfuscation":"n3bibfa"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"genres"},"finish_reason":null}],"usage":null,"obfuscation":"ky2m"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":[\""},"finish_reason":null}],"usage":null,"obfuscation":"NAkH"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Fantasy"},"finish_reason":null}],"usage":null,"obfuscation":"94h"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\",\""},"finish_reason":null}],"usage":null,"obfuscation":"rDWyL"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Adventure"},"finish_reason":null}],"usage":null,"obfuscation":"8"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"],"},"finish_reason":null}],"usage":null,"obfuscation":"97y0Sh"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\""},"finish_reason":null}],"usage":null,"obfuscation":"QiMOEGWe"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"published"},"finish_reason":null}],"usage":null,"obfuscation":"R"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_year"},"finish_reason":null}],"usage":null,"obfuscation":"nxtvG"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":"},"finish_reason":null}],"usage":null,"obfuscation":"lgQawg6"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"195"},"finish_reason":null}],"usage":null,"obfuscation":"ud4baIJ"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"4"},"finish_reason":null}],"usage":null,"obfuscation":"3HNJ4dBuZ"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":",\""},"finish_reason":null}],"usage":null,"obfuscation":"LrhAiTL"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"title"},"finish_reason":null}],"usage":null,"obfuscation":"gbT7W"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"eWNMD"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"The"},"finish_reason":null}],"usage":null,"obfuscation":"nhGuB0j"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" Lord"},"finish_reason":null}],"usage":null,"obfuscation":"0TmEt"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" of"},"finish_reason":null}],"usage":null,"obfuscation":"YrulT4e"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" the"},"finish_reason":null}],"usage":null,"obfuscation":"UOZ211"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" Rings"},"finish_reason":null}],"usage":null,"obfuscation":"i73I"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"}"},"finish_reason":null}],"usage":null,"obfuscation":"vQmYZeA"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":null,"obfuscation":"3et1"} + + data: {"id":"chatcmpl-CZki9S4aKtqtM8RUd4qbiX5kpdYck","object":"chat.completion.chunk","created":1762637073,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":156,"completion_tokens":443,"total_tokens":599,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":384,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"xHYN"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 6.243754208s diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/simple_object.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dcc63f15abff287dbb178af75252cd87d64d9eb2 --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/simple_object.yaml @@ -0,0 +1,68 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 608 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"o4-mini","max_completion_tokens":4000,"response_format":{"json_schema":{"name":"Person","strict":true,"description":"A person with name, age, and city","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"json_schema"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: | + { + "id": "chatcmpl-CZkhy2Semw4FSy9i59cUlONdYx0mh", + "object": "chat.completion", + "created": 1762637062, + "model": "o4-mini-2025-04-16", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}", + "refusal": null, + "annotations": [] + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 95, + "completion_tokens": 162, + "total_tokens": 257, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 128, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "service_tier": "default", + "system_fingerprint": null + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.135977959s diff --git a/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/simple_object_streaming.yaml b/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c74c84e39b54714ad22081d7e11aaedb20e9a218 --- /dev/null +++ b/providertests/testdata/TestOpenAIObjectGeneration/openai-o4-mini/simple_object_streaming.yaml @@ -0,0 +1,66 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 662 + host: "" + body: '{"messages":[{"content":"Generate information about a person named Alice who is 30 years old and lives in Paris.","role":"user"}],"model":"o4-mini","max_completion_tokens":4000,"stream_options":{"include_usage":true},"response_format":{"json_schema":{"name":"Person","strict":true,"description":"A person with name, age, and city","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"}},"type":"json_schema"},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"1u4UMeKG"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"{\""},"finish_reason":null}],"usage":null,"obfuscation":"Q5UxGax"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"age"},"finish_reason":null}],"usage":null,"obfuscation":"PC0HaNl"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":"},"finish_reason":null}],"usage":null,"obfuscation":"lsI4acg"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"30"},"finish_reason":null}],"usage":null,"obfuscation":"tcdcmfbK"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":",\""},"finish_reason":null}],"usage":null,"obfuscation":"TD1rpZS"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"city"},"finish_reason":null}],"usage":null,"obfuscation":"IaOcwg"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"6cUFm"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Paris"},"finish_reason":null}],"usage":null,"obfuscation":"2yZjs"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\",\""},"finish_reason":null}],"usage":null,"obfuscation":"Q37jl"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"name"},"finish_reason":null}],"usage":null,"obfuscation":"kT7Jci"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"ou5VZ"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Alice"},"finish_reason":null}],"usage":null,"obfuscation":"AMhVx"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"}"},"finish_reason":null}],"usage":null,"obfuscation":"ZDFb7mY"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":null,"obfuscation":"AQhR"} + + data: {"id":"chatcmpl-CZki1J9qrKifHLYfd83Fec01s4z8D","object":"chat.completion.chunk","created":1762637065,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":95,"completion_tokens":290,"total_tokens":385,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":256,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"xEKhD"} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 3.874454375s diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/complex_object.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a6c1a5c23c957a82413e0b6804b127036e025059 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/complex_object.yaml @@ -0,0 +1,149 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 915 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"input_text"}],"role":"user"}],"model":"gpt-4o-mini","text":{"format":{"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"type":"json_schema"}}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: |- + { + "id": "resp_00aee193a62b03b301690fb5e67a8481a0890292ac13193180", + "object": "response", + "created_at": 1762637286, + "status": "completed", + "background": false, + "billing": { + "payer": "developer" + }, + "error": null, + "incomplete_details": null, + "instructions": null, + "max_output_tokens": 4000, + "max_tool_calls": null, + "model": "gpt-4o-mini-2024-07-18", + "output": [ + { + "id": "msg_00aee193a62b03b301690fb5e6bf6881a0ab198f7831a11cf0", + "type": "message", + "status": "completed", + "content": [ + { + "type": "output_text", + "annotations": [], + "logprobs": [], + "text": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}" + } + ], + "role": "assistant" + } + ], + "parallel_tool_calls": true, + "previous_response_id": null, + "prompt_cache_key": null, + "prompt_cache_retention": null, + "reasoning": { + "effort": null, + "summary": null + }, + "safety_identifier": null, + "service_tier": "default", + "store": false, + "temperature": 1.0, + "text": { + "format": { + "type": "json_schema", + "description": null, + "name": "Book", + "schema": { + "additionalProperties": false, + "properties": { + "author": { + "additionalProperties": false, + "properties": { + "name": { + "description": "Author's name", + "type": "string" + }, + "nationality": { + "description": "Author's nationality", + "type": "string" + } + }, + "required": [ + "name", + "nationality" + ], + "type": "object" + }, + "genres": { + "description": "List of genres", + "items": { + "type": "string" + }, + "type": "array" + }, + "published_year": { + "description": "Year the book was published", + "type": "integer" + }, + "title": { + "description": "The book title", + "type": "string" + } + }, + "required": [ + "title", + "author", + "genres", + "published_year" + ], + "type": "object" + }, + "strict": true + }, + "verbosity": "medium" + }, + "tool_choice": "auto", + "tools": [], + "top_logprobs": 0, + "top_p": 1.0, + "truncation": "disabled", + "usage": { + "input_tokens": 140, + "input_tokens_details": { + "cached_tokens": 0 + }, + "output_tokens": 41, + "output_tokens_details": { + "reasoning_tokens": 0 + }, + "total_tokens": 181 + }, + "user": null, + "metadata": {} + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.153408417s diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/complex_object_streaming.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..74d720ef491f32dab6ee4cca86ba392724bc08c6 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/complex_object_streaming.yaml @@ -0,0 +1,176 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 929 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"input_text"}],"role":"user"}],"model":"gpt-4o-mini","text":{"format":{"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"type":"json_schema"}},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + event: response.created + data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_0b395c22c64bd0de01690fb5e7a238819ca85a64e9b6ac32f9","object":"response","created_at":1762637287,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.in_progress + data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_0b395c22c64bd0de01690fb5e7a238819ca85a64e9b6ac32f9","object":"response","created_at":1762637287,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","type":"message","status":"in_progress","content":[],"role":"assistant"}} + + event: response.content_part.added + data: {"type":"response.content_part.added","sequence_number":3,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":4,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"{\"","logprobs":[],"obfuscation":"w0uRy397P1tlme"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":5,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"author","logprobs":[],"obfuscation":"UZSUIL51HD"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":6,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\":{\"","logprobs":[],"obfuscation":"U2IqPfEyuCW6"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":7,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"name","logprobs":[],"obfuscation":"6yodA173gW37"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":8,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"jS3ejVQkBmYE3"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":9,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"J","logprobs":[],"obfuscation":"iroZ6WuFyfK1VZx"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":".R","logprobs":[],"obfuscation":"KInGWlQdImRYQg"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":".R","logprobs":[],"obfuscation":"iqZyszfl4LmbgS"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":".","logprobs":[],"obfuscation":"IbIFqu9ECqk6OJi"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":13,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":" Tolkien","logprobs":[],"obfuscation":"ayMpSFlJ"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":14,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"73YsvDPY3GKaG"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":15,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"national","logprobs":[],"obfuscation":"QlFktnnV"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":16,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"ity","logprobs":[],"obfuscation":"v3rMNOTO15LY2"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":17,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"vIbvcS93WrAED"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":18,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"British","logprobs":[],"obfuscation":"vUvh0fBq3"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":19,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"ot4OdWrjqe1tui"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":20,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"vlKgFxiUSzmVij"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":21,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"genres","logprobs":[],"obfuscation":"XUqVQBjShJ"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":22,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\":[\"","logprobs":[],"obfuscation":"AzfakgEtflt4"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":23,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"Fantasy","logprobs":[],"obfuscation":"IKhUZs45d"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":24,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"PWSU5F7JRKRYT"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":25,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"Adventure","logprobs":[],"obfuscation":"WrMADZ8"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":26,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"1NxVYWia8J4H7"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":27,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"Epic","logprobs":[],"obfuscation":"mD8StL2RnA6u"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":28,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\"],","logprobs":[],"obfuscation":"kQQLUU3Sy011a"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":29,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\"","logprobs":[],"obfuscation":"oQydHGyZqlEEgJj"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":30,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"published","logprobs":[],"obfuscation":"EC59oD9"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":31,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"_year","logprobs":[],"obfuscation":"8MRn2RjtLJ6"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":32,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\":","logprobs":[],"obfuscation":"fF4nUJIrWxRwMy"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":33,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"195","logprobs":[],"obfuscation":"29LJXcHAZMBkr"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":34,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"4","logprobs":[],"obfuscation":"wTk4EbM8GGejI1J"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":35,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"FsbpZWLfvqurzA"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":36,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"title","logprobs":[],"obfuscation":"WHXlPFGiuyP"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":37,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"2E0ywqxSMIzML"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":38,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"The","logprobs":[],"obfuscation":"3qqlFQsPWsxQq"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":39,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":" Lord","logprobs":[],"obfuscation":"J2hT3a8DD3T"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":40,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":" of","logprobs":[],"obfuscation":"WxRGBxwiWEOrb"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":41,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"flD8BqwGg6lR"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":42,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":" Rings","logprobs":[],"obfuscation":"mHXsGxleFl"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":43,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"kJzjigwFnkmYsp"} + + event: response.output_text.done + data: {"type":"response.output_text.done","sequence_number":44,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}","logprobs":[]} + + event: response.content_part.done + data: {"type":"response.content_part.done","sequence_number":45,"item_id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":46,"output_index":0,"item":{"id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}],"role":"assistant"}} + + event: response.completed + data: {"type":"response.completed","sequence_number":47,"response":{"id":"resp_0b395c22c64bd0de01690fb5e7a238819ca85a64e9b6ac32f9","object":"response","created_at":1762637287,"status":"completed","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[{"id":"msg_0b395c22c64bd0de01690fb5e7d34c819c84dc831a681cfeaa","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":140,"input_tokens_details":{"cached_tokens":0},"output_tokens":41,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":181},"user":null,"metadata":{}}} + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 189.690709ms diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/simple_object.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9e1cca0af6cc582d2c38cc3c70614e0955c5081f --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/simple_object.yaml @@ -0,0 +1,127 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 570 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"input_text"}],"role":"user"}],"model":"gpt-4o-mini","text":{"format":{"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"type":"json_schema"}}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: |- + { + "id": "resp_0bbc50a7c5ff86f001690fb5e419a8819087b97bd3cbc4c406", + "object": "response", + "created_at": 1762637284, + "status": "completed", + "background": false, + "billing": { + "payer": "developer" + }, + "error": null, + "incomplete_details": null, + "instructions": null, + "max_output_tokens": 4000, + "max_tool_calls": null, + "model": "gpt-4o-mini-2024-07-18", + "output": [ + { + "id": "msg_0bbc50a7c5ff86f001690fb5e4fabc8190a9749a3e0c928bce", + "type": "message", + "status": "completed", + "content": [ + { + "type": "output_text", + "annotations": [], + "logprobs": [], + "text": "{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}" + } + ], + "role": "assistant" + } + ], + "parallel_tool_calls": true, + "previous_response_id": null, + "prompt_cache_key": null, + "prompt_cache_retention": null, + "reasoning": { + "effort": null, + "summary": null + }, + "safety_identifier": null, + "service_tier": "default", + "store": false, + "temperature": 1.0, + "text": { + "format": { + "type": "json_schema", + "description": null, + "name": "Person", + "schema": { + "additionalProperties": false, + "properties": { + "age": { + "description": "The person's age", + "type": "integer" + }, + "city": { + "description": "The city where the person lives", + "type": "string" + }, + "name": { + "description": "The person's name", + "type": "string" + } + }, + "required": [ + "name", + "age", + "city" + ], + "type": "object" + }, + "strict": true + }, + "verbosity": "medium" + }, + "tool_choice": "auto", + "tools": [], + "top_logprobs": 0, + "top_p": 1.0, + "truncation": "disabled", + "usage": { + "input_tokens": 82, + "input_tokens_details": { + "cached_tokens": 0 + }, + "output_tokens": 14, + "output_tokens_details": { + "reasoning_tokens": 0 + }, + "total_tokens": 96 + }, + "user": null, + "metadata": {} + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.465307584s diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/simple_object_streaming.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..97758429c6e008cf1abe4cc341ac93efa2047100 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o-mini/simple_object_streaming.yaml @@ -0,0 +1,95 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 584 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"input_text"}],"role":"user"}],"model":"gpt-4o-mini","text":{"format":{"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"type":"json_schema"}},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + event: response.created + data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_02c04886274e996201690fb5e586cc819e964a8d2266867d18","object":"response","created_at":1762637285,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.in_progress + data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_02c04886274e996201690fb5e586cc819e964a8d2266867d18","object":"response","created_at":1762637285,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","type":"message","status":"in_progress","content":[],"role":"assistant"}} + + event: response.content_part.added + data: {"type":"response.content_part.added","sequence_number":3,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":4,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"{\"","logprobs":[],"obfuscation":"8Z8tlCzwEPiKxX"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":5,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"age","logprobs":[],"obfuscation":"ntrGNnjEMQo9S"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":6,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"\":","logprobs":[],"obfuscation":"JnvWExEm2crgkL"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":7,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"30","logprobs":[],"obfuscation":"e7D0BYaAV7ZZan"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":8,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"nKINeWVP6PC4J6"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":9,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"city","logprobs":[],"obfuscation":"BSUszpyTPPQM"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"e2xJqxLyd6dLg"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"Paris","logprobs":[],"obfuscation":"hFKgDAqf1y5"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"BnhyOi3WfoTgj"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":13,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"name","logprobs":[],"obfuscation":"Rwn7qYlbLykn"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":14,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"ejkwCmkYwp6jc"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":15,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"Alice","logprobs":[],"obfuscation":"eTPamAFYtjC"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":16,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"cRZBPSZqiONzJX"} + + event: response.output_text.done + data: {"type":"response.output_text.done","sequence_number":17,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}","logprobs":[]} + + event: response.content_part.done + data: {"type":"response.content_part.done","sequence_number":18,"item_id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":19,"output_index":0,"item":{"id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}],"role":"assistant"}} + + event: response.completed + data: {"type":"response.completed","sequence_number":20,"response":{"id":"resp_02c04886274e996201690fb5e586cc819e964a8d2266867d18","object":"response","created_at":1762637285,"status":"completed","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[{"id":"msg_02c04886274e996201690fb5e617b4819eaec84bdb3206fa59","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":82,"input_tokens_details":{"cached_tokens":0},"output_tokens":14,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":96},"user":null,"metadata":{}}} + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 179.409584ms diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/complex_object.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cc17321746c892f97267b4dcf7ab89c9b6e61c52 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/complex_object.yaml @@ -0,0 +1,149 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 910 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"input_text"}],"role":"user"}],"model":"gpt-4o","text":{"format":{"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"type":"json_schema"}}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: |- + { + "id": "resp_00fee2bcbce77a6b01690fb5e194848191a77c3f9796902417", + "object": "response", + "created_at": 1762637281, + "status": "completed", + "background": false, + "billing": { + "payer": "developer" + }, + "error": null, + "incomplete_details": null, + "instructions": null, + "max_output_tokens": 4000, + "max_tool_calls": null, + "model": "gpt-4o-2024-08-06", + "output": [ + { + "id": "msg_00fee2bcbce77a6b01690fb5e25dfc8191b275e2c92a87865a", + "type": "message", + "status": "completed", + "content": [ + { + "type": "output_text", + "annotations": [], + "logprobs": [], + "text": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}" + } + ], + "role": "assistant" + } + ], + "parallel_tool_calls": true, + "previous_response_id": null, + "prompt_cache_key": null, + "prompt_cache_retention": null, + "reasoning": { + "effort": null, + "summary": null + }, + "safety_identifier": null, + "service_tier": "default", + "store": false, + "temperature": 1.0, + "text": { + "format": { + "type": "json_schema", + "description": null, + "name": "Book", + "schema": { + "additionalProperties": false, + "properties": { + "author": { + "additionalProperties": false, + "properties": { + "name": { + "description": "Author's name", + "type": "string" + }, + "nationality": { + "description": "Author's nationality", + "type": "string" + } + }, + "required": [ + "name", + "nationality" + ], + "type": "object" + }, + "genres": { + "description": "List of genres", + "items": { + "type": "string" + }, + "type": "array" + }, + "published_year": { + "description": "Year the book was published", + "type": "integer" + }, + "title": { + "description": "The book title", + "type": "string" + } + }, + "required": [ + "title", + "author", + "genres", + "published_year" + ], + "type": "object" + }, + "strict": true + }, + "verbosity": "medium" + }, + "tool_choice": "auto", + "tools": [], + "top_logprobs": 0, + "top_p": 1.0, + "truncation": "disabled", + "usage": { + "input_tokens": 140, + "input_tokens_details": { + "cached_tokens": 0 + }, + "output_tokens": 39, + "output_tokens_details": { + "reasoning_tokens": 0 + }, + "total_tokens": 179 + }, + "user": null, + "metadata": {} + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.348413375s diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/complex_object_streaming.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5cbb82e322281892a83d97bafd227c0a5cded203 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/complex_object_streaming.yaml @@ -0,0 +1,176 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 924 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"input_text"}],"role":"user"}],"model":"gpt-4o","text":{"format":{"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"type":"json_schema"}},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + event: response.created + data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_0cd0345c54b0381e01690fb5e2f140819eb8b9fa3f55b4313b","object":"response","created_at":1762637282,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.in_progress + data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_0cd0345c54b0381e01690fb5e2f140819eb8b9fa3f55b4313b","object":"response","created_at":1762637282,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","type":"message","status":"in_progress","content":[],"role":"assistant"}} + + event: response.content_part.added + data: {"type":"response.content_part.added","sequence_number":3,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":4,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"{\"","logprobs":[],"obfuscation":"rqbg0m6QYeXgew"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":5,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"author","logprobs":[],"obfuscation":"imJpYwjkk0"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":6,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\":{\"","logprobs":[],"obfuscation":"lneI4feOIym9"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":7,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"name","logprobs":[],"obfuscation":"aX9sLDq2ShNV"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":8,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"KiEnVxgS9idJH"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":9,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"J","logprobs":[],"obfuscation":"NZgdxXG8Ah2sXsw"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":".R","logprobs":[],"obfuscation":"HFw9pvQ76Llxwp"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":".R","logprobs":[],"obfuscation":"8zX1xDihGzxkHf"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":".","logprobs":[],"obfuscation":"N40FWmzYdfGMc7i"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":13,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":" Tolkien","logprobs":[],"obfuscation":"G4r8UC5e"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":14,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"2F9mZioKQNsdU"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":15,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"national","logprobs":[],"obfuscation":"TzITeG8Q"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":16,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"ity","logprobs":[],"obfuscation":"MSB3tbOfmt5ht"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":17,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"hEEegRwybEaou"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":18,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"British","logprobs":[],"obfuscation":"g52xWMqPz"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":19,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"pTei8sG6eaYajt"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":20,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"EVHqJ8sE2pknJ6"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":21,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"genres","logprobs":[],"obfuscation":"IdiOODGbkg"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":22,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\":[\"","logprobs":[],"obfuscation":"Lp0dktegOY6a"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":23,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"Fantasy","logprobs":[],"obfuscation":"aHGrVouuy"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":24,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"WhmcIASKcGkdi"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":25,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"Adventure","logprobs":[],"obfuscation":"vzUnini"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":26,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"y7pdOOLQxnNQ7"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":27,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"Epic","logprobs":[],"obfuscation":"u5Qlk4ltcPiM"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":28,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\"],","logprobs":[],"obfuscation":"fxlKRgBuiXrcS"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":29,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\"","logprobs":[],"obfuscation":"NNbHospqb8d07Gv"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":30,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"published","logprobs":[],"obfuscation":"zxP33mg"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":31,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"_year","logprobs":[],"obfuscation":"mkUcspqZlnl"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":32,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\":","logprobs":[],"obfuscation":"9fbDJimUlNNP8Y"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":33,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"195","logprobs":[],"obfuscation":"EHiBUrbpr2ElG"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":34,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"4","logprobs":[],"obfuscation":"bqVfSL9VMxSkmFe"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":35,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"qgmBIyTIfjH3OE"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":36,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"title","logprobs":[],"obfuscation":"Id8zVfGYo7a"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":37,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"veHzdRv23AzPl"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":38,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"The","logprobs":[],"obfuscation":"xMnThoyDxhbUr"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":39,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":" Lord","logprobs":[],"obfuscation":"OcJRWqXfn1M"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":40,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":" of","logprobs":[],"obfuscation":"3TOyEkURJ6dVm"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":41,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"FlHWLd9puSSA"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":42,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":" Rings","logprobs":[],"obfuscation":"8yvK9lspkq"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":43,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"XDCCShjSwvlmkK"} + + event: response.output_text.done + data: {"type":"response.output_text.done","sequence_number":44,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}","logprobs":[]} + + event: response.content_part.done + data: {"type":"response.content_part.done","sequence_number":45,"item_id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":46,"output_index":0,"item":{"id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}],"role":"assistant"}} + + event: response.completed + data: {"type":"response.completed","sequence_number":47,"response":{"id":"resp_0cd0345c54b0381e01690fb5e2f140819eb8b9fa3f55b4313b","object":"response","created_at":1762637282,"status":"completed","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[{"id":"msg_0cd0345c54b0381e01690fb5e33790819e8d4550f3ccc5c05f","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":140,"input_tokens_details":{"cached_tokens":0},"output_tokens":41,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":181},"user":null,"metadata":{}}} + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 204.676208ms diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/simple_object.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..736c5095338bf40e56b70ea421e31748bf6bc298 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/simple_object.yaml @@ -0,0 +1,127 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 565 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"input_text"}],"role":"user"}],"model":"gpt-4o","text":{"format":{"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"type":"json_schema"}}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: |- + { + "id": "resp_0f20344bcc1b767601690fb5e04c9c81a08af63f829b10bb55", + "object": "response", + "created_at": 1762637280, + "status": "completed", + "background": false, + "billing": { + "payer": "developer" + }, + "error": null, + "incomplete_details": null, + "instructions": null, + "max_output_tokens": 4000, + "max_tool_calls": null, + "model": "gpt-4o-2024-08-06", + "output": [ + { + "id": "msg_0f20344bcc1b767601690fb5e094e481a0833865218a771607", + "type": "message", + "status": "completed", + "content": [ + { + "type": "output_text", + "annotations": [], + "logprobs": [], + "text": "{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}" + } + ], + "role": "assistant" + } + ], + "parallel_tool_calls": true, + "previous_response_id": null, + "prompt_cache_key": null, + "prompt_cache_retention": null, + "reasoning": { + "effort": null, + "summary": null + }, + "safety_identifier": null, + "service_tier": "default", + "store": false, + "temperature": 1.0, + "text": { + "format": { + "type": "json_schema", + "description": null, + "name": "Person", + "schema": { + "additionalProperties": false, + "properties": { + "age": { + "description": "The person's age", + "type": "integer" + }, + "city": { + "description": "The city where the person lives", + "type": "string" + }, + "name": { + "description": "The person's name", + "type": "string" + } + }, + "required": [ + "name", + "age", + "city" + ], + "type": "object" + }, + "strict": true + }, + "verbosity": "medium" + }, + "tool_choice": "auto", + "tools": [], + "top_logprobs": 0, + "top_p": 1.0, + "truncation": "disabled", + "usage": { + "input_tokens": 82, + "input_tokens_details": { + "cached_tokens": 0 + }, + "output_tokens": 14, + "output_tokens_details": { + "reasoning_tokens": 0 + }, + "total_tokens": 96 + }, + "user": null, + "metadata": {} + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 816.505042ms diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/simple_object_streaming.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ba035949dc0328923872b453652d3f2480ec0f11 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-4o/simple_object_streaming.yaml @@ -0,0 +1,95 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 579 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"input_text"}],"role":"user"}],"model":"gpt-4o","text":{"format":{"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"type":"json_schema"}},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + event: response.created + data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_0d165ceb975b9af401690fb5e0e8788192bd9eb948decabbd1","object":"response","created_at":1762637280,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.in_progress + data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_0d165ceb975b9af401690fb5e0e8788192bd9eb948decabbd1","object":"response","created_at":1762637280,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","type":"message","status":"in_progress","content":[],"role":"assistant"}} + + event: response.content_part.added + data: {"type":"response.content_part.added","sequence_number":3,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":4,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"{\"","logprobs":[],"obfuscation":"Tp0jZ8gJ4woL9Y"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":5,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"age","logprobs":[],"obfuscation":"citwa9boDP9Y2"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":6,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"\":","logprobs":[],"obfuscation":"y41U42sTULTK18"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":7,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"30","logprobs":[],"obfuscation":"YqlEplTbGy3fsj"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":8,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"Sg3V1re96l7ZKF"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":9,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"city","logprobs":[],"obfuscation":"x357HhG0WmSG"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"y0CAsSO6TE2Wm"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"Paris","logprobs":[],"obfuscation":"B7NTDCRqRbF"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"IETmenhLsNCo2"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":13,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"name","logprobs":[],"obfuscation":"tN74YVJx0gab"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":14,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"sFnNvr3rmQHWV"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":15,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"Alice","logprobs":[],"obfuscation":"5fQecM4hrZO"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":16,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"jgrv8Q1bo52G7r"} + + event: response.output_text.done + data: {"type":"response.output_text.done","sequence_number":17,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}","logprobs":[]} + + event: response.content_part.done + data: {"type":"response.content_part.done","sequence_number":18,"item_id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":19,"output_index":0,"item":{"id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}],"role":"assistant"}} + + event: response.completed + data: {"type":"response.completed","sequence_number":20,"response":{"id":"resp_0d165ceb975b9af401690fb5e0e8788192bd9eb948decabbd1","object":"response","created_at":1762637280,"status":"completed","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[{"id":"msg_0d165ceb975b9af401690fb5e147e08192981f80e775d1b42a","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":82,"input_tokens_details":{"cached_tokens":0},"output_tokens":14,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":96},"user":null,"metadata":{}}} + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 229.655875ms diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/complex_object.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..117e01dd75d1be997ecb7e54ad96e27e3f5eaab5 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/complex_object.yaml @@ -0,0 +1,154 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 909 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"input_text"}],"role":"user"}],"model":"gpt-5","text":{"format":{"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"type":"json_schema"}}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: |- + { + "id": "resp_0d7efb113168df8301690fb603c0f881a1a5ecec45f910e875", + "object": "response", + "created_at": 1762637315, + "status": "completed", + "background": false, + "billing": { + "payer": "developer" + }, + "error": null, + "incomplete_details": null, + "instructions": null, + "max_output_tokens": 4000, + "max_tool_calls": null, + "model": "gpt-5-2025-08-07", + "output": [ + { + "id": "rs_0d7efb113168df8301690fb6041bb881a198a6e417f00bba70", + "type": "reasoning", + "summary": [] + }, + { + "id": "msg_0d7efb113168df8301690fb610bf2881a1be28a4885c1876ac", + "type": "message", + "status": "completed", + "content": [ + { + "type": "output_text", + "annotations": [], + "logprobs": [], + "text": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic fantasy\",\"High fantasy\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}" + } + ], + "role": "assistant" + } + ], + "parallel_tool_calls": true, + "previous_response_id": null, + "prompt_cache_key": null, + "prompt_cache_retention": null, + "reasoning": { + "effort": "medium", + "summary": null + }, + "safety_identifier": null, + "service_tier": "default", + "store": false, + "temperature": 1.0, + "text": { + "format": { + "type": "json_schema", + "description": null, + "name": "Book", + "schema": { + "additionalProperties": false, + "properties": { + "author": { + "additionalProperties": false, + "properties": { + "name": { + "description": "Author's name", + "type": "string" + }, + "nationality": { + "description": "Author's nationality", + "type": "string" + } + }, + "required": [ + "name", + "nationality" + ], + "type": "object" + }, + "genres": { + "description": "List of genres", + "items": { + "type": "string" + }, + "type": "array" + }, + "published_year": { + "description": "Year the book was published", + "type": "integer" + }, + "title": { + "description": "The book title", + "type": "string" + } + }, + "required": [ + "title", + "author", + "genres", + "published_year" + ], + "type": "object" + }, + "strict": true + }, + "verbosity": "medium" + }, + "tool_choice": "auto", + "tools": [], + "top_logprobs": 0, + "top_p": 1.0, + "truncation": "disabled", + "usage": { + "input_tokens": 138, + "input_tokens_details": { + "cached_tokens": 0 + }, + "output_tokens": 885, + "output_tokens_details": { + "reasoning_tokens": 832 + }, + "total_tokens": 1023 + }, + "user": null, + "metadata": {} + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 13.745367625s diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/complex_object_streaming.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a8dbf47206faf5072c4e978341e22552006e097a --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/complex_object_streaming.yaml @@ -0,0 +1,191 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 923 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"input_text"}],"role":"user"}],"model":"gpt-5","text":{"format":{"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"type":"json_schema"}},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + event: response.created + data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_0aab0755c068dba601690fb61193ac81a09b187ec6ae118666","object":"response","created_at":1762637329,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-5-2025-08-07","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.in_progress + data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_0aab0755c068dba601690fb61193ac81a09b187ec6ae118666","object":"response","created_at":1762637329,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-5-2025-08-07","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"rs_0aab0755c068dba601690fb611f3ac81a09cdf0bc7455763c3","type":"reasoning","summary":[]}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":3,"output_index":0,"item":{"id":"rs_0aab0755c068dba601690fb611f3ac81a09cdf0bc7455763c3","type":"reasoning","summary":[]}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":4,"output_index":1,"item":{"id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","type":"message","status":"in_progress","content":[],"role":"assistant"}} + + event: response.content_part.added + data: {"type":"response.content_part.added","sequence_number":5,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":6,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"{\"","logprobs":[],"obfuscation":"FRSE2Xg4Zlm8ZC"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":7,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"author","logprobs":[],"obfuscation":"yOVxZwnwPd"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":8,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\":{\"","logprobs":[],"obfuscation":"2gdH3UjKn7p9"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":9,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"name","logprobs":[],"obfuscation":"yC1JPv5XOR2N"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"tX53HlJF35P9H"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"J","logprobs":[],"obfuscation":"EtaQPdRl67MBSep"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":".R","logprobs":[],"obfuscation":"inIyKyyMrOUvqS"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":13,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":".R","logprobs":[],"obfuscation":"EILjTviSrTF0ld"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":14,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":".","logprobs":[],"obfuscation":"yLLwcS41h3upq9Y"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":15,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":" Tolkien","logprobs":[],"obfuscation":"8exzRdOu"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":16,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"mnj6f7Tx86gFa"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":17,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"national","logprobs":[],"obfuscation":"kTAXhH1C"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":18,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"ity","logprobs":[],"obfuscation":"lmCwZO8RmMwd2"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":19,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"mwjZzCk2nZQe9"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":20,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"British","logprobs":[],"obfuscation":"EyvRvxuBK"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":21,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"hfEkZupXjk2638"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":22,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"IsmwSfSFAcAJcU"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":23,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"genres","logprobs":[],"obfuscation":"IQtYupB5bm"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":24,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\":[\"","logprobs":[],"obfuscation":"9IAahn76FgpL"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":25,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"Fantasy","logprobs":[],"obfuscation":"OMHBvYUds"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":26,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"HlxU6WDUGwneu"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":27,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"Adventure","logprobs":[],"obfuscation":"ech2Vhw"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":28,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"AKMMJLmgtycDx"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":29,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"Epic","logprobs":[],"obfuscation":"t209VHDHFuLF"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":30,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"Cr6RboWi7ioxS"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":31,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"High","logprobs":[],"obfuscation":"obU3L2eqqyS4"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":32,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":" fantasy","logprobs":[],"obfuscation":"LUcEZc9a"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":33,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\"],","logprobs":[],"obfuscation":"mntl6wRF0Z9vj"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":34,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\"","logprobs":[],"obfuscation":"i8cTb3WH2EqqLnM"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":35,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"published","logprobs":[],"obfuscation":"aMJKxsW"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":36,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"_year","logprobs":[],"obfuscation":"ZXgdO0bgvI8"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":37,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\":","logprobs":[],"obfuscation":"oHU9zp2d7ZBE8r"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":38,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"195","logprobs":[],"obfuscation":"wDjlyAPKySdjw"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":39,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"4","logprobs":[],"obfuscation":"YhVTDZXJht9Deaa"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":40,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"uzKH47tBdPXm2n"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":41,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"title","logprobs":[],"obfuscation":"aXOJbtxSFSA"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":42,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"ni9nsl8eAvHWp"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":43,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"The","logprobs":[],"obfuscation":"secEK5zivRAr9"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":44,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":" Lord","logprobs":[],"obfuscation":"tTvtm7dHyTk"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":45,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":" of","logprobs":[],"obfuscation":"2LbYZOGAwQHVR"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":46,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"06rgzxqdEmme"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":47,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":" Rings","logprobs":[],"obfuscation":"x7YNUbaBsm"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":48,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"RgRi11lh9YHnhK"} + + event: response.output_text.done + data: {"type":"response.output_text.done","sequence_number":49,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\",\"High fantasy\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}","logprobs":[]} + + event: response.content_part.done + data: {"type":"response.content_part.done","sequence_number":50,"item_id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\",\"High fantasy\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":51,"output_index":1,"item":{"id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\",\"High fantasy\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}],"role":"assistant"}} + + event: response.completed + data: {"type":"response.completed","sequence_number":52,"response":{"id":"resp_0aab0755c068dba601690fb61193ac81a09b187ec6ae118666","object":"response","created_at":1762637329,"status":"completed","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-5-2025-08-07","output":[{"id":"rs_0aab0755c068dba601690fb611f3ac81a09cdf0bc7455763c3","type":"reasoning","summary":[]},{"id":"msg_0aab0755c068dba601690fb61b054481a08336dd277cca7e31","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic\",\"High fantasy\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":138,"input_tokens_details":{"cached_tokens":0},"output_tokens":628,"output_tokens_details":{"reasoning_tokens":576},"total_tokens":766},"user":null,"metadata":{}}} + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 305.219208ms diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/simple_object.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5383b0d91f992306490549db511df91f20c7b680 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/simple_object.yaml @@ -0,0 +1,132 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 564 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"input_text"}],"role":"user"}],"model":"gpt-5","text":{"format":{"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"type":"json_schema"}}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: |- + { + "id": "resp_027d860ff8453c5c01690fb5e8b590819c98d4fefe82a2d697", + "object": "response", + "created_at": 1762637288, + "status": "completed", + "background": false, + "billing": { + "payer": "developer" + }, + "error": null, + "incomplete_details": null, + "instructions": null, + "max_output_tokens": 4000, + "max_tool_calls": null, + "model": "gpt-5-2025-08-07", + "output": [ + { + "id": "rs_027d860ff8453c5c01690fb5e90bf8819cafd2ab51156cc379", + "type": "reasoning", + "summary": [] + }, + { + "id": "msg_027d860ff8453c5c01690fb5fe2978819ca252f996006bf96e", + "type": "message", + "status": "completed", + "content": [ + { + "type": "output_text", + "annotations": [], + "logprobs": [], + "text": "{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}" + } + ], + "role": "assistant" + } + ], + "parallel_tool_calls": true, + "previous_response_id": null, + "prompt_cache_key": null, + "prompt_cache_retention": null, + "reasoning": { + "effort": "medium", + "summary": null + }, + "safety_identifier": null, + "service_tier": "default", + "store": false, + "temperature": 1.0, + "text": { + "format": { + "type": "json_schema", + "description": null, + "name": "Person", + "schema": { + "additionalProperties": false, + "properties": { + "age": { + "description": "The person's age", + "type": "integer" + }, + "city": { + "description": "The city where the person lives", + "type": "string" + }, + "name": { + "description": "The person's name", + "type": "string" + } + }, + "required": [ + "name", + "age", + "city" + ], + "type": "object" + }, + "strict": true + }, + "verbosity": "medium" + }, + "tool_choice": "auto", + "tools": [], + "top_logprobs": 0, + "top_p": 1.0, + "truncation": "disabled", + "usage": { + "input_tokens": 80, + "input_tokens_details": { + "cached_tokens": 0 + }, + "output_tokens": 1238, + "output_tokens_details": { + "reasoning_tokens": 1216 + }, + "total_tokens": 1318 + }, + "user": null, + "metadata": {} + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 22.08059475s diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/simple_object_streaming.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ac2f26b05ecdcd11536e805e5fbd47a6c1040c96 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-gpt-5/simple_object_streaming.yaml @@ -0,0 +1,101 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 578 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"input_text"}],"role":"user"}],"model":"gpt-5","text":{"format":{"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"type":"json_schema"}},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + event: response.created + data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_0f3ec5120e1249d801690fb5fecea8819da2de394f03b31ace","object":"response","created_at":1762637310,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-5-2025-08-07","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.in_progress + data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_0f3ec5120e1249d801690fb5fecea8819da2de394f03b31ace","object":"response","created_at":1762637310,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-5-2025-08-07","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"rs_0f3ec5120e1249d801690fb5ff2974819dba13ad28975c504b","type":"reasoning","summary":[]}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":3,"output_index":0,"item":{"id":"rs_0f3ec5120e1249d801690fb5ff2974819dba13ad28975c504b","type":"reasoning","summary":[]}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":4,"output_index":1,"item":{"id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","type":"message","status":"in_progress","content":[],"role":"assistant"}} + + event: response.content_part.added + data: {"type":"response.content_part.added","sequence_number":5,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":6,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"{\"","logprobs":[],"obfuscation":"7GTnOqQFxPeOpK"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":7,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"age","logprobs":[],"obfuscation":"ahq3wJcqDg67C"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":8,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"\":","logprobs":[],"obfuscation":"osUjj5cRs2ORzR"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":9,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"30","logprobs":[],"obfuscation":"5eJ5yJuRiS5WN3"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"e7TX0qCwG2Lo3U"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"city","logprobs":[],"obfuscation":"YwOQpDl4Ogwh"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"ZHxRR3Nq8o8BN"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":13,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"Paris","logprobs":[],"obfuscation":"t5OlzBTusIz"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":14,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"UxQ64dgXht7OW"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":15,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"name","logprobs":[],"obfuscation":"QrSseCXd0dr7"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":16,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"UGFZp4OC4WO91"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":17,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"Alice","logprobs":[],"obfuscation":"tsJ1GFIhmG1"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":18,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"abWOYlvE9UO8wT"} + + event: response.output_text.done + data: {"type":"response.output_text.done","sequence_number":19,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}","logprobs":[]} + + event: response.content_part.done + data: {"type":"response.content_part.done","sequence_number":20,"item_id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":21,"output_index":1,"item":{"id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}],"role":"assistant"}} + + event: response.completed + data: {"type":"response.completed","sequence_number":22,"response":{"id":"resp_0f3ec5120e1249d801690fb5fecea8819da2de394f03b31ace","object":"response","created_at":1762637310,"status":"completed","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-5-2025-08-07","output":[{"id":"rs_0f3ec5120e1249d801690fb5ff2974819dba13ad28975c504b","type":"reasoning","summary":[]},{"id":"msg_0f3ec5120e1249d801690fb6033aa0819db234a634e05d5a30","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":80,"input_tokens_details":{"cached_tokens":0},"output_tokens":214,"output_tokens_details":{"reasoning_tokens":192},"total_tokens":294},"user":null,"metadata":{}}} + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 217.170041ms diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/complex_object.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/complex_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cbea589d66064547e3ff3b4f8148cc7d286d8996 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/complex_object.yaml @@ -0,0 +1,154 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 911 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"input_text"}],"role":"user"}],"model":"o4-mini","text":{"format":{"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"type":"json_schema"}}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: |- + { + "id": "resp_017b2c309fa6f10301690fb622abf481a0a85dad143f87cc57", + "object": "response", + "created_at": 1762637346, + "status": "completed", + "background": false, + "billing": { + "payer": "developer" + }, + "error": null, + "incomplete_details": null, + "instructions": null, + "max_output_tokens": 4000, + "max_tool_calls": null, + "model": "o4-mini-2025-04-16", + "output": [ + { + "id": "rs_017b2c309fa6f10301690fb623133881a0b253929605c93041", + "type": "reasoning", + "summary": [] + }, + { + "id": "msg_017b2c309fa6f10301690fb6269d6c81a0abb3acf886a1efe0", + "type": "message", + "status": "completed", + "content": [ + { + "type": "output_text", + "annotations": [], + "logprobs": [], + "text": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"English\"},\"genres\":[\"Fantasy\",\"Adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}" + } + ], + "role": "assistant" + } + ], + "parallel_tool_calls": true, + "previous_response_id": null, + "prompt_cache_key": null, + "prompt_cache_retention": null, + "reasoning": { + "effort": "medium", + "summary": null + }, + "safety_identifier": null, + "service_tier": "default", + "store": false, + "temperature": 1.0, + "text": { + "format": { + "type": "json_schema", + "description": null, + "name": "Book", + "schema": { + "additionalProperties": false, + "properties": { + "author": { + "additionalProperties": false, + "properties": { + "name": { + "description": "Author's name", + "type": "string" + }, + "nationality": { + "description": "Author's nationality", + "type": "string" + } + }, + "required": [ + "name", + "nationality" + ], + "type": "object" + }, + "genres": { + "description": "List of genres", + "items": { + "type": "string" + }, + "type": "array" + }, + "published_year": { + "description": "Year the book was published", + "type": "integer" + }, + "title": { + "description": "The book title", + "type": "string" + } + }, + "required": [ + "title", + "author", + "genres", + "published_year" + ], + "type": "object" + }, + "strict": true + }, + "verbosity": "medium" + }, + "tool_choice": "auto", + "tools": [], + "top_logprobs": 0, + "top_p": 1.0, + "truncation": "disabled", + "usage": { + "input_tokens": 138, + "input_tokens_details": { + "cached_tokens": 0 + }, + "output_tokens": 431, + "output_tokens_details": { + "reasoning_tokens": 384 + }, + "total_tokens": 569 + }, + "user": null, + "metadata": {} + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 4.660075375s diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/complex_object_streaming.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/complex_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a33dac621c0b9379af7938a15e260928bf9a5042 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/complex_object_streaming.yaml @@ -0,0 +1,176 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 925 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"input_text"}],"role":"user"}],"model":"o4-mini","text":{"format":{"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"type":"json_schema"}},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + event: response.created + data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_0feabf3ec12ead7701690fb62757bc81a09ca434178fe08235","object":"response","created_at":1762637351,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"o4-mini-2025-04-16","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.in_progress + data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_0feabf3ec12ead7701690fb62757bc81a09ca434178fe08235","object":"response","created_at":1762637351,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"o4-mini-2025-04-16","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"rs_0feabf3ec12ead7701690fb62796f881a0b162227941dc79ef","type":"reasoning","summary":[]}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":3,"output_index":0,"item":{"id":"rs_0feabf3ec12ead7701690fb62796f881a0b162227941dc79ef","type":"reasoning","summary":[]}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":4,"output_index":1,"item":{"id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","type":"message","status":"in_progress","content":[],"role":"assistant"}} + + event: response.content_part.added + data: {"type":"response.content_part.added","sequence_number":5,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":6,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"{\"","logprobs":[],"obfuscation":"UKrPeS79BSa2RR"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":7,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"author","logprobs":[],"obfuscation":"4HYFJNddaM"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":8,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\":{\"","logprobs":[],"obfuscation":"KxfmMUbv6rSi"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":9,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"name","logprobs":[],"obfuscation":"hK7kM7NKGjH6"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"6wHz01JjOsAH0"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"J","logprobs":[],"obfuscation":"bNKD05FCk2HtePG"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":".R","logprobs":[],"obfuscation":"cut8dbqMYbhOnj"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":13,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":".R","logprobs":[],"obfuscation":"nvA4l6kpG3sJEu"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":14,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":".","logprobs":[],"obfuscation":"QrOGoNp8B9iFZL4"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":15,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":" Tolkien","logprobs":[],"obfuscation":"IH7RJtC7"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":16,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"Js54Ii28VMaYR"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":17,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"national","logprobs":[],"obfuscation":"7nLZE4t9"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":18,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"ity","logprobs":[],"obfuscation":"5vI2FTTXwlAOy"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":19,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"wUMHr1ru5bQtE"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":20,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"English","logprobs":[],"obfuscation":"lsI0ms9i1"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":21,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"aRrNa6GpujOaaO"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":22,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"Kt3i52uXhZ03Mf"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":23,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"genres","logprobs":[],"obfuscation":"G1WDFmbb9Q"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":24,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\":[\"","logprobs":[],"obfuscation":"6O7ClIrlzRhF"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":25,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"Fantasy","logprobs":[],"obfuscation":"wkIXL8F1U"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":26,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"dKXLAcp4XePv8"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":27,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"Adventure","logprobs":[],"obfuscation":"WqXwtaT"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":28,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\"],","logprobs":[],"obfuscation":"TdJkB47ahMYzw"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":29,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\"","logprobs":[],"obfuscation":"IMl8aiOGDVVszW4"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":30,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"published","logprobs":[],"obfuscation":"epu511F"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":31,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"_year","logprobs":[],"obfuscation":"nQ0Lilgt6ou"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":32,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\":","logprobs":[],"obfuscation":"PSA5xVUFXYVr6g"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":33,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"195","logprobs":[],"obfuscation":"UNVN1tMqPGaBa"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":34,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"4","logprobs":[],"obfuscation":"RoUacQkG36iqsQT"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":35,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"WoGTOtmNLBtcdp"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":36,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"title","logprobs":[],"obfuscation":"tdpLqHv2M45"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":37,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"2H1pTP6cRXFKQ"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":38,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"The","logprobs":[],"obfuscation":"XyHCviQ1pz0nu"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":39,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":" Lord","logprobs":[],"obfuscation":"ZJPCj7Z7IG0"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":40,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":" of","logprobs":[],"obfuscation":"t8V077vZPcKp9"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":41,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"UuQWm1gxDQnK"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":42,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":" Rings","logprobs":[],"obfuscation":"UYyiAtjL19"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":43,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"fFubIsqj7lUp0g"} + + event: response.output_text.done + data: {"type":"response.output_text.done","sequence_number":44,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"English\"},\"genres\":[\"Fantasy\",\"Adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}","logprobs":[]} + + event: response.content_part.done + data: {"type":"response.content_part.done","sequence_number":45,"item_id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"English\"},\"genres\":[\"Fantasy\",\"Adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":46,"output_index":1,"item":{"id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"English\"},\"genres\":[\"Fantasy\",\"Adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}],"role":"assistant"}} + + event: response.completed + data: {"type":"response.completed","sequence_number":47,"response":{"id":"resp_0feabf3ec12ead7701690fb62757bc81a09ca434178fe08235","object":"response","created_at":1762637351,"status":"completed","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"o4-mini-2025-04-16","output":[{"id":"rs_0feabf3ec12ead7701690fb62796f881a0b162227941dc79ef","type":"reasoning","summary":[]},{"id":"msg_0feabf3ec12ead7701690fb62cbd0c81a08295b29b09eeda24","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"English\"},\"genres\":[\"Fantasy\",\"Adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":138,"input_tokens_details":{"cached_tokens":0},"output_tokens":431,"output_tokens_details":{"reasoning_tokens":384},"total_tokens":569},"user":null,"metadata":{}}} + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 257.810458ms diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/simple_object.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/simple_object.yaml new file mode 100644 index 0000000000000000000000000000000000000000..731fefffbd3a224b08d160a364a903e7b49e8757 --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/simple_object.yaml @@ -0,0 +1,132 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 566 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"input_text"}],"role":"user"}],"model":"o4-mini","text":{"format":{"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"type":"json_schema"}}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: |- + { + "id": "resp_098f453613ad314501690fb61bc6e0819382952362bbb4e647", + "object": "response", + "created_at": 1762637339, + "status": "completed", + "background": false, + "billing": { + "payer": "developer" + }, + "error": null, + "incomplete_details": null, + "instructions": null, + "max_output_tokens": 4000, + "max_tool_calls": null, + "model": "o4-mini-2025-04-16", + "output": [ + { + "id": "rs_098f453613ad314501690fb61c869c81939eea265ba983fa58", + "type": "reasoning", + "summary": [] + }, + { + "id": "msg_098f453613ad314501690fb61f8828819389d543a45e07bc0b", + "type": "message", + "status": "completed", + "content": [ + { + "type": "output_text", + "annotations": [], + "logprobs": [], + "text": "{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}" + } + ], + "role": "assistant" + } + ], + "parallel_tool_calls": true, + "previous_response_id": null, + "prompt_cache_key": null, + "prompt_cache_retention": null, + "reasoning": { + "effort": "medium", + "summary": null + }, + "safety_identifier": null, + "service_tier": "default", + "store": false, + "temperature": 1.0, + "text": { + "format": { + "type": "json_schema", + "description": null, + "name": "Person", + "schema": { + "additionalProperties": false, + "properties": { + "age": { + "description": "The person's age", + "type": "integer" + }, + "city": { + "description": "The city where the person lives", + "type": "string" + }, + "name": { + "description": "The person's name", + "type": "string" + } + }, + "required": [ + "name", + "age", + "city" + ], + "type": "object" + }, + "strict": true + }, + "verbosity": "medium" + }, + "tool_choice": "auto", + "tools": [], + "top_logprobs": 0, + "top_p": 1.0, + "truncation": "disabled", + "usage": { + "input_tokens": 80, + "input_tokens_details": { + "cached_tokens": 0 + }, + "output_tokens": 342, + "output_tokens_details": { + "reasoning_tokens": 320 + }, + "total_tokens": 422 + }, + "user": null, + "metadata": {} + } + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 4.174928125s diff --git a/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/simple_object_streaming.yaml b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/simple_object_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e802239e8b7c38656e9fe8b16d979b9b81dee79b --- /dev/null +++ b/providertests/testdata/TestOpenAIResponsesObjectGeneration/openai-o4-mini/simple_object_streaming.yaml @@ -0,0 +1,101 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 580 + host: "" + body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"input_text"}],"role":"user"}],"model":"o4-mini","text":{"format":{"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"type":"json_schema"}},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAI/Go 2.7.1 + url: https://api.openai.com/v1/responses + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + event: response.created + data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_092dac14c3675a9901690fb61fee90819f92f6cd6a5129655b","object":"response","created_at":1762637343,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"o4-mini-2025-04-16","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.in_progress + data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_092dac14c3675a9901690fb61fee90819f92f6cd6a5129655b","object":"response","created_at":1762637343,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"o4-mini-2025-04-16","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"rs_092dac14c3675a9901690fb6206d14819f8e540e484376b314","type":"reasoning","summary":[]}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":3,"output_index":0,"item":{"id":"rs_092dac14c3675a9901690fb6206d14819f8e540e484376b314","type":"reasoning","summary":[]}} + + event: response.output_item.added + data: {"type":"response.output_item.added","sequence_number":4,"output_index":1,"item":{"id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","type":"message","status":"in_progress","content":[],"role":"assistant"}} + + event: response.content_part.added + data: {"type":"response.content_part.added","sequence_number":5,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":6,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"{\"","logprobs":[],"obfuscation":"RaOJnqjM3VMFeX"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":7,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"age","logprobs":[],"obfuscation":"CHzhDPf4XW2LQ"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":8,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"\":","logprobs":[],"obfuscation":"aPilRCMMML2n5Z"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":9,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"30","logprobs":[],"obfuscation":"WCYnVeEqYrabrv"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":",\"","logprobs":[],"obfuscation":"8TEJwUIK3jbPWi"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"city","logprobs":[],"obfuscation":"vJNJD3fm6lN3"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"jHpf1NTinBnYc"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":13,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"Paris","logprobs":[],"obfuscation":"2CDW692CQMC"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":14,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"Tu4CGFL4JfOj1"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":15,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"name","logprobs":[],"obfuscation":"RfV3CrSjJYW6"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":16,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"aQM4HvXYeHWW4"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":17,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"Alice","logprobs":[],"obfuscation":"TBbzJB26w73"} + + event: response.output_text.delta + data: {"type":"response.output_text.delta","sequence_number":18,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"delta":"\"}","logprobs":[],"obfuscation":"PIppQ9A3zqutnN"} + + event: response.output_text.done + data: {"type":"response.output_text.done","sequence_number":19,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}","logprobs":[]} + + event: response.content_part.done + data: {"type":"response.content_part.done","sequence_number":20,"item_id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","output_index":1,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}} + + event: response.output_item.done + data: {"type":"response.output_item.done","sequence_number":21,"output_index":1,"item":{"id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}],"role":"assistant"}} + + event: response.completed + data: {"type":"response.completed","sequence_number":22,"response":{"id":"resp_092dac14c3675a9901690fb61fee90819f92f6cd6a5129655b","object":"response","created_at":1762637343,"status":"completed","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"o4-mini-2025-04-16","output":[{"id":"rs_092dac14c3675a9901690fb6206d14819f8e540e484376b314","type":"reasoning","summary":[]},{"id":"msg_092dac14c3675a9901690fb6224a44819fa81dd0010f806bce","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person's age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person's name","type":"string"}},"required":["name","age","city"],"type":"object"},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":80,"input_tokens_details":{"cached_tokens":0},"output_tokens":214,"output_tokens_details":{"reasoning_tokens":192},"total_tokens":294},"user":null,"metadata":{}}} + + headers: + Content-Type: + - text/event-stream; charset=utf-8 + status: 200 OK + code: 200 + duration: 191.94075ms diff --git a/schema/schema.go b/schema/schema.go new file mode 100644 index 0000000000000000000000000000000000000000..bb6f3e7c304887f29f05b4129f134268cd115964 --- /dev/null +++ b/schema/schema.go @@ -0,0 +1,403 @@ +// Package schema provides JSON schema generation and validation utilities. +// It supports automatic schema generation from Go types and validation of parsed objects. +package schema + +import ( + "context" + "encoding/json" + "fmt" + "reflect" + "slices" + "strings" + + jsonrepair "github.com/RealAlexandreAI/json-repair" + "github.com/kaptinlin/jsonschema" +) + +// ObjectRepairFunc is a function that attempts to repair invalid JSON output. +// It receives the raw text and the error encountered during parsing or validation, +// and returns repaired text or an error if repair is not possible. +type ObjectRepairFunc func(ctx context.Context, text string, err error) (string, error) + +// ParseError is returned when object generation fails +// due to parsing errors, validation errors, or model failures. +type ParseError struct { + RawText string + ParseError error + ValidationError error +} + +// Schema represents a JSON schema for tool input validation. +type Schema struct { + Type string `json:"type,omitempty"` + Properties map[string]*Schema `json:"properties,omitempty"` + Required []string `json:"required,omitempty"` + Items *Schema `json:"items,omitempty"` + Description string `json:"description,omitempty"` + Enum []any `json:"enum,omitempty"` + Format string `json:"format,omitempty"` + Minimum *float64 `json:"minimum,omitempty"` + Maximum *float64 `json:"maximum,omitempty"` + MinLength *int `json:"minLength,omitempty"` + MaxLength *int `json:"maxLength,omitempty"` +} + +// ParseState represents the state of JSON parsing. +type ParseState string + +const ( + // ParseStateUndefined means input was undefined/empty. + ParseStateUndefined ParseState = "undefined" + + // ParseStateSuccessful means JSON parsed without repair. + ParseStateSuccessful ParseState = "successful" + + // ParseStateRepaired means JSON parsed after repair. + ParseStateRepaired ParseState = "repaired" + + // ParseStateFailed means JSON could not be parsed even after repair. + ParseStateFailed ParseState = "failed" +) + +// ToParameters converts a Schema to the parameters map format expected by ToolInfo. +func ToParameters(s Schema) map[string]any { + if s.Properties == nil { + return make(map[string]any) + } + + result := make(map[string]any) + for name, propSchema := range s.Properties { + result[name] = ToMap(*propSchema) + } + return result +} + +// Generate generates a JSON schema from a reflect.Type. +// It recursively processes struct fields, arrays, maps, and primitive types. +func Generate(t reflect.Type) Schema { + return generateSchemaRecursive(t, make(map[reflect.Type]bool)) +} + +func generateSchemaRecursive(t reflect.Type, visited map[reflect.Type]bool) Schema { + if t.Kind() == reflect.Pointer { + t = t.Elem() + } + + if visited[t] { + return Schema{Type: "object"} + } + visited[t] = true + defer delete(visited, t) + + switch t.Kind() { + case reflect.String: + return Schema{Type: "string"} + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, + reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: + return Schema{Type: "integer"} + case reflect.Float32, reflect.Float64: + return Schema{Type: "number"} + case reflect.Bool: + return Schema{Type: "boolean"} + case reflect.Slice, reflect.Array: + itemSchema := generateSchemaRecursive(t.Elem(), visited) + return Schema{ + Type: "array", + Items: &itemSchema, + } + case reflect.Map: + if t.Key().Kind() == reflect.String { + valueSchema := generateSchemaRecursive(t.Elem(), visited) + schema := Schema{ + Type: "object", + Properties: map[string]*Schema{ + "*": &valueSchema, + }, + } + return schema + } + return Schema{Type: "object"} + case reflect.Struct: + schema := Schema{ + Type: "object", + Properties: make(map[string]*Schema), + } + for i := range t.NumField() { + field := t.Field(i) + + if !field.IsExported() { + continue + } + + jsonTag := field.Tag.Get("json") + if jsonTag == "-" { + continue + } + + fieldName := field.Name + required := true + + if jsonTag != "" { + parts := strings.Split(jsonTag, ",") + if parts[0] != "" { + fieldName = parts[0] + } + + if slices.Contains(parts[1:], "omitempty") { + required = false + } + } else { + fieldName = toSnakeCase(fieldName) + } + + fieldSchema := generateSchemaRecursive(field.Type, visited) + + if desc := field.Tag.Get("description"); desc != "" { + fieldSchema.Description = desc + } + + if enumTag := field.Tag.Get("enum"); enumTag != "" { + enumValues := strings.Split(enumTag, ",") + fieldSchema.Enum = make([]any, len(enumValues)) + for i, v := range enumValues { + fieldSchema.Enum[i] = strings.TrimSpace(v) + } + } + + schema.Properties[fieldName] = &fieldSchema + + if required { + schema.Required = append(schema.Required, fieldName) + } + } + + return schema + case reflect.Interface: + return Schema{Type: "object"} + default: + return Schema{Type: "object"} + } +} + +// ToMap converts a Schema to a map representation suitable for JSON Schema. +func ToMap(schema Schema) map[string]any { + result := make(map[string]any) + + if schema.Type != "" { + result["type"] = schema.Type + } + + if schema.Description != "" { + result["description"] = schema.Description + } + + if len(schema.Enum) > 0 { + result["enum"] = schema.Enum + } + + if schema.Format != "" { + result["format"] = schema.Format + } + + if schema.Minimum != nil { + result["minimum"] = *schema.Minimum + } + + if schema.Maximum != nil { + result["maximum"] = *schema.Maximum + } + + if schema.MinLength != nil { + result["minLength"] = *schema.MinLength + } + + if schema.MaxLength != nil { + result["maxLength"] = *schema.MaxLength + } + + if schema.Properties != nil { + props := make(map[string]any) + for name, propSchema := range schema.Properties { + props[name] = ToMap(*propSchema) + } + result["properties"] = props + } + + if len(schema.Required) > 0 { + result["required"] = schema.Required + } + + if schema.Items != nil { + itemsMap := ToMap(*schema.Items) + // Ensure type is always set for items, even if it was blank for llama.cpp compatibility + if _, hasType := itemsMap["type"]; !hasType && schema.Items.Type == "" { + if len(schema.Items.Properties) > 0 { + itemsMap["type"] = "object" + } + } + result["items"] = itemsMap + } + + return result +} + +// ParsePartialJSON attempts to parse potentially incomplete JSON. +// It first tries standard JSON parsing, then attempts repair if that fails. +// +// Returns: +// - result: The parsed JSON value (map, slice, or primitive) +// - state: Indicates whether parsing succeeded, needed repair, or failed +// - err: The error if parsing failed completely +// +// Example: +// +// obj, state, err := ParsePartialJSON(`{"name": "John", "age": 25`) +// // Result: map[string]any{"name": "John", "age": 25}, ParseStateRepaired, nil +func ParsePartialJSON(text string) (any, ParseState, error) { + if text == "" { + return nil, ParseStateUndefined, nil + } + + var result any + if err := json.Unmarshal([]byte(text), &result); err == nil { + return result, ParseStateSuccessful, nil + } + + repaired, err := jsonrepair.RepairJSON(text) + if err != nil { + return nil, ParseStateFailed, fmt.Errorf("json repair failed: %w", err) + } + + if err := json.Unmarshal([]byte(repaired), &result); err != nil { + return nil, ParseStateFailed, fmt.Errorf("failed to parse repaired json: %w", err) + } + + return result, ParseStateRepaired, nil +} + +// Error implements the error interface. +func (e *ParseError) Error() string { + if e.ValidationError != nil { + return fmt.Sprintf("object validation failed: %v", e.ValidationError) + } + if e.ParseError != nil { + return fmt.Sprintf("failed to parse object: %v", e.ParseError) + } + return "failed to generate object" +} + +// ParseAndValidate combines JSON parsing and validation. +// Returns the parsed object if both parsing and validation succeed. +func ParseAndValidate(text string, schema Schema) (any, error) { + obj, state, err := ParsePartialJSON(text) + if state == ParseStateFailed { + return nil, &ParseError{ + RawText: text, + ParseError: err, + } + } + + if err := validateAgainstSchema(obj, schema); err != nil { + return nil, &ParseError{ + RawText: text, + ValidationError: err, + } + } + + return obj, nil +} + +// ValidateAgainstSchema validates a parsed object against a Schema. +func ValidateAgainstSchema(obj any, schema Schema) error { + return validateAgainstSchema(obj, schema) +} + +func validateAgainstSchema(obj any, schema Schema) error { + jsonSchemaBytes, err := json.Marshal(schema) + if err != nil { + return fmt.Errorf("failed to marshal schema: %w", err) + } + + compiler := jsonschema.NewCompiler() + validator, err := compiler.Compile(jsonSchemaBytes) + if err != nil { + return fmt.Errorf("invalid schema: %w", err) + } + + result := validator.Validate(obj) + if !result.IsValid() { + var errMsgs []string + for field, validationErr := range result.Errors { + errMsgs = append(errMsgs, fmt.Sprintf("%s: %s", field, validationErr.Message)) + } + return fmt.Errorf("validation failed: %s", strings.Join(errMsgs, "; ")) + } + + return nil +} + +// ParseAndValidateWithRepair attempts parsing, validation, and custom repair. +func ParseAndValidateWithRepair( + ctx context.Context, + text string, + schema Schema, + repair ObjectRepairFunc, +) (any, error) { + obj, state, parseErr := ParsePartialJSON(text) + + if state == ParseStateSuccessful || state == ParseStateRepaired { + validationErr := validateAgainstSchema(obj, schema) + if validationErr == nil { + return obj, nil + } + + if repair != nil { + repairedText, repairErr := repair(ctx, text, validationErr) + if repairErr == nil { + obj2, state2, _ := ParsePartialJSON(repairedText) + if state2 == ParseStateSuccessful || state2 == ParseStateRepaired { + if err := validateAgainstSchema(obj2, schema); err == nil { + return obj2, nil + } + } + } + } + + return nil, &ParseError{ + RawText: text, + ValidationError: validationErr, + } + } + + if repair != nil { + repairedText, repairErr := repair(ctx, text, parseErr) + if repairErr == nil { + obj2, state2, parseErr2 := ParsePartialJSON(repairedText) + if state2 == ParseStateSuccessful || state2 == ParseStateRepaired { + if err := validateAgainstSchema(obj2, schema); err == nil { + return obj2, nil + } + } + return nil, &ParseError{ + RawText: repairedText, + ParseError: parseErr2, + } + } + } + + return nil, &ParseError{ + RawText: text, + ParseError: parseErr, + } +} + +func toSnakeCase(s string) string { + var result strings.Builder + for i, r := range s { + if i > 0 && r >= 'A' && r <= 'Z' { + result.WriteByte('_') + } + result.WriteRune(r) + } + return strings.ToLower(result.String()) +} diff --git a/schema/schema_test.go b/schema/schema_test.go new file mode 100644 index 0000000000000000000000000000000000000000..a0d1758198706c3aad0f718138269b7d443796c7 --- /dev/null +++ b/schema/schema_test.go @@ -0,0 +1,534 @@ +package schema + +import ( + "reflect" + "testing" + + "github.com/stretchr/testify/require" +) + +func TestEnumSupport(t *testing.T) { + // Test enum via struct tags + type WeatherInput struct { + Location string `json:"location" description:"City name"` + Units string `json:"units" enum:"celsius,fahrenheit,kelvin" description:"Temperature units"` + Format string `json:"format,omitempty" enum:"json,xml,text"` + } + + schema := Generate(reflect.TypeOf(WeatherInput{})) + + require.Equal(t, "object", schema.Type) + + // Check units field has enum values + unitsSchema := schema.Properties["units"] + require.NotNil(t, unitsSchema, "Expected units property to exist") + require.Len(t, unitsSchema.Enum, 3) + expectedUnits := []string{"celsius", "fahrenheit", "kelvin"} + for i, expected := range expectedUnits { + require.Equal(t, expected, unitsSchema.Enum[i]) + } + + // Check required fields (format should not be required due to omitempty) + expectedRequired := []string{"location", "units"} + require.Len(t, schema.Required, len(expectedRequired)) +} + +func TestSchemaToParameters(t *testing.T) { + testSchema := Schema{ + Type: "object", + Properties: map[string]*Schema{ + "name": { + Type: "string", + Description: "The name field", + }, + "age": { + Type: "integer", + Minimum: func() *float64 { v := 0.0; return &v }(), + Maximum: func() *float64 { v := 120.0; return &v }(), + }, + "tags": { + Type: "array", + Items: &Schema{ + Type: "string", + }, + }, + "priority": { + Type: "string", + Enum: []any{"low", "medium", "high"}, + }, + }, + Required: []string{"name"}, + } + + params := ToParameters(testSchema) + + // Check name parameter + nameParam, ok := params["name"].(map[string]any) + require.True(t, ok, "Expected name parameter to exist") + require.Equal(t, "string", nameParam["type"]) + require.Equal(t, "The name field", nameParam["description"]) + + // Check age parameter with min/max + ageParam, ok := params["age"].(map[string]any) + require.True(t, ok, "Expected age parameter to exist") + require.Equal(t, "integer", ageParam["type"]) + require.Equal(t, 0.0, ageParam["minimum"]) + require.Equal(t, 120.0, ageParam["maximum"]) + + // Check priority parameter with enum + priorityParam, ok := params["priority"].(map[string]any) + require.True(t, ok, "Expected priority parameter to exist") + require.Equal(t, "string", priorityParam["type"]) + enumValues, ok := priorityParam["enum"].([]any) + require.True(t, ok) + require.Len(t, enumValues, 3) +} + +func TestGenerateSchemaBasicTypes(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + input any + expected Schema + }{ + { + name: "string type", + input: "", + expected: Schema{Type: "string"}, + }, + { + name: "int type", + input: 0, + expected: Schema{Type: "integer"}, + }, + { + name: "int64 type", + input: int64(0), + expected: Schema{Type: "integer"}, + }, + { + name: "uint type", + input: uint(0), + expected: Schema{Type: "integer"}, + }, + { + name: "float64 type", + input: 0.0, + expected: Schema{Type: "number"}, + }, + { + name: "float32 type", + input: float32(0.0), + expected: Schema{Type: "number"}, + }, + { + name: "bool type", + input: false, + expected: Schema{Type: "boolean"}, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + schema := Generate(reflect.TypeOf(tt.input)) + require.Equal(t, tt.expected.Type, schema.Type) + }) + } +} + +func TestGenerateSchemaArrayTypes(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + input any + expected Schema + }{ + { + name: "string slice", + input: []string{}, + expected: Schema{ + Type: "array", + Items: &Schema{Type: "string"}, + }, + }, + { + name: "int slice", + input: []int{}, + expected: Schema{ + Type: "array", + Items: &Schema{Type: "integer"}, + }, + }, + { + name: "string array", + input: [3]string{}, + expected: Schema{ + Type: "array", + Items: &Schema{Type: "string"}, + }, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + schema := Generate(reflect.TypeOf(tt.input)) + require.Equal(t, tt.expected.Type, schema.Type) + require.NotNil(t, schema.Items, "Expected items schema to exist") + require.Equal(t, tt.expected.Items.Type, schema.Items.Type) + }) + } +} + +func TestGenerateSchemaMapTypes(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + input any + expected string + }{ + { + name: "string to string map", + input: map[string]string{}, + expected: "object", + }, + { + name: "string to int map", + input: map[string]int{}, + expected: "object", + }, + { + name: "int to string map", + input: map[int]string{}, + expected: "object", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + schema := Generate(reflect.TypeOf(tt.input)) + require.Equal(t, tt.expected, schema.Type) + }) + } +} + +func TestGenerateSchemaStructTypes(t *testing.T) { + t.Parallel() + + type SimpleStruct struct { + Name string `json:"name" description:"The name field"` + Age int `json:"age"` + } + + type StructWithOmitEmpty struct { + Required string `json:"required"` + Optional string `json:"optional,omitempty"` + } + + type StructWithJSONIgnore struct { + Visible string `json:"visible"` + Hidden string `json:"-"` + } + + type StructWithoutJSONTags struct { + FirstName string + LastName string + } + + tests := []struct { + name string + input any + validate func(t *testing.T, schema Schema) + }{ + { + name: "simple struct", + input: SimpleStruct{}, + validate: func(t *testing.T, schema Schema) { + require.Equal(t, "object", schema.Type) + require.Len(t, schema.Properties, 2) + require.NotNil(t, schema.Properties["name"], "Expected name property to exist") + require.Equal(t, "The name field", schema.Properties["name"].Description) + require.Len(t, schema.Required, 2) + }, + }, + { + name: "struct with omitempty", + input: StructWithOmitEmpty{}, + validate: func(t *testing.T, schema Schema) { + require.Len(t, schema.Required, 1) + require.Equal(t, "required", schema.Required[0]) + }, + }, + { + name: "struct with json ignore", + input: StructWithJSONIgnore{}, + validate: func(t *testing.T, schema Schema) { + require.Len(t, schema.Properties, 1) + require.NotNil(t, schema.Properties["visible"], "Expected visible property to exist") + require.Nil(t, schema.Properties["hidden"], "Expected hidden property to not exist") + }, + }, + { + name: "struct without json tags", + input: StructWithoutJSONTags{}, + validate: func(t *testing.T, schema Schema) { + require.NotNil(t, schema.Properties["first_name"], "Expected first_name property to exist") + require.NotNil(t, schema.Properties["last_name"], "Expected last_name property to exist") + }, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + schema := Generate(reflect.TypeOf(tt.input)) + tt.validate(t, schema) + }) + } +} + +func TestGenerateSchemaPointerTypes(t *testing.T) { + t.Parallel() + + type StructWithPointers struct { + Name *string `json:"name"` + Age *int `json:"age"` + } + + schema := Generate(reflect.TypeOf(StructWithPointers{})) + + require.Equal(t, "object", schema.Type) + + require.NotNil(t, schema.Properties["name"], "Expected name property to exist") + require.Equal(t, "string", schema.Properties["name"].Type) + + require.NotNil(t, schema.Properties["age"], "Expected age property to exist") + require.Equal(t, "integer", schema.Properties["age"].Type) +} + +func TestGenerateSchemaNestedStructs(t *testing.T) { + t.Parallel() + + type Address struct { + Street string `json:"street"` + City string `json:"city"` + } + + type Person struct { + Name string `json:"name"` + Address Address `json:"address"` + } + + schema := Generate(reflect.TypeOf(Person{})) + + require.Equal(t, "object", schema.Type) + + require.NotNil(t, schema.Properties["address"], "Expected address property to exist") + + addressSchema := schema.Properties["address"] + require.Equal(t, "object", addressSchema.Type) + + require.NotNil(t, addressSchema.Properties["street"], "Expected street property in address to exist") + require.NotNil(t, addressSchema.Properties["city"], "Expected city property in address to exist") +} + +func TestGenerateSchemaRecursiveStructs(t *testing.T) { + t.Parallel() + + type Node struct { + Value string `json:"value"` + Next *Node `json:"next,omitempty"` + } + + schema := Generate(reflect.TypeOf(Node{})) + + require.Equal(t, "object", schema.Type) + + require.NotNil(t, schema.Properties["value"], "Expected value property to exist") + + require.NotNil(t, schema.Properties["next"], "Expected next property to exist") + + // The recursive reference should be handled gracefully + nextSchema := schema.Properties["next"] + require.Equal(t, "object", nextSchema.Type) +} + +func TestGenerateSchemaWithEnumTags(t *testing.T) { + t.Parallel() + + type ConfigInput struct { + Level string `json:"level" enum:"debug,info,warn,error" description:"Log level"` + Format string `json:"format" enum:"json,text"` + Optional string `json:"optional,omitempty" enum:"a,b,c"` + } + + schema := Generate(reflect.TypeOf(ConfigInput{})) + + // Check level field + levelSchema := schema.Properties["level"] + require.NotNil(t, levelSchema, "Expected level property to exist") + require.Len(t, levelSchema.Enum, 4) + expectedLevels := []string{"debug", "info", "warn", "error"} + for i, expected := range expectedLevels { + require.Equal(t, expected, levelSchema.Enum[i]) + } + + // Check format field + formatSchema := schema.Properties["format"] + require.NotNil(t, formatSchema, "Expected format property to exist") + require.Len(t, formatSchema.Enum, 2) + + // Check required fields (optional should not be required due to omitempty) + expectedRequired := []string{"level", "format"} + require.Len(t, schema.Required, len(expectedRequired)) +} + +func TestGenerateSchemaComplexTypes(t *testing.T) { + t.Parallel() + + type ComplexInput struct { + StringSlice []string `json:"string_slice"` + IntMap map[string]int `json:"int_map"` + NestedSlice []map[string]string `json:"nested_slice"` + Interface any `json:"interface"` + } + + schema := Generate(reflect.TypeOf(ComplexInput{})) + + // Check string slice + stringSliceSchema := schema.Properties["string_slice"] + require.NotNil(t, stringSliceSchema, "Expected string_slice property to exist") + require.Equal(t, "array", stringSliceSchema.Type) + require.Equal(t, "string", stringSliceSchema.Items.Type) + + // Check int map + intMapSchema := schema.Properties["int_map"] + require.NotNil(t, intMapSchema, "Expected int_map property to exist") + require.Equal(t, "object", intMapSchema.Type) + + // Check nested slice + nestedSliceSchema := schema.Properties["nested_slice"] + require.NotNil(t, nestedSliceSchema, "Expected nested_slice property to exist") + require.Equal(t, "array", nestedSliceSchema.Type) + require.Equal(t, "object", nestedSliceSchema.Items.Type) + + // Check interface + interfaceSchema := schema.Properties["interface"] + require.NotNil(t, interfaceSchema, "Expected interface property to exist") + require.Equal(t, "object", interfaceSchema.Type) +} + +func TestToSnakeCase(t *testing.T) { + t.Parallel() + + tests := []struct { + input string + expected string + }{ + {"FirstName", "first_name"}, + {"XMLHttpRequest", "x_m_l_http_request"}, + {"ID", "i_d"}, + {"HTTPSProxy", "h_t_t_p_s_proxy"}, + {"simple", "simple"}, + {"", ""}, + {"A", "a"}, + {"AB", "a_b"}, + {"CamelCase", "camel_case"}, + } + + for _, tt := range tests { + t.Run(tt.input, func(t *testing.T) { + t.Parallel() + result := toSnakeCase(tt.input) + require.Equal(t, tt.expected, result, "toSnakeCase(%s)", tt.input) + }) + } +} + +func TestSchemaToParametersEdgeCases(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + schema Schema + expected map[string]any + }{ + { + name: "non-object schema", + schema: Schema{ + Type: "string", + }, + expected: map[string]any{}, + }, + { + name: "object with no properties", + schema: Schema{ + Type: "object", + Properties: nil, + }, + expected: map[string]any{}, + }, + { + name: "object with empty properties", + schema: Schema{ + Type: "object", + Properties: map[string]*Schema{}, + }, + expected: map[string]any{}, + }, + { + name: "schema with all constraint types", + schema: Schema{ + Type: "object", + Properties: map[string]*Schema{ + "text": { + Type: "string", + Format: "email", + MinLength: func() *int { v := 5; return &v }(), + MaxLength: func() *int { v := 100; return &v }(), + }, + "number": { + Type: "number", + Minimum: func() *float64 { v := 0.0; return &v }(), + Maximum: func() *float64 { v := 100.0; return &v }(), + }, + }, + }, + expected: map[string]any{ + "text": map[string]any{ + "type": "string", + "format": "email", + "minLength": 5, + "maxLength": 100, + }, + "number": map[string]any{ + "type": "number", + "minimum": 0.0, + "maximum": 100.0, + }, + }, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + result := ToParameters(tt.schema) + require.Len(t, result, len(tt.expected)) + for key, expectedValue := range tt.expected { + require.NotNil(t, result[key], "Expected parameter %s to exist", key) + // Deep comparison would be complex, so we'll check key properties + resultParam := result[key].(map[string]any) + expectedParam := expectedValue.(map[string]any) + for propKey, propValue := range expectedParam { + require.Equal(t, propValue, resultParam[propKey], "Expected %s.%s", key, propKey) + } + } + }) + } +} diff --git a/tool.go b/tool.go index c7766aecf35055a09fbb22667335a0e047a49510..9dbff68584b0f7bebb64d58df6929d42ff40801c 100644 --- a/tool.go +++ b/tool.go @@ -5,24 +5,12 @@ import ( "encoding/json" "fmt" "reflect" - "slices" - "strings" + + "charm.land/fantasy/schema" ) // Schema represents a JSON schema for tool input validation. -type Schema struct { - Type string `json:"type,omitempty"` - Properties map[string]*Schema `json:"properties,omitempty"` - Required []string `json:"required,omitempty"` - Items *Schema `json:"items,omitempty"` - Description string `json:"description,omitempty"` - Enum []any `json:"enum,omitempty"` - Format string `json:"format,omitempty"` - Minimum *float64 `json:"minimum,omitempty"` - Maximum *float64 `json:"maximum,omitempty"` - MinLength *int `json:"minLength,omitempty"` - MaxLength *int `json:"maxLength,omitempty"` -} +type Schema = schema.Schema // ToolInfo represents tool metadata, matching the existing pattern. type ToolInfo struct { @@ -93,7 +81,7 @@ func NewAgentTool[TInput any]( fn func(ctx context.Context, input TInput, call ToolCall) (ToolResponse, error), ) AgentTool { var input TInput - schema := generateSchema(reflect.TypeOf(input)) + schema := schema.Generate(reflect.TypeOf(input)) return &funcToolWrapper[TInput]{ name: name, @@ -127,7 +115,7 @@ func (w *funcToolWrapper[TInput]) Info() ToolInfo { return ToolInfo{ Name: w.name, Description: w.description, - Parameters: schemaToParameters(w.schema), + Parameters: schema.ToParameters(w.schema), Required: w.schema.Required, } } @@ -140,201 +128,3 @@ func (w *funcToolWrapper[TInput]) Run(ctx context.Context, params ToolCall) (Too return w.fn(ctx, input, params) } - -// schemaToParameters converts a Schema to the parameters map format expected by ToolInfo. -func schemaToParameters(schema Schema) map[string]any { - if schema.Type != "object" || schema.Properties == nil { - return map[string]any{} - } - - params := make(map[string]any) - for name, propSchema := range schema.Properties { - param := map[string]any{ - "type": propSchema.Type, - } - - if propSchema.Description != "" { - param["description"] = propSchema.Description - } - - if len(propSchema.Enum) > 0 { - param["enum"] = propSchema.Enum - } - - if propSchema.Format != "" { - param["format"] = propSchema.Format - } - - if propSchema.Minimum != nil { - param["minimum"] = *propSchema.Minimum - } - - if propSchema.Maximum != nil { - param["maximum"] = *propSchema.Maximum - } - - if propSchema.MinLength != nil { - param["minLength"] = *propSchema.MinLength - } - - if propSchema.MaxLength != nil { - param["maxLength"] = *propSchema.MaxLength - } - - if propSchema.Items != nil { - param["items"] = schemaToParameters(*propSchema.Items) - } - - params[name] = param - } - - return params -} - -// generateSchema automatically generates a JSON schema from a Go type. -func generateSchema(t reflect.Type) Schema { - return generateSchemaRecursive(t, nil, make(map[reflect.Type]bool)) -} - -func generateSchemaRecursive(t, parent reflect.Type, visited map[reflect.Type]bool) Schema { - // Handle pointers - if t.Kind() == reflect.Pointer { - t = t.Elem() - } - - // Prevent infinite recursion - if visited[t] { - return Schema{Type: "object"} - } - visited[t] = true - defer delete(visited, t) - - switch t.Kind() { - case reflect.String: - return Schema{Type: "string"} - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, - reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - return Schema{Type: "integer"} - case reflect.Float32, reflect.Float64: - return Schema{Type: "number"} - case reflect.Bool: - return Schema{Type: "boolean"} - case reflect.Slice, reflect.Array: - itemSchema := generateSchemaRecursive(t.Elem(), t, visited) - return Schema{ - Type: "array", - Items: &itemSchema, - } - case reflect.Map: - if t.Key().Kind() == reflect.String { - valueSchema := generateSchemaRecursive(t.Elem(), t, visited) - schema := Schema{ - Type: "object", - Properties: map[string]*Schema{ - "*": &valueSchema, - }, - } - if useBlankType(parent) { - schema.Type = "" - } - return schema - } - return Schema{Type: "object"} - case reflect.Struct: - schema := Schema{ - Type: "object", - Properties: make(map[string]*Schema), - } - if useBlankType(parent) { - schema.Type = "" - } - - for i := range t.NumField() { - field := t.Field(i) - - // Skip unexported fields - if !field.IsExported() { - continue - } - - jsonTag := field.Tag.Get("json") - if jsonTag == "-" { - continue - } - - fieldName := field.Name - required := true - - // Parse JSON tag - if jsonTag != "" { - parts := strings.Split(jsonTag, ",") - if parts[0] != "" { - fieldName = parts[0] - } - - // Check for omitempty - if slices.Contains(parts[1:], "omitempty") { - required = false - } - } else { - // Convert field name to snake_case for JSON - fieldName = toSnakeCase(fieldName) - } - - fieldSchema := generateSchemaRecursive(field.Type, t, visited) - - // Add description from struct tag if available - if desc := field.Tag.Get("description"); desc != "" { - fieldSchema.Description = desc - } - - // Add enum values from struct tag if available - if enumTag := field.Tag.Get("enum"); enumTag != "" { - enumValues := strings.Split(enumTag, ",") - fieldSchema.Enum = make([]any, len(enumValues)) - for i, v := range enumValues { - fieldSchema.Enum[i] = strings.TrimSpace(v) - } - } - - schema.Properties[fieldName] = &fieldSchema - - if required { - schema.Required = append(schema.Required, fieldName) - } - } - - return schema - case reflect.Interface: - return Schema{Type: "object"} - default: - return Schema{Type: "object"} - } -} - -// toSnakeCase converts PascalCase to snake_case. -func toSnakeCase(s string) string { - var result strings.Builder - for i, r := range s { - if i > 0 && r >= 'A' && r <= 'Z' { - result.WriteByte('_') - } - result.WriteRune(r) - } - return strings.ToLower(result.String()) -} - -// NOTE(@andreynering): This is a hacky workaround for llama.cpp. -// Ideally, we should always output `type: object` for objects, but -// llama.cpp complains if we do for arrays of objects. -func useBlankType(parent reflect.Type) bool { - if parent == nil { - return false - } - switch parent.Kind() { - case reflect.Slice, reflect.Array: - return true - default: - return false - } -} diff --git a/tool_test.go b/tool_test.go index 6d6b2f0ccee03b95e79ba009a4c270b0292b76a0..9f7db1d56905102d911fc69d7f62063bc0295c01 100644 --- a/tool_test.go +++ b/tool_test.go @@ -3,7 +3,6 @@ package fantasy import ( "context" "fmt" - "reflect" "testing" "github.com/stretchr/testify/require" @@ -64,7 +63,6 @@ func TestEnumToolExample(t *testing.T) { return NewTextResponse(fmt.Sprintf("Weather in %s: %s, sunny", input.Location, temp)), nil }, ) - // Check that the schema includes enum values info := tool.Info() unitsParam, ok := info.Parameters["units"].(map[string]any) @@ -85,529 +83,3 @@ func TestEnumToolExample(t *testing.T) { require.Contains(t, result.Content, "San Francisco") require.Contains(t, result.Content, "72°F") } - -func TestEnumSupport(t *testing.T) { - // Test enum via struct tags - type WeatherInput struct { - Location string `json:"location" description:"City name"` - Units string `json:"units" enum:"celsius,fahrenheit,kelvin" description:"Temperature units"` - Format string `json:"format,omitempty" enum:"json,xml,text"` - } - - schema := generateSchema(reflect.TypeOf(WeatherInput{})) - - require.Equal(t, "object", schema.Type) - - // Check units field has enum values - unitsSchema := schema.Properties["units"] - require.NotNil(t, unitsSchema, "Expected units property to exist") - require.Len(t, unitsSchema.Enum, 3) - expectedUnits := []string{"celsius", "fahrenheit", "kelvin"} - for i, expected := range expectedUnits { - require.Equal(t, expected, unitsSchema.Enum[i]) - } - - // Check required fields (format should not be required due to omitempty) - expectedRequired := []string{"location", "units"} - require.Len(t, schema.Required, len(expectedRequired)) -} - -func TestSchemaToParameters(t *testing.T) { - schema := Schema{ - Type: "object", - Properties: map[string]*Schema{ - "name": { - Type: "string", - Description: "The name field", - }, - "age": { - Type: "integer", - Minimum: func() *float64 { v := 0.0; return &v }(), - Maximum: func() *float64 { v := 120.0; return &v }(), - }, - "tags": { - Type: "array", - Items: &Schema{ - Type: "string", - }, - }, - "priority": { - Type: "string", - Enum: []any{"low", "medium", "high"}, - }, - }, - Required: []string{"name"}, - } - - params := schemaToParameters(schema) - - // Check name parameter - nameParam, ok := params["name"].(map[string]any) - require.True(t, ok, "Expected name parameter to exist") - require.Equal(t, "string", nameParam["type"]) - require.Equal(t, "The name field", nameParam["description"]) - - // Check age parameter with min/max - ageParam, ok := params["age"].(map[string]any) - require.True(t, ok, "Expected age parameter to exist") - require.Equal(t, "integer", ageParam["type"]) - require.Equal(t, 0.0, ageParam["minimum"]) - require.Equal(t, 120.0, ageParam["maximum"]) - - // Check priority parameter with enum - priorityParam, ok := params["priority"].(map[string]any) - require.True(t, ok, "Expected priority parameter to exist") - require.Equal(t, "string", priorityParam["type"]) - enumValues, ok := priorityParam["enum"].([]any) - require.True(t, ok) - require.Len(t, enumValues, 3) -} - -func TestGenerateSchemaBasicTypes(t *testing.T) { - t.Parallel() - - tests := []struct { - name string - input any - expected Schema - }{ - { - name: "string type", - input: "", - expected: Schema{Type: "string"}, - }, - { - name: "int type", - input: 0, - expected: Schema{Type: "integer"}, - }, - { - name: "int64 type", - input: int64(0), - expected: Schema{Type: "integer"}, - }, - { - name: "uint type", - input: uint(0), - expected: Schema{Type: "integer"}, - }, - { - name: "float64 type", - input: 0.0, - expected: Schema{Type: "number"}, - }, - { - name: "float32 type", - input: float32(0.0), - expected: Schema{Type: "number"}, - }, - { - name: "bool type", - input: false, - expected: Schema{Type: "boolean"}, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - t.Parallel() - schema := generateSchema(reflect.TypeOf(tt.input)) - require.Equal(t, tt.expected.Type, schema.Type) - }) - } -} - -func TestGenerateSchemaArrayTypes(t *testing.T) { - t.Parallel() - - tests := []struct { - name string - input any - expected Schema - }{ - { - name: "string slice", - input: []string{}, - expected: Schema{ - Type: "array", - Items: &Schema{Type: "string"}, - }, - }, - { - name: "int slice", - input: []int{}, - expected: Schema{ - Type: "array", - Items: &Schema{Type: "integer"}, - }, - }, - { - name: "string array", - input: [3]string{}, - expected: Schema{ - Type: "array", - Items: &Schema{Type: "string"}, - }, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - t.Parallel() - schema := generateSchema(reflect.TypeOf(tt.input)) - require.Equal(t, tt.expected.Type, schema.Type) - require.NotNil(t, schema.Items, "Expected items schema to exist") - require.Equal(t, tt.expected.Items.Type, schema.Items.Type) - }) - } -} - -func TestGenerateSchemaMapTypes(t *testing.T) { - t.Parallel() - - tests := []struct { - name string - input any - expected string - }{ - { - name: "string to string map", - input: map[string]string{}, - expected: "object", - }, - { - name: "string to int map", - input: map[string]int{}, - expected: "object", - }, - { - name: "int to string map", - input: map[int]string{}, - expected: "object", - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - t.Parallel() - schema := generateSchema(reflect.TypeOf(tt.input)) - require.Equal(t, tt.expected, schema.Type) - }) - } -} - -func TestGenerateSchemaStructTypes(t *testing.T) { - t.Parallel() - - type SimpleStruct struct { - Name string `json:"name" description:"The name field"` - Age int `json:"age"` - } - - type StructWithOmitEmpty struct { - Required string `json:"required"` - Optional string `json:"optional,omitempty"` - } - - type StructWithJSONIgnore struct { - Visible string `json:"visible"` - Hidden string `json:"-"` - } - - type StructWithoutJSONTags struct { - FirstName string - LastName string - } - - tests := []struct { - name string - input any - validate func(t *testing.T, schema Schema) - }{ - { - name: "simple struct", - input: SimpleStruct{}, - validate: func(t *testing.T, schema Schema) { - require.Equal(t, "object", schema.Type) - require.Len(t, schema.Properties, 2) - require.NotNil(t, schema.Properties["name"], "Expected name property to exist") - require.Equal(t, "The name field", schema.Properties["name"].Description) - require.Len(t, schema.Required, 2) - }, - }, - { - name: "struct with omitempty", - input: StructWithOmitEmpty{}, - validate: func(t *testing.T, schema Schema) { - require.Len(t, schema.Required, 1) - require.Equal(t, "required", schema.Required[0]) - }, - }, - { - name: "struct with json ignore", - input: StructWithJSONIgnore{}, - validate: func(t *testing.T, schema Schema) { - require.Len(t, schema.Properties, 1) - require.NotNil(t, schema.Properties["visible"], "Expected visible property to exist") - require.Nil(t, schema.Properties["hidden"], "Expected hidden property to not exist") - }, - }, - { - name: "struct without json tags", - input: StructWithoutJSONTags{}, - validate: func(t *testing.T, schema Schema) { - require.NotNil(t, schema.Properties["first_name"], "Expected first_name property to exist") - require.NotNil(t, schema.Properties["last_name"], "Expected last_name property to exist") - }, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - t.Parallel() - schema := generateSchema(reflect.TypeOf(tt.input)) - tt.validate(t, schema) - }) - } -} - -func TestGenerateSchemaPointerTypes(t *testing.T) { - t.Parallel() - - type StructWithPointers struct { - Name *string `json:"name"` - Age *int `json:"age"` - } - - schema := generateSchema(reflect.TypeOf(StructWithPointers{})) - - require.Equal(t, "object", schema.Type) - - require.NotNil(t, schema.Properties["name"], "Expected name property to exist") - require.Equal(t, "string", schema.Properties["name"].Type) - - require.NotNil(t, schema.Properties["age"], "Expected age property to exist") - require.Equal(t, "integer", schema.Properties["age"].Type) -} - -func TestGenerateSchemaNestedStructs(t *testing.T) { - t.Parallel() - - type Address struct { - Street string `json:"street"` - City string `json:"city"` - } - - type Person struct { - Name string `json:"name"` - Address Address `json:"address"` - } - - schema := generateSchema(reflect.TypeOf(Person{})) - - require.Equal(t, "object", schema.Type) - - require.NotNil(t, schema.Properties["address"], "Expected address property to exist") - - addressSchema := schema.Properties["address"] - require.Equal(t, "object", addressSchema.Type) - - require.NotNil(t, addressSchema.Properties["street"], "Expected street property in address to exist") - require.NotNil(t, addressSchema.Properties["city"], "Expected city property in address to exist") -} - -func TestGenerateSchemaRecursiveStructs(t *testing.T) { - t.Parallel() - - type Node struct { - Value string `json:"value"` - Next *Node `json:"next,omitempty"` - } - - schema := generateSchema(reflect.TypeOf(Node{})) - - require.Equal(t, "object", schema.Type) - - require.NotNil(t, schema.Properties["value"], "Expected value property to exist") - - require.NotNil(t, schema.Properties["next"], "Expected next property to exist") - - // The recursive reference should be handled gracefully - nextSchema := schema.Properties["next"] - require.Equal(t, "object", nextSchema.Type) -} - -func TestGenerateSchemaWithEnumTags(t *testing.T) { - t.Parallel() - - type ConfigInput struct { - Level string `json:"level" enum:"debug,info,warn,error" description:"Log level"` - Format string `json:"format" enum:"json,text"` - Optional string `json:"optional,omitempty" enum:"a,b,c"` - } - - schema := generateSchema(reflect.TypeOf(ConfigInput{})) - - // Check level field - levelSchema := schema.Properties["level"] - require.NotNil(t, levelSchema, "Expected level property to exist") - require.Len(t, levelSchema.Enum, 4) - expectedLevels := []string{"debug", "info", "warn", "error"} - for i, expected := range expectedLevels { - require.Equal(t, expected, levelSchema.Enum[i]) - } - - // Check format field - formatSchema := schema.Properties["format"] - require.NotNil(t, formatSchema, "Expected format property to exist") - require.Len(t, formatSchema.Enum, 2) - - // Check required fields (optional should not be required due to omitempty) - expectedRequired := []string{"level", "format"} - require.Len(t, schema.Required, len(expectedRequired)) -} - -func TestGenerateSchemaComplexTypes(t *testing.T) { - t.Parallel() - - type ComplexInput struct { - StringSlice []string `json:"string_slice"` - IntMap map[string]int `json:"int_map"` - NestedSlice []map[string]string `json:"nested_slice"` - Interface any `json:"interface"` - } - - schema := generateSchema(reflect.TypeOf(ComplexInput{})) - - // Check string slice - stringSliceSchema := schema.Properties["string_slice"] - require.NotNil(t, stringSliceSchema, "Expected string_slice property to exist") - require.Equal(t, "array", stringSliceSchema.Type) - require.Equal(t, "string", stringSliceSchema.Items.Type) - - // Check int map - intMapSchema := schema.Properties["int_map"] - require.NotNil(t, intMapSchema, "Expected int_map property to exist") - require.Equal(t, "object", intMapSchema.Type) - - // Check nested slice - nestedSliceSchema := schema.Properties["nested_slice"] - require.NotNil(t, nestedSliceSchema, "Expected nested_slice property to exist") - require.Equal(t, "array", nestedSliceSchema.Type) - require.Equal(t, "", nestedSliceSchema.Items.Type) - - // Check interface - interfaceSchema := schema.Properties["interface"] - require.NotNil(t, interfaceSchema, "Expected interface property to exist") - require.Equal(t, "object", interfaceSchema.Type) -} - -func TestToSnakeCase(t *testing.T) { - t.Parallel() - - tests := []struct { - input string - expected string - }{ - {"FirstName", "first_name"}, - {"XMLHttpRequest", "x_m_l_http_request"}, - {"ID", "i_d"}, - {"HTTPSProxy", "h_t_t_p_s_proxy"}, - {"simple", "simple"}, - {"", ""}, - {"A", "a"}, - {"AB", "a_b"}, - {"CamelCase", "camel_case"}, - } - - for _, tt := range tests { - t.Run(tt.input, func(t *testing.T) { - t.Parallel() - result := toSnakeCase(tt.input) - require.Equal(t, tt.expected, result, "toSnakeCase(%s)", tt.input) - }) - } -} - -func TestSchemaToParametersEdgeCases(t *testing.T) { - t.Parallel() - - tests := []struct { - name string - schema Schema - expected map[string]any - }{ - { - name: "non-object schema", - schema: Schema{ - Type: "string", - }, - expected: map[string]any{}, - }, - { - name: "object with no properties", - schema: Schema{ - Type: "object", - Properties: nil, - }, - expected: map[string]any{}, - }, - { - name: "object with empty properties", - schema: Schema{ - Type: "object", - Properties: map[string]*Schema{}, - }, - expected: map[string]any{}, - }, - { - name: "schema with all constraint types", - schema: Schema{ - Type: "object", - Properties: map[string]*Schema{ - "text": { - Type: "string", - Format: "email", - MinLength: func() *int { v := 5; return &v }(), - MaxLength: func() *int { v := 100; return &v }(), - }, - "number": { - Type: "number", - Minimum: func() *float64 { v := 0.0; return &v }(), - Maximum: func() *float64 { v := 100.0; return &v }(), - }, - }, - }, - expected: map[string]any{ - "text": map[string]any{ - "type": "string", - "format": "email", - "minLength": 5, - "maxLength": 100, - }, - "number": map[string]any{ - "type": "number", - "minimum": 0.0, - "maximum": 100.0, - }, - }, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - t.Parallel() - result := schemaToParameters(tt.schema) - require.Len(t, result, len(tt.expected)) - for key, expectedValue := range tt.expected { - require.NotNil(t, result[key], "Expected parameter %s to exist", key) - // Deep comparison would be complex, so we'll check key properties - resultParam := result[key].(map[string]any) - expectedParam := expectedValue.(map[string]any) - for propKey, propValue := range expectedParam { - require.Equal(t, propValue, resultParam[propKey], "Expected %s.%s", key, propKey) - } - } - }) - } -} From 0b5edf42259c2ed91651abb96dba115086a0764e Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Wed, 12 Nov 2025 19:25:13 -0300 Subject: [PATCH 6/8] test: migrate tests to `charm.land/x/vcr` (#72) https://github.com/charmbracelet/x/pull/643 --- go.mod | 5 +- go.sum | 6 +- providertests/anthropic_test.go | 4 +- providertests/azure_responses_test.go | 4 +- providertests/azure_test.go | 8 +- providertests/bedrock_test.go | 10 +-- providertests/common_test.go | 20 ++--- providertests/google_test.go | 6 +- providertests/image_upload_test.go | 12 +-- providertests/object_test.go | 11 +-- providertests/openai_responses_test.go | 4 +- providertests/openai_test.go | 4 +- providertests/openaicompat_test.go | 16 ++-- providertests/openrouter_test.go | 4 +- providertests/recorder_test.go | 104 ------------------------- 15 files changed, 59 insertions(+), 159 deletions(-) delete mode 100644 providertests/recorder_test.go diff --git a/go.mod b/go.mod index 0148b9e9e8bc6e4cb6baf85bc338675da5c36ba4..95af7849ecab4aa12f7ee093da282deb0b3782de 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module charm.land/fantasy go 1.25 require ( + charm.land/x/vcr v0.1.0 cloud.google.com/go/auth v0.17.0 github.com/RealAlexandreAI/json-repair v0.0.14 github.com/aws/aws-sdk-go-v2 v1.39.6 @@ -16,10 +17,8 @@ require ( github.com/kaptinlin/jsonschema v0.5.2 github.com/openai/openai-go/v2 v2.7.1 github.com/stretchr/testify v1.11.1 - go.yaml.in/yaml/v4 v4.0.0-rc.3 golang.org/x/oauth2 v0.33.0 google.golang.org/genai v1.34.0 - gopkg.in/dnaeon/go-vcr.v4 v4.0.6-0.20250923044825-7b4892dd3117 ) require ( @@ -64,6 +63,7 @@ require ( go.opentelemetry.io/otel v1.36.0 // indirect go.opentelemetry.io/otel/metric v1.36.0 // indirect go.opentelemetry.io/otel/trace v1.36.0 // indirect + go.yaml.in/yaml/v4 v4.0.0-rc.3 // indirect golang.org/x/crypto v0.41.0 // indirect golang.org/x/net v0.43.0 // indirect golang.org/x/sync v0.17.0 // indirect @@ -74,5 +74,6 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect google.golang.org/grpc v1.74.2 // indirect google.golang.org/protobuf v1.36.7 // indirect + gopkg.in/dnaeon/go-vcr.v4 v4.0.6-0.20251110073552-01de4eb40290 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 566d18a5d83c2b118cb73b4dccb5fe699ab5011b..291a585bae7b36a4911dce0421225565d48e0630 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +charm.land/x/vcr v0.1.0 h1:XhCUVij6Ss6+xJuAb2n4mNRGSS/SrnNoUmEwJziy+Dg= +charm.land/x/vcr v0.1.0/go.mod h1:eByq2gqzWvcct/8XE2XO5KznoWEBiXH56+y2gphbltM= cloud.google.com/go v0.116.0 h1:B3fRrSDkLRt5qSHWe40ERJvhvnQwdZiHu0bJOpldweE= cloud.google.com/go v0.116.0/go.mod h1:cEPSRWPzZEswwdr9BxE6ChEn01dWlTaF05LiC2Xs70U= cloud.google.com/go/auth v0.17.0 h1:74yCm7hCj2rUyyAocqnFzsAYXgJhrG26XCFimrc/Kz4= @@ -162,7 +164,7 @@ google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/dnaeon/go-vcr.v4 v4.0.6-0.20250923044825-7b4892dd3117 h1:fbE/sTnBb9UNfE8cJsOzrYYPqVWVHb7jWH4SI1W//cM= -gopkg.in/dnaeon/go-vcr.v4 v4.0.6-0.20250923044825-7b4892dd3117/go.mod h1:YuVT9NPq7t3oT2WpUemB0DbNL7djIjgajZycxoDLnqs= +gopkg.in/dnaeon/go-vcr.v4 v4.0.6-0.20251110073552-01de4eb40290 h1:g3ah7zaWmw41EtOgBNXpx8zk4HYuH3OMwB+qh1Dt834= +gopkg.in/dnaeon/go-vcr.v4 v4.0.6-0.20251110073552-01de4eb40290/go.mod h1:sbq5oMEcM4PXngbcNbHhzfCP9OdZodLhrbRYoyg09HY= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/providertests/anthropic_test.go b/providertests/anthropic_test.go index 8cd98a7c70068cc7973bed41ccd28af140a5c35f..3987ea03f5ed9d728d0530091dc0a89451272c95 100644 --- a/providertests/anthropic_test.go +++ b/providertests/anthropic_test.go @@ -8,8 +8,8 @@ import ( "charm.land/fantasy" "charm.land/fantasy/providers/anthropic" + "charm.land/x/vcr" "github.com/stretchr/testify/require" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) var anthropicTestModels = []testModel{ @@ -144,7 +144,7 @@ func testAnthropicThinking(t *testing.T, result *fantasy.AgentResult) { } func anthropicBuilder(model string) builderFunc { - return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { + return func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := anthropic.New( anthropic.WithAPIKey(os.Getenv("FANTASY_ANTHROPIC_API_KEY")), anthropic.WithHTTPClient(&http.Client{Transport: r}), diff --git a/providertests/azure_responses_test.go b/providertests/azure_responses_test.go index 150426ee269d61cfa5b11c3c63992cf013d16632..8b3945ba4c5e702ff55ebc5608645150e23d61db 100644 --- a/providertests/azure_responses_test.go +++ b/providertests/azure_responses_test.go @@ -9,8 +9,8 @@ import ( "charm.land/fantasy" "charm.land/fantasy/providers/azure" "charm.land/fantasy/providers/openai" + "charm.land/x/vcr" "github.com/stretchr/testify/require" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) func TestAzureResponsesCommon(t *testing.T) { @@ -26,7 +26,7 @@ func TestAzureResponsesCommon(t *testing.T) { } func azureReasoningBuilder(model string) builderFunc { - return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { + return func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := azure.New( azure.WithBaseURL(cmp.Or(os.Getenv("FANTASY_AZURE_BASE_URL"), defaultBaseURL)), azure.WithAPIKey(cmp.Or(os.Getenv("FANTASY_AZURE_API_KEY"), "(missing)")), diff --git a/providertests/azure_test.go b/providertests/azure_test.go index 89903b72467b9af0626b472c08fed356d3481095..198b8dc1c22ff74ac38acf06a46ca034f58b7528 100644 --- a/providertests/azure_test.go +++ b/providertests/azure_test.go @@ -9,8 +9,8 @@ import ( "charm.land/fantasy" "charm.land/fantasy/providers/azure" "charm.land/fantasy/providers/openai" + "charm.land/x/vcr" "github.com/stretchr/testify/require" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) const defaultBaseURL = "https://fantasy-playground-resource.openai.azure.com" @@ -39,7 +39,7 @@ func testAzureThinking(t *testing.T, result *fantasy.AgentResult) { require.Greater(t, result.Response.Usage.ReasoningTokens, int64(0), "expected reasoning tokens, got none") } -func builderAzureO4Mini(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderAzureO4Mini(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := azure.New( azure.WithBaseURL(cmp.Or(os.Getenv("FANTASY_AZURE_BASE_URL"), defaultBaseURL)), azure.WithAPIKey(cmp.Or(os.Getenv("FANTASY_AZURE_API_KEY"), "(missing)")), @@ -51,7 +51,7 @@ func builderAzureO4Mini(t *testing.T, r *recorder.Recorder) (fantasy.LanguageMod return provider.LanguageModel(t.Context(), "o4-mini") } -func builderAzureGpt5Mini(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderAzureGpt5Mini(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := azure.New( azure.WithBaseURL(cmp.Or(os.Getenv("FANTASY_AZURE_BASE_URL"), defaultBaseURL)), azure.WithAPIKey(cmp.Or(os.Getenv("FANTASY_AZURE_API_KEY"), "(missing)")), @@ -63,7 +63,7 @@ func builderAzureGpt5Mini(t *testing.T, r *recorder.Recorder) (fantasy.LanguageM return provider.LanguageModel(t.Context(), "gpt-5-mini") } -func builderAzureGrok3Mini(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderAzureGrok3Mini(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := azure.New( azure.WithBaseURL(cmp.Or(os.Getenv("FANTASY_AZURE_BASE_URL"), defaultBaseURL)), azure.WithAPIKey(cmp.Or(os.Getenv("FANTASY_AZURE_API_KEY"), "(missing)")), diff --git a/providertests/bedrock_test.go b/providertests/bedrock_test.go index e377f3568d393a30b53d13604a8dcf1c9970d322..da591ade1a9b9e17317d261490b5bb0e108a04d5 100644 --- a/providertests/bedrock_test.go +++ b/providertests/bedrock_test.go @@ -7,7 +7,7 @@ import ( "charm.land/fantasy" "charm.land/fantasy/providers/bedrock" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" + "charm.land/x/vcr" ) func TestBedrockCommon(t *testing.T) { @@ -22,7 +22,7 @@ func TestBedrockBasicAuth(t *testing.T) { testSimple(t, builderPair{"bedrock-anthropic-claude-3-sonnet", buildersBedrockBasicAuth, nil, nil}) } -func builderBedrockClaude3Sonnet(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderBedrockClaude3Sonnet(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := bedrock.New( bedrock.WithHTTPClient(&http.Client{Transport: r}), bedrock.WithSkipAuth(!r.IsRecording()), @@ -33,7 +33,7 @@ func builderBedrockClaude3Sonnet(t *testing.T, r *recorder.Recorder) (fantasy.La return provider.LanguageModel(t.Context(), "anthropic.claude-3-sonnet-20240229-v1:0") } -func builderBedrockClaude3Opus(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderBedrockClaude3Opus(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := bedrock.New( bedrock.WithHTTPClient(&http.Client{Transport: r}), bedrock.WithSkipAuth(!r.IsRecording()), @@ -44,7 +44,7 @@ func builderBedrockClaude3Opus(t *testing.T, r *recorder.Recorder) (fantasy.Lang return provider.LanguageModel(t.Context(), "anthropic.claude-3-opus-20240229-v1:0") } -func builderBedrockClaude3Haiku(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderBedrockClaude3Haiku(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := bedrock.New( bedrock.WithHTTPClient(&http.Client{Transport: r}), bedrock.WithSkipAuth(!r.IsRecording()), @@ -55,7 +55,7 @@ func builderBedrockClaude3Haiku(t *testing.T, r *recorder.Recorder) (fantasy.Lan return provider.LanguageModel(t.Context(), "anthropic.claude-3-haiku-20240307-v1:0") } -func buildersBedrockBasicAuth(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func buildersBedrockBasicAuth(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := bedrock.New( bedrock.WithHTTPClient(&http.Client{Transport: r}), bedrock.WithAPIKey(os.Getenv("FANTASY_BEDROCK_API_KEY")), diff --git a/providertests/common_test.go b/providertests/common_test.go index 05df5a4a31d3b77e859f11316132dfc09920b85f..e5f9c1c0e29b19ecd3cd8ac8a4e1f61e5182fba4 100644 --- a/providertests/common_test.go +++ b/providertests/common_test.go @@ -8,9 +8,9 @@ import ( "testing" "charm.land/fantasy" + "charm.land/x/vcr" "github.com/joho/godotenv" "github.com/stretchr/testify/require" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) func init() { @@ -27,7 +27,7 @@ type testModel struct { reasoning bool } -type builderFunc func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) +type builderFunc func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) type builderPair struct { name string @@ -54,7 +54,7 @@ func testSimple(t *testing.T, pair builderPair) { } t.Run("simple", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -73,7 +73,7 @@ func testSimple(t *testing.T, pair builderPair) { checkResult(t, result) }) t.Run("simple streaming", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -127,7 +127,7 @@ func testTool(t *testing.T, pair builderPair) { } t.Run("tool", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -147,7 +147,7 @@ func testTool(t *testing.T, pair builderPair) { checkResult(t, result) }) t.Run("tool streaming", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -227,7 +227,7 @@ func testMultiTool(t *testing.T, pair builderPair) { } t.Run("multi tool", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -248,7 +248,7 @@ func testMultiTool(t *testing.T, pair builderPair) { checkResult(t, result) }) t.Run("multi tool streaming", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -274,7 +274,7 @@ func testThinking(t *testing.T, pairs []builderPair, thinkChecks func(*testing.T for _, pair := range pairs { t.Run(pair.name, func(t *testing.T) { t.Run("thinking", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -311,7 +311,7 @@ func testThinking(t *testing.T, pairs []builderPair, thinkChecks func(*testing.T thinkChecks(t, result) }) t.Run("thinking-streaming", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") diff --git a/providertests/google_test.go b/providertests/google_test.go index a3ed753612fc1411e1f2f30d28e28433ee5c60fe..8f6b1d3c5106e0d099ac4b3c41302446a002a626 100644 --- a/providertests/google_test.go +++ b/providertests/google_test.go @@ -9,8 +9,8 @@ import ( "charm.land/fantasy" "charm.land/fantasy/providers/google" + "charm.land/x/vcr" "github.com/stretchr/testify/require" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) var geminiTestModels = []testModel{ @@ -95,7 +95,7 @@ func generateIDMock() google.ToolCallIDFunc { } func geminiBuilder(model string) builderFunc { - return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { + return func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := google.New( google.WithGeminiAPIKey(cmp.Or(os.Getenv("FANTASY_GEMINI_API_KEY"), "(missing)")), google.WithHTTPClient(&http.Client{Transport: r}), @@ -109,7 +109,7 @@ func geminiBuilder(model string) builderFunc { } func vertexBuilder(model string) builderFunc { - return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { + return func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := google.New( google.WithVertex(os.Getenv("FANTASY_VERTEX_PROJECT"), os.Getenv("FANTASY_VERTEX_LOCATION")), google.WithHTTPClient(&http.Client{Transport: r}), diff --git a/providertests/image_upload_test.go b/providertests/image_upload_test.go index 15abc1eef7bc311a64cc329c80ebb9813ad7be5a..cf7fad7cace821f9f8a2e8a5d9badbf1062160df 100644 --- a/providertests/image_upload_test.go +++ b/providertests/image_upload_test.go @@ -10,12 +10,12 @@ import ( "charm.land/fantasy/providers/anthropic" "charm.land/fantasy/providers/google" "charm.land/fantasy/providers/openai" + "charm.land/x/vcr" "github.com/stretchr/testify/require" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) func anthropicImageBuilder(model string) builderFunc { - return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { + return func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := anthropic.New( anthropic.WithAPIKey(cmp.Or(os.Getenv("FANTASY_ANTHROPIC_API_KEY"), "(missing)")), anthropic.WithHTTPClient(&http.Client{Transport: r}), @@ -28,7 +28,7 @@ func anthropicImageBuilder(model string) builderFunc { } func openAIImageBuilder(model string) builderFunc { - return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { + return func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openai.New( openai.WithAPIKey(cmp.Or(os.Getenv("FANTASY_OPENAI_API_KEY"), "(missing)")), openai.WithHTTPClient(&http.Client{Transport: r}), @@ -41,7 +41,7 @@ func openAIImageBuilder(model string) builderFunc { } func geminiImageBuilder(model string) builderFunc { - return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { + return func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := google.New( google.WithGeminiAPIKey(cmp.Or(os.Getenv("FANTASY_GEMINI_API_KEY"), "(missing)")), google.WithHTTPClient(&http.Client{Transport: r}), @@ -76,7 +76,7 @@ func TestImageUploadAgent(t *testing.T) { for _, pair := range pairs { t.Run(pair.name, func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) lm, err := pair.builder(t, r) require.NoError(t, err) @@ -122,7 +122,7 @@ func TestImageUploadAgentStreaming(t *testing.T) { for _, pair := range pairs { t.Run(pair.name+"-stream", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) lm, err := pair.builder(t, r) require.NoError(t, err) diff --git a/providertests/object_test.go b/providertests/object_test.go index b23986ee7aa547556ca7dda447a61bfc8617f9dd..9c91e33187799da35259915bd93a596abc23688a 100644 --- a/providertests/object_test.go +++ b/providertests/object_test.go @@ -6,6 +6,7 @@ import ( "testing" "charm.land/fantasy" + "charm.land/x/vcr" "github.com/stretchr/testify/require" ) @@ -90,7 +91,7 @@ func testSimpleObject(t *testing.T, pair builderPair) { } t.Run("simple object", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -113,7 +114,7 @@ func testSimpleObject(t *testing.T, pair builderPair) { }) t.Run("simple object streaming", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -263,7 +264,7 @@ func testComplexObject(t *testing.T, pair builderPair) { } t.Run("complex object", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -286,7 +287,7 @@ func testComplexObject(t *testing.T, pair builderPair) { }) t.Run("complex object streaming", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") @@ -375,7 +376,7 @@ func testObjectWithRepair(t *testing.T, pairs []builderPair) { for _, pair := range pairs { t.Run(pair.name, func(t *testing.T) { t.Run("object with repair", func(t *testing.T) { - r := newRecorder(t) + r := vcr.NewRecorder(t) languageModel, err := pair.builder(t, r) require.NoError(t, err, "failed to build language model") diff --git a/providertests/openai_responses_test.go b/providertests/openai_responses_test.go index d036fe607908c7082641026c969579494859000b..db85f73d4963c893dc7e884773d07dd5ceb85454 100644 --- a/providertests/openai_responses_test.go +++ b/providertests/openai_responses_test.go @@ -7,8 +7,8 @@ import ( "charm.land/fantasy" "charm.land/fantasy/providers/openai" + "charm.land/x/vcr" "github.com/stretchr/testify/require" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) func TestOpenAIResponsesCommon(t *testing.T) { @@ -20,7 +20,7 @@ func TestOpenAIResponsesCommon(t *testing.T) { } func openAIReasoningBuilder(model string) builderFunc { - return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { + return func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openai.New( openai.WithAPIKey(os.Getenv("FANTASY_OPENAI_API_KEY")), openai.WithHTTPClient(&http.Client{Transport: r}), diff --git a/providertests/openai_test.go b/providertests/openai_test.go index 82a8d77e83d9af6c5b8540e763f65aec688c7351..e232ed99926a708d052ce964cca573e55ecc56ff 100644 --- a/providertests/openai_test.go +++ b/providertests/openai_test.go @@ -7,7 +7,7 @@ import ( "charm.land/fantasy" "charm.land/fantasy/providers/openai" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" + "charm.land/x/vcr" ) var openaiTestModels = []testModel{ @@ -34,7 +34,7 @@ func TestOpenAIObjectGeneration(t *testing.T) { } func openAIBuilder(model string) builderFunc { - return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { + return func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openai.New( openai.WithAPIKey(os.Getenv("FANTASY_OPENAI_API_KEY")), openai.WithHTTPClient(&http.Client{Transport: r}), diff --git a/providertests/openaicompat_test.go b/providertests/openaicompat_test.go index e7191d724582c08fc0940d56a856d339a5310a46..c19891345cb26b8d7ec7b762d41e151b41aefa29 100644 --- a/providertests/openaicompat_test.go +++ b/providertests/openaicompat_test.go @@ -8,8 +8,8 @@ import ( "charm.land/fantasy" "charm.land/fantasy/providers/openai" "charm.land/fantasy/providers/openaicompat" + "charm.land/x/vcr" "github.com/stretchr/testify/require" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) func TestOpenAICompatibleCommon(t *testing.T) { @@ -58,7 +58,7 @@ func testOpenAICompatThinking(t *testing.T, result *fantasy.AgentResult) { require.Greater(t, reasoningContentCount, 0, "expected reasoning content, got none") } -func builderXAIGrokCodeFast(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderXAIGrokCodeFast(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openaicompat.New( openaicompat.WithBaseURL("https://api.x.ai/v1"), openaicompat.WithAPIKey(os.Getenv("FANTASY_XAI_API_KEY")), @@ -70,7 +70,7 @@ func builderXAIGrokCodeFast(t *testing.T, r *recorder.Recorder) (fantasy.Languag return provider.LanguageModel(t.Context(), "grok-code-fast-1") } -func builderXAIGrok4Fast(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderXAIGrok4Fast(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openaicompat.New( openaicompat.WithBaseURL("https://api.x.ai/v1"), openaicompat.WithAPIKey(os.Getenv("FANTASY_XAI_API_KEY")), @@ -82,7 +82,7 @@ func builderXAIGrok4Fast(t *testing.T, r *recorder.Recorder) (fantasy.LanguageMo return provider.LanguageModel(t.Context(), "grok-4-fast") } -func builderXAIGrok3Mini(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderXAIGrok3Mini(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openaicompat.New( openaicompat.WithBaseURL("https://api.x.ai/v1"), openaicompat.WithAPIKey(os.Getenv("FANTASY_XAI_API_KEY")), @@ -94,7 +94,7 @@ func builderXAIGrok3Mini(t *testing.T, r *recorder.Recorder) (fantasy.LanguageMo return provider.LanguageModel(t.Context(), "grok-3-mini") } -func builderZAIGLM45(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderZAIGLM45(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openaicompat.New( openaicompat.WithBaseURL("https://api.z.ai/api/coding/paas/v4"), openaicompat.WithAPIKey(os.Getenv("FANTASY_ZAI_API_KEY")), @@ -106,7 +106,7 @@ func builderZAIGLM45(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, return provider.LanguageModel(t.Context(), "glm-4.5") } -func builderGroq(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderGroq(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openaicompat.New( openaicompat.WithBaseURL("https://api.groq.com/openai/v1"), openaicompat.WithAPIKey(os.Getenv("FANTASY_GROQ_API_KEY")), @@ -118,7 +118,7 @@ func builderGroq(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, err return provider.LanguageModel(t.Context(), "moonshotai/kimi-k2-instruct-0905") } -func builderHuggingFace(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderHuggingFace(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openaicompat.New( openaicompat.WithBaseURL("https://router.huggingface.co/v1"), openaicompat.WithAPIKey(os.Getenv("FANTASY_HUGGINGFACE_API_KEY")), @@ -130,7 +130,7 @@ func builderHuggingFace(t *testing.T, r *recorder.Recorder) (fantasy.LanguageMod return provider.LanguageModel(t.Context(), "zai-org/GLM-4.6:cerebras") } -func builderLlamaCppGptOss(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { +func builderLlamaCppGptOss(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openaicompat.New( openaicompat.WithBaseURL("http://localhost:8080/v1"), openaicompat.WithHTTPClient(&http.Client{Transport: r}), diff --git a/providertests/openrouter_test.go b/providertests/openrouter_test.go index 026e25f09c6439e56b9041adf0955158123fad33..003e8f10cc15f9efec3a7bb54974a6f5c90fd673 100644 --- a/providertests/openrouter_test.go +++ b/providertests/openrouter_test.go @@ -8,8 +8,8 @@ import ( "charm.land/fantasy" "charm.land/fantasy/providers/anthropic" "charm.land/fantasy/providers/openrouter" + "charm.land/x/vcr" "github.com/stretchr/testify/require" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) var openrouterTestModels = []testModel{ @@ -115,7 +115,7 @@ func testOpenrouterThinking(t *testing.T, result *fantasy.AgentResult) { } func openrouterBuilder(model string) builderFunc { - return func(t *testing.T, r *recorder.Recorder) (fantasy.LanguageModel, error) { + return func(t *testing.T, r *vcr.Recorder) (fantasy.LanguageModel, error) { provider, err := openrouter.New( openrouter.WithAPIKey(os.Getenv("FANTASY_OPENROUTER_API_KEY")), openrouter.WithHTTPClient(&http.Client{Transport: r}), diff --git a/providertests/recorder_test.go b/providertests/recorder_test.go deleted file mode 100644 index 459f6732a4e03e594707d5a8baa39e13128e0f64..0000000000000000000000000000000000000000 --- a/providertests/recorder_test.go +++ /dev/null @@ -1,104 +0,0 @@ -package providertests - -import ( - "bytes" - "encoding/json" - "io" - "net/http" - "path/filepath" - "reflect" - "strings" - "testing" - - "go.yaml.in/yaml/v4" - "gopkg.in/dnaeon/go-vcr.v4/pkg/cassette" - "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" -) - -func newRecorder(t *testing.T) *recorder.Recorder { - cassetteName := filepath.Join("testdata", t.Name()) - - r, err := recorder.New( - cassetteName, - recorder.WithMode(recorder.ModeRecordOnce), - recorder.WithMatcher(customMatcher(t)), - recorder.WithMarshalFunc(marshalFunc), - recorder.WithSkipRequestLatency(true), // disable sleep to simulate response time, makes tests faster - recorder.WithHook(hookRemoveHeaders, recorder.AfterCaptureHook), - ) - if err != nil { - t.Fatalf("recorder: failed to create recorder: %v", err) - } - - t.Cleanup(func() { - if err := r.Stop(); err != nil { - t.Errorf("recorder: failed to stop recorder: %v", err) - } - }) - - return r -} - -func customMatcher(t *testing.T) recorder.MatcherFunc { - return func(r *http.Request, i cassette.Request) bool { - if r.Body == nil || r.Body == http.NoBody { - return cassette.DefaultMatcher(r, i) - } - if r.Method != i.Method || r.URL.String() != i.URL { - return false - } - - reqBody, err := io.ReadAll(r.Body) - if err != nil { - t.Fatalf("recorder: failed to read request body") - } - r.Body.Close() - r.Body = io.NopCloser(bytes.NewBuffer(reqBody)) - - // Some providers can sometimes generate JSON requests with keys in - // a different order, which means a direct string comparison will fail. - // Falling back to deserializing the content if we don't have a match. - if string(reqBody) == i.Body { // hot path - return true - } - var content1, content2 any - if err := json.Unmarshal(reqBody, &content1); err != nil { - return false - } - if err := json.Unmarshal([]byte(i.Body), &content2); err != nil { - return false - } - return reflect.DeepEqual(content1, content2) - } -} - -func marshalFunc(in any) ([]byte, error) { - var buff bytes.Buffer - enc := yaml.NewEncoder(&buff) - enc.SetIndent(2) - enc.CompactSeqIndent() - if err := enc.Encode(in); err != nil { - return nil, err - } - return buff.Bytes(), nil -} - -var headersToKeep = map[string]struct{}{ - "accept": {}, - "content-type": {}, - "user-agent": {}, -} - -func hookRemoveHeaders(i *cassette.Interaction) error { - for k := range i.Request.Headers { - if _, ok := headersToKeep[strings.ToLower(k)]; !ok { - delete(i.Request.Headers, k) - } - } - for k := range i.Response.Headers { - if _, ok := headersToKeep[strings.ToLower(k)]; !ok { - delete(i.Response.Headers, k) - } - } - return nil -} From c999bfd68de475e48fbff6ebb939be1b38290bfe Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Thu, 13 Nov 2025 11:21:38 +0100 Subject: [PATCH 7/8] feat: make structs serializable (#34) --- content.go | 49 + content_json.go | 1062 ++++++++++++++++++++ json_test.go | 647 ++++++++++++ model_json.go | 152 +++ provider_registry.go | 106 ++ providers/anthropic/provider_options.go | 89 +- providers/google/provider_options.go | 64 +- providers/openai/provider_options.go | 85 ++ providers/openai/responses_options.go | 65 +- providers/openaicompat/provider_options.go | 35 + providers/openrouter/provider_options.go | 64 +- providertests/provider_registry_test.go | 421 ++++++++ tool.go | 8 +- 13 files changed, 2836 insertions(+), 11 deletions(-) create mode 100644 content_json.go create mode 100644 json_test.go create mode 100644 model_json.go create mode 100644 provider_registry.go create mode 100644 providertests/provider_registry_test.go diff --git a/content.go b/content.go index 0dda6c5c296a0e8ca9a0320a74c03a3c18ab3f5e..93dc7d1ca87962a9351062def5fb616d022c3c36 100644 --- a/content.go +++ b/content.go @@ -1,8 +1,57 @@ package fantasy +import "encoding/json" + // ProviderOptionsData is an interface for provider-specific options data. +// All implementations MUST also implement encoding/json.Marshaler and +// encoding/json.Unmarshaler interfaces to ensure proper JSON serialization +// with the provider registry system. +// +// Recommended implementation pattern using generic helpers: +// +// // Define type constants at the top of your file +// const TypeMyProviderOptions = "myprovider.options" +// +// type MyProviderOptions struct { +// Field string `json:"field"` +// } +// +// // Register the type in init() - place at top of file after constants +// func init() { +// fantasy.RegisterProviderType(TypeMyProviderOptions, func(data []byte) (fantasy.ProviderOptionsData, error) { +// var opts MyProviderOptions +// if err := json.Unmarshal(data, &opts); err != nil { +// return nil, err +// } +// return &opts, nil +// }) +// } +// +// // Implement ProviderOptionsData interface +// func (*MyProviderOptions) Options() {} +// +// // Implement json.Marshaler using the generic helper +// func (m MyProviderOptions) MarshalJSON() ([]byte, error) { +// type plain MyProviderOptions +// return fantasy.MarshalProviderType(TypeMyProviderOptions, plain(m)) +// } +// +// // Implement json.Unmarshaler using the generic helper +// // Note: Receives inner data after type routing by the registry. +// func (m *MyProviderOptions) UnmarshalJSON(data []byte) error { +// type plain MyProviderOptions +// var p plain +// if err := fantasy.UnmarshalProviderType(data, &p); err != nil { +// return err +// } +// *m = MyProviderOptions(p) +// return nil +// } type ProviderOptionsData interface { + // Options is a marker method that identifies types implementing this interface. Options() + json.Marshaler + json.Unmarshaler } // ProviderMetadata represents additional provider-specific metadata. diff --git a/content_json.go b/content_json.go new file mode 100644 index 0000000000000000000000000000000000000000..bde7393ec85a92d4a7939e0e2bb1f22368fa6bb7 --- /dev/null +++ b/content_json.go @@ -0,0 +1,1062 @@ +package fantasy + +import ( + "encoding/json" + "errors" + "fmt" +) + +// contentJSON is a helper type for JSON serialization of Content in Response. +type contentJSON struct { + Type string `json:"type"` + Data json.RawMessage `json:"data"` +} + +// messagePartJSON is a helper type for JSON serialization of MessagePart. +type messagePartJSON struct { + Type string `json:"type"` + Data json.RawMessage `json:"data"` +} + +// toolResultOutputJSON is a helper type for JSON serialization of ToolResultOutputContent. +type toolResultOutputJSON struct { + Type string `json:"type"` + Data json.RawMessage `json:"data"` +} + +// toolJSON is a helper type for JSON serialization of Tool. +type toolJSON struct { + Type string `json:"type"` + Data json.RawMessage `json:"data"` +} + +// MarshalJSON implements json.Marshaler for TextContent. +func (t TextContent) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + Text string `json:"text"` + ProviderMetadata ProviderMetadata `json:"provider_metadata,omitempty"` + }{ + Text: t.Text, + ProviderMetadata: t.ProviderMetadata, + }) + if err != nil { + return nil, err + } + + return json.Marshal(contentJSON{ + Type: string(ContentTypeText), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for TextContent. +func (t *TextContent) UnmarshalJSON(data []byte) error { + var cj contentJSON + if err := json.Unmarshal(data, &cj); err != nil { + return err + } + + var aux struct { + Text string `json:"text"` + ProviderMetadata map[string]json.RawMessage `json:"provider_metadata,omitempty"` + } + + if err := json.Unmarshal(cj.Data, &aux); err != nil { + return err + } + + t.Text = aux.Text + + if len(aux.ProviderMetadata) > 0 { + metadata, err := UnmarshalProviderMetadata(aux.ProviderMetadata) + if err != nil { + return err + } + t.ProviderMetadata = metadata + } + + return nil +} + +// MarshalJSON implements json.Marshaler for ReasoningContent. +func (r ReasoningContent) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + Text string `json:"text"` + ProviderMetadata ProviderMetadata `json:"provider_metadata,omitempty"` + }{ + Text: r.Text, + ProviderMetadata: r.ProviderMetadata, + }) + if err != nil { + return nil, err + } + + return json.Marshal(contentJSON{ + Type: string(ContentTypeReasoning), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for ReasoningContent. +func (r *ReasoningContent) UnmarshalJSON(data []byte) error { + var cj contentJSON + if err := json.Unmarshal(data, &cj); err != nil { + return err + } + + var aux struct { + Text string `json:"text"` + ProviderMetadata map[string]json.RawMessage `json:"provider_metadata,omitempty"` + } + + if err := json.Unmarshal(cj.Data, &aux); err != nil { + return err + } + + r.Text = aux.Text + + if len(aux.ProviderMetadata) > 0 { + metadata, err := UnmarshalProviderMetadata(aux.ProviderMetadata) + if err != nil { + return err + } + r.ProviderMetadata = metadata + } + + return nil +} + +// MarshalJSON implements json.Marshaler for FileContent. +func (f FileContent) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + MediaType string `json:"media_type"` + Data []byte `json:"data"` + ProviderMetadata ProviderMetadata `json:"provider_metadata,omitempty"` + }{ + MediaType: f.MediaType, + Data: f.Data, + ProviderMetadata: f.ProviderMetadata, + }) + if err != nil { + return nil, err + } + + return json.Marshal(contentJSON{ + Type: string(ContentTypeFile), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for FileContent. +func (f *FileContent) UnmarshalJSON(data []byte) error { + var cj contentJSON + if err := json.Unmarshal(data, &cj); err != nil { + return err + } + + var aux struct { + MediaType string `json:"media_type"` + Data []byte `json:"data"` + ProviderMetadata map[string]json.RawMessage `json:"provider_metadata,omitempty"` + } + + if err := json.Unmarshal(cj.Data, &aux); err != nil { + return err + } + + f.MediaType = aux.MediaType + f.Data = aux.Data + + if len(aux.ProviderMetadata) > 0 { + metadata, err := UnmarshalProviderMetadata(aux.ProviderMetadata) + if err != nil { + return err + } + f.ProviderMetadata = metadata + } + + return nil +} + +// MarshalJSON implements json.Marshaler for SourceContent. +func (s SourceContent) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + SourceType SourceType `json:"source_type"` + ID string `json:"id"` + URL string `json:"url,omitempty"` + Title string `json:"title,omitempty"` + MediaType string `json:"media_type,omitempty"` + Filename string `json:"filename,omitempty"` + ProviderMetadata ProviderMetadata `json:"provider_metadata,omitempty"` + }{ + SourceType: s.SourceType, + ID: s.ID, + URL: s.URL, + Title: s.Title, + MediaType: s.MediaType, + Filename: s.Filename, + ProviderMetadata: s.ProviderMetadata, + }) + if err != nil { + return nil, err + } + + return json.Marshal(contentJSON{ + Type: string(ContentTypeSource), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for SourceContent. +func (s *SourceContent) UnmarshalJSON(data []byte) error { + var cj contentJSON + if err := json.Unmarshal(data, &cj); err != nil { + return err + } + + var aux struct { + SourceType SourceType `json:"source_type"` + ID string `json:"id"` + URL string `json:"url,omitempty"` + Title string `json:"title,omitempty"` + MediaType string `json:"media_type,omitempty"` + Filename string `json:"filename,omitempty"` + ProviderMetadata map[string]json.RawMessage `json:"provider_metadata,omitempty"` + } + + if err := json.Unmarshal(cj.Data, &aux); err != nil { + return err + } + + s.SourceType = aux.SourceType + s.ID = aux.ID + s.URL = aux.URL + s.Title = aux.Title + s.MediaType = aux.MediaType + s.Filename = aux.Filename + + if len(aux.ProviderMetadata) > 0 { + metadata, err := UnmarshalProviderMetadata(aux.ProviderMetadata) + if err != nil { + return err + } + s.ProviderMetadata = metadata + } + + return nil +} + +// MarshalJSON implements json.Marshaler for ToolCallContent. +func (t ToolCallContent) MarshalJSON() ([]byte, error) { + var validationErrMsg *string + if t.ValidationError != nil { + msg := t.ValidationError.Error() + validationErrMsg = &msg + } + dataBytes, err := json.Marshal(struct { + ToolCallID string `json:"tool_call_id"` + ToolName string `json:"tool_name"` + Input string `json:"input"` + ProviderExecuted bool `json:"provider_executed"` + ProviderMetadata ProviderMetadata `json:"provider_metadata,omitempty"` + Invalid bool `json:"invalid,omitempty"` + ValidationError *string `json:"validation_error,omitempty"` + }{ + ToolCallID: t.ToolCallID, + ToolName: t.ToolName, + Input: t.Input, + ProviderExecuted: t.ProviderExecuted, + ProviderMetadata: t.ProviderMetadata, + Invalid: t.Invalid, + ValidationError: validationErrMsg, + }) + if err != nil { + return nil, err + } + + return json.Marshal(contentJSON{ + Type: string(ContentTypeToolCall), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for ToolCallContent. +func (t *ToolCallContent) UnmarshalJSON(data []byte) error { + var cj contentJSON + if err := json.Unmarshal(data, &cj); err != nil { + return err + } + + var aux struct { + ToolCallID string `json:"tool_call_id"` + ToolName string `json:"tool_name"` + Input string `json:"input"` + ProviderExecuted bool `json:"provider_executed"` + ProviderMetadata map[string]json.RawMessage `json:"provider_metadata,omitempty"` + Invalid bool `json:"invalid,omitempty"` + ValidationError *string `json:"validation_error,omitempty"` + } + + if err := json.Unmarshal(cj.Data, &aux); err != nil { + return err + } + + t.ToolCallID = aux.ToolCallID + t.ToolName = aux.ToolName + t.Input = aux.Input + t.ProviderExecuted = aux.ProviderExecuted + t.Invalid = aux.Invalid + if aux.ValidationError != nil { + t.ValidationError = errors.New(*aux.ValidationError) + } + + if len(aux.ProviderMetadata) > 0 { + metadata, err := UnmarshalProviderMetadata(aux.ProviderMetadata) + if err != nil { + return err + } + t.ProviderMetadata = metadata + } + + return nil +} + +// MarshalJSON implements json.Marshaler for ToolResultContent. +func (t ToolResultContent) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + ToolCallID string `json:"tool_call_id"` + ToolName string `json:"tool_name"` + Result ToolResultOutputContent `json:"result"` + ClientMetadata string `json:"client_metadata,omitempty"` + ProviderExecuted bool `json:"provider_executed"` + ProviderMetadata ProviderMetadata `json:"provider_metadata,omitempty"` + }{ + ToolCallID: t.ToolCallID, + ToolName: t.ToolName, + Result: t.Result, + ClientMetadata: t.ClientMetadata, + ProviderExecuted: t.ProviderExecuted, + ProviderMetadata: t.ProviderMetadata, + }) + if err != nil { + return nil, err + } + + return json.Marshal(contentJSON{ + Type: string(ContentTypeToolResult), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for ToolResultContent. +func (t *ToolResultContent) UnmarshalJSON(data []byte) error { + var cj contentJSON + if err := json.Unmarshal(data, &cj); err != nil { + return err + } + + var aux struct { + ToolCallID string `json:"tool_call_id"` + ToolName string `json:"tool_name"` + Result json.RawMessage `json:"result"` + ClientMetadata string `json:"client_metadata,omitempty"` + ProviderExecuted bool `json:"provider_executed"` + ProviderMetadata map[string]json.RawMessage `json:"provider_metadata,omitempty"` + } + + if err := json.Unmarshal(cj.Data, &aux); err != nil { + return err + } + + t.ToolCallID = aux.ToolCallID + t.ToolName = aux.ToolName + t.ClientMetadata = aux.ClientMetadata + t.ProviderExecuted = aux.ProviderExecuted + + // Unmarshal the Result field + result, err := UnmarshalToolResultOutputContent(aux.Result) + if err != nil { + return fmt.Errorf("failed to unmarshal tool result output: %w", err) + } + t.Result = result + + if len(aux.ProviderMetadata) > 0 { + metadata, err := UnmarshalProviderMetadata(aux.ProviderMetadata) + if err != nil { + return err + } + t.ProviderMetadata = metadata + } + + return nil +} + +// MarshalJSON implements json.Marshaler for ToolResultOutputContentText. +func (t ToolResultOutputContentText) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + Text string `json:"text"` + }{ + Text: t.Text, + }) + if err != nil { + return nil, err + } + + return json.Marshal(toolResultOutputJSON{ + Type: string(ToolResultContentTypeText), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for ToolResultOutputContentText. +func (t *ToolResultOutputContentText) UnmarshalJSON(data []byte) error { + var tr toolResultOutputJSON + if err := json.Unmarshal(data, &tr); err != nil { + return err + } + + var temp struct { + Text string `json:"text"` + } + + if err := json.Unmarshal(tr.Data, &temp); err != nil { + return err + } + + t.Text = temp.Text + return nil +} + +// MarshalJSON implements json.Marshaler for ToolResultOutputContentError. +func (t ToolResultOutputContentError) MarshalJSON() ([]byte, error) { + errMsg := "" + if t.Error != nil { + errMsg = t.Error.Error() + } + dataBytes, err := json.Marshal(struct { + Error string `json:"error"` + }{ + Error: errMsg, + }) + if err != nil { + return nil, err + } + + return json.Marshal(toolResultOutputJSON{ + Type: string(ToolResultContentTypeError), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for ToolResultOutputContentError. +func (t *ToolResultOutputContentError) UnmarshalJSON(data []byte) error { + var tr toolResultOutputJSON + if err := json.Unmarshal(data, &tr); err != nil { + return err + } + + var temp struct { + Error string `json:"error"` + } + + if err := json.Unmarshal(tr.Data, &temp); err != nil { + return err + } + if temp.Error != "" { + t.Error = errors.New(temp.Error) + } + return nil +} + +// MarshalJSON implements json.Marshaler for ToolResultOutputContentMedia. +func (t ToolResultOutputContentMedia) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + Data string `json:"data"` + MediaType string `json:"media_type"` + }{ + Data: t.Data, + MediaType: t.MediaType, + }) + if err != nil { + return nil, err + } + + return json.Marshal(toolResultOutputJSON{ + Type: string(ToolResultContentTypeMedia), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for ToolResultOutputContentMedia. +func (t *ToolResultOutputContentMedia) UnmarshalJSON(data []byte) error { + var tr toolResultOutputJSON + if err := json.Unmarshal(data, &tr); err != nil { + return err + } + + var temp struct { + Data string `json:"data"` + MediaType string `json:"media_type"` + } + + if err := json.Unmarshal(tr.Data, &temp); err != nil { + return err + } + + t.Data = temp.Data + t.MediaType = temp.MediaType + return nil +} + +// MarshalJSON implements json.Marshaler for TextPart. +func (t TextPart) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + Text string `json:"text"` + ProviderOptions ProviderOptions `json:"provider_options,omitempty"` + }{ + Text: t.Text, + ProviderOptions: t.ProviderOptions, + }) + if err != nil { + return nil, err + } + + return json.Marshal(messagePartJSON{ + Type: string(ContentTypeText), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for TextPart. +func (t *TextPart) UnmarshalJSON(data []byte) error { + var mpj messagePartJSON + if err := json.Unmarshal(data, &mpj); err != nil { + return err + } + + var aux struct { + Text string `json:"text"` + ProviderOptions map[string]json.RawMessage `json:"provider_options,omitempty"` + } + + if err := json.Unmarshal(mpj.Data, &aux); err != nil { + return err + } + + t.Text = aux.Text + + if len(aux.ProviderOptions) > 0 { + options, err := UnmarshalProviderOptions(aux.ProviderOptions) + if err != nil { + return err + } + t.ProviderOptions = options + } + + return nil +} + +// MarshalJSON implements json.Marshaler for ReasoningPart. +func (r ReasoningPart) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + Text string `json:"text"` + ProviderOptions ProviderOptions `json:"provider_options,omitempty"` + }{ + Text: r.Text, + ProviderOptions: r.ProviderOptions, + }) + if err != nil { + return nil, err + } + + return json.Marshal(messagePartJSON{ + Type: string(ContentTypeReasoning), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for ReasoningPart. +func (r *ReasoningPart) UnmarshalJSON(data []byte) error { + var mpj messagePartJSON + if err := json.Unmarshal(data, &mpj); err != nil { + return err + } + + var aux struct { + Text string `json:"text"` + ProviderOptions map[string]json.RawMessage `json:"provider_options,omitempty"` + } + + if err := json.Unmarshal(mpj.Data, &aux); err != nil { + return err + } + + r.Text = aux.Text + + if len(aux.ProviderOptions) > 0 { + options, err := UnmarshalProviderOptions(aux.ProviderOptions) + if err != nil { + return err + } + r.ProviderOptions = options + } + + return nil +} + +// MarshalJSON implements json.Marshaler for FilePart. +func (f FilePart) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + Filename string `json:"filename"` + Data []byte `json:"data"` + MediaType string `json:"media_type"` + ProviderOptions ProviderOptions `json:"provider_options,omitempty"` + }{ + Filename: f.Filename, + Data: f.Data, + MediaType: f.MediaType, + ProviderOptions: f.ProviderOptions, + }) + if err != nil { + return nil, err + } + + return json.Marshal(messagePartJSON{ + Type: string(ContentTypeFile), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for FilePart. +func (f *FilePart) UnmarshalJSON(data []byte) error { + var mpj messagePartJSON + if err := json.Unmarshal(data, &mpj); err != nil { + return err + } + + var aux struct { + Filename string `json:"filename"` + Data []byte `json:"data"` + MediaType string `json:"media_type"` + ProviderOptions map[string]json.RawMessage `json:"provider_options,omitempty"` + } + + if err := json.Unmarshal(mpj.Data, &aux); err != nil { + return err + } + + f.Filename = aux.Filename + f.Data = aux.Data + f.MediaType = aux.MediaType + + if len(aux.ProviderOptions) > 0 { + options, err := UnmarshalProviderOptions(aux.ProviderOptions) + if err != nil { + return err + } + f.ProviderOptions = options + } + + return nil +} + +// MarshalJSON implements json.Marshaler for ToolCallPart. +func (t ToolCallPart) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + ToolCallID string `json:"tool_call_id"` + ToolName string `json:"tool_name"` + Input string `json:"input"` + ProviderExecuted bool `json:"provider_executed"` + ProviderOptions ProviderOptions `json:"provider_options,omitempty"` + }{ + ToolCallID: t.ToolCallID, + ToolName: t.ToolName, + Input: t.Input, + ProviderExecuted: t.ProviderExecuted, + ProviderOptions: t.ProviderOptions, + }) + if err != nil { + return nil, err + } + + return json.Marshal(messagePartJSON{ + Type: string(ContentTypeToolCall), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for ToolCallPart. +func (t *ToolCallPart) UnmarshalJSON(data []byte) error { + var mpj messagePartJSON + if err := json.Unmarshal(data, &mpj); err != nil { + return err + } + + var aux struct { + ToolCallID string `json:"tool_call_id"` + ToolName string `json:"tool_name"` + Input string `json:"input"` + ProviderExecuted bool `json:"provider_executed"` + ProviderOptions map[string]json.RawMessage `json:"provider_options,omitempty"` + } + + if err := json.Unmarshal(mpj.Data, &aux); err != nil { + return err + } + + t.ToolCallID = aux.ToolCallID + t.ToolName = aux.ToolName + t.Input = aux.Input + t.ProviderExecuted = aux.ProviderExecuted + + if len(aux.ProviderOptions) > 0 { + options, err := UnmarshalProviderOptions(aux.ProviderOptions) + if err != nil { + return err + } + t.ProviderOptions = options + } + + return nil +} + +// MarshalJSON implements json.Marshaler for ToolResultPart. +func (t ToolResultPart) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + ToolCallID string `json:"tool_call_id"` + Output ToolResultOutputContent `json:"output"` + ProviderOptions ProviderOptions `json:"provider_options,omitempty"` + }{ + ToolCallID: t.ToolCallID, + Output: t.Output, + ProviderOptions: t.ProviderOptions, + }) + if err != nil { + return nil, err + } + + return json.Marshal(messagePartJSON{ + Type: string(ContentTypeToolResult), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for ToolResultPart. +func (t *ToolResultPart) UnmarshalJSON(data []byte) error { + var mpj messagePartJSON + if err := json.Unmarshal(data, &mpj); err != nil { + return err + } + + var aux struct { + ToolCallID string `json:"tool_call_id"` + Output json.RawMessage `json:"output"` + ProviderOptions map[string]json.RawMessage `json:"provider_options,omitempty"` + } + + if err := json.Unmarshal(mpj.Data, &aux); err != nil { + return err + } + + t.ToolCallID = aux.ToolCallID + + // Unmarshal the Output field + output, err := UnmarshalToolResultOutputContent(aux.Output) + if err != nil { + return fmt.Errorf("failed to unmarshal tool result output: %w", err) + } + t.Output = output + + if len(aux.ProviderOptions) > 0 { + options, err := UnmarshalProviderOptions(aux.ProviderOptions) + if err != nil { + return err + } + t.ProviderOptions = options + } + + return nil +} + +// UnmarshalJSON implements json.Unmarshaler for Message. +func (m *Message) UnmarshalJSON(data []byte) error { + var aux struct { + Role MessageRole `json:"role"` + Content []json.RawMessage `json:"content"` + ProviderOptions map[string]json.RawMessage `json:"provider_options"` + } + + if err := json.Unmarshal(data, &aux); err != nil { + return err + } + + m.Role = aux.Role + + m.Content = make([]MessagePart, len(aux.Content)) + for i, rawPart := range aux.Content { + part, err := UnmarshalMessagePart(rawPart) + if err != nil { + return fmt.Errorf("failed to unmarshal message part at index %d: %w", i, err) + } + m.Content[i] = part + } + + if len(aux.ProviderOptions) > 0 { + options, err := UnmarshalProviderOptions(aux.ProviderOptions) + if err != nil { + return err + } + m.ProviderOptions = options + } + + return nil +} + +// MarshalJSON implements json.Marshaler for FunctionTool. +func (f FunctionTool) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + Name string `json:"name"` + Description string `json:"description"` + InputSchema map[string]any `json:"input_schema"` + ProviderOptions ProviderOptions `json:"provider_options,omitempty"` + }{ + Name: f.Name, + Description: f.Description, + InputSchema: f.InputSchema, + ProviderOptions: f.ProviderOptions, + }) + if err != nil { + return nil, err + } + + return json.Marshal(toolJSON{ + Type: string(ToolTypeFunction), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for FunctionTool. +func (f *FunctionTool) UnmarshalJSON(data []byte) error { + var tj toolJSON + if err := json.Unmarshal(data, &tj); err != nil { + return err + } + + var aux struct { + Name string `json:"name"` + Description string `json:"description"` + InputSchema map[string]any `json:"input_schema"` + ProviderOptions map[string]json.RawMessage `json:"provider_options,omitempty"` + } + + if err := json.Unmarshal(tj.Data, &aux); err != nil { + return err + } + + f.Name = aux.Name + f.Description = aux.Description + f.InputSchema = aux.InputSchema + + if len(aux.ProviderOptions) > 0 { + options, err := UnmarshalProviderOptions(aux.ProviderOptions) + if err != nil { + return err + } + f.ProviderOptions = options + } + + return nil +} + +// MarshalJSON implements json.Marshaler for ProviderDefinedTool. +func (p ProviderDefinedTool) MarshalJSON() ([]byte, error) { + dataBytes, err := json.Marshal(struct { + ID string `json:"id"` + Name string `json:"name"` + Args map[string]any `json:"args"` + }{ + ID: p.ID, + Name: p.Name, + Args: p.Args, + }) + if err != nil { + return nil, err + } + + return json.Marshal(toolJSON{ + Type: string(ToolTypeProviderDefined), + Data: json.RawMessage(dataBytes), + }) +} + +// UnmarshalJSON implements json.Unmarshaler for ProviderDefinedTool. +func (p *ProviderDefinedTool) UnmarshalJSON(data []byte) error { + var tj toolJSON + if err := json.Unmarshal(data, &tj); err != nil { + return err + } + + var aux struct { + ID string `json:"id"` + Name string `json:"name"` + Args map[string]any `json:"args"` + } + + if err := json.Unmarshal(tj.Data, &aux); err != nil { + return err + } + + p.ID = aux.ID + p.Name = aux.Name + p.Args = aux.Args + + return nil +} + +// UnmarshalTool unmarshals JSON into the appropriate Tool type. +func UnmarshalTool(data []byte) (Tool, error) { + var tj toolJSON + if err := json.Unmarshal(data, &tj); err != nil { + return nil, err + } + + switch ToolType(tj.Type) { + case ToolTypeFunction: + var tool FunctionTool + if err := tool.UnmarshalJSON(data); err != nil { + return nil, err + } + return tool, nil + case ToolTypeProviderDefined: + var tool ProviderDefinedTool + if err := tool.UnmarshalJSON(data); err != nil { + return nil, err + } + return tool, nil + default: + return nil, fmt.Errorf("unknown tool type: %s", tj.Type) + } +} + +// UnmarshalContent unmarshals JSON into the appropriate Content type. +func UnmarshalContent(data []byte) (Content, error) { + var cj contentJSON + if err := json.Unmarshal(data, &cj); err != nil { + return nil, err + } + + switch ContentType(cj.Type) { + case ContentTypeText: + var content TextContent + if err := content.UnmarshalJSON(data); err != nil { + return nil, err + } + return content, nil + case ContentTypeReasoning: + var content ReasoningContent + if err := content.UnmarshalJSON(data); err != nil { + return nil, err + } + return content, nil + case ContentTypeFile: + var content FileContent + if err := content.UnmarshalJSON(data); err != nil { + return nil, err + } + return content, nil + case ContentTypeSource: + var content SourceContent + if err := content.UnmarshalJSON(data); err != nil { + return nil, err + } + return content, nil + case ContentTypeToolCall: + var content ToolCallContent + if err := content.UnmarshalJSON(data); err != nil { + return nil, err + } + return content, nil + case ContentTypeToolResult: + var content ToolResultContent + if err := content.UnmarshalJSON(data); err != nil { + return nil, err + } + return content, nil + default: + return nil, fmt.Errorf("unknown content type: %s", cj.Type) + } +} + +// UnmarshalMessagePart unmarshals JSON into the appropriate MessagePart type. +func UnmarshalMessagePart(data []byte) (MessagePart, error) { + var mpj messagePartJSON + if err := json.Unmarshal(data, &mpj); err != nil { + return nil, err + } + + switch ContentType(mpj.Type) { + case ContentTypeText: + var part TextPart + if err := part.UnmarshalJSON(data); err != nil { + return nil, err + } + return part, nil + case ContentTypeReasoning: + var part ReasoningPart + if err := part.UnmarshalJSON(data); err != nil { + return nil, err + } + return part, nil + case ContentTypeFile: + var part FilePart + if err := part.UnmarshalJSON(data); err != nil { + return nil, err + } + return part, nil + case ContentTypeToolCall: + var part ToolCallPart + if err := part.UnmarshalJSON(data); err != nil { + return nil, err + } + return part, nil + case ContentTypeToolResult: + var part ToolResultPart + if err := part.UnmarshalJSON(data); err != nil { + return nil, err + } + return part, nil + default: + return nil, fmt.Errorf("unknown message part type: %s", mpj.Type) + } +} + +// UnmarshalToolResultOutputContent unmarshals JSON into the appropriate ToolResultOutputContent type. +func UnmarshalToolResultOutputContent(data []byte) (ToolResultOutputContent, error) { + var troj toolResultOutputJSON + if err := json.Unmarshal(data, &troj); err != nil { + return nil, err + } + + switch ToolResultContentType(troj.Type) { + case ToolResultContentTypeText: + var content ToolResultOutputContentText + if err := content.UnmarshalJSON(data); err != nil { + return nil, err + } + return content, nil + case ToolResultContentTypeError: + var content ToolResultOutputContentError + if err := content.UnmarshalJSON(data); err != nil { + return nil, err + } + return content, nil + case ToolResultContentTypeMedia: + var content ToolResultOutputContentMedia + if err := content.UnmarshalJSON(data); err != nil { + return nil, err + } + return content, nil + default: + return nil, fmt.Errorf("unknown tool result output content type: %s", troj.Type) + } +} diff --git a/json_test.go b/json_test.go new file mode 100644 index 0000000000000000000000000000000000000000..da9f491407e284dbc988c59595d79aa631dfd524 --- /dev/null +++ b/json_test.go @@ -0,0 +1,647 @@ +package fantasy + +import ( + "encoding/json" + "errors" + "reflect" + "testing" +) + +func TestMessageJSONSerialization(t *testing.T) { + tests := []struct { + name string + message Message + }{ + { + name: "simple text message", + message: Message{ + Role: MessageRoleUser, + Content: []MessagePart{ + TextPart{Text: "Hello, world!"}, + }, + }, + }, + { + name: "message with multiple text parts", + message: Message{ + Role: MessageRoleAssistant, + Content: []MessagePart{ + TextPart{Text: "First part"}, + TextPart{Text: "Second part"}, + TextPart{Text: "Third part"}, + }, + }, + }, + { + name: "message with reasoning part", + message: Message{ + Role: MessageRoleAssistant, + Content: []MessagePart{ + ReasoningPart{Text: "Let me think about this..."}, + TextPart{Text: "Here's my answer"}, + }, + }, + }, + { + name: "message with file part", + message: Message{ + Role: MessageRoleUser, + Content: []MessagePart{ + TextPart{Text: "Here's an image:"}, + FilePart{ + Filename: "test.png", + Data: []byte{0x89, 0x50, 0x4E, 0x47}, // PNG header + MediaType: "image/png", + }, + }, + }, + }, + { + name: "message with tool call", + message: Message{ + Role: MessageRoleAssistant, + Content: []MessagePart{ + ToolCallPart{ + ToolCallID: "call_123", + ToolName: "get_weather", + Input: `{"location": "San Francisco"}`, + ProviderExecuted: false, + }, + }, + }, + }, + { + name: "message with tool result - text output", + message: Message{ + Role: MessageRoleTool, + Content: []MessagePart{ + ToolResultPart{ + ToolCallID: "call_123", + Output: ToolResultOutputContentText{ + Text: "The weather is sunny, 72°F", + }, + }, + }, + }, + }, + { + name: "message with tool result - error output", + message: Message{ + Role: MessageRoleTool, + Content: []MessagePart{ + ToolResultPart{ + ToolCallID: "call_456", + Output: ToolResultOutputContentError{ + Error: errors.New("API rate limit exceeded"), + }, + }, + }, + }, + }, + { + name: "message with tool result - media output", + message: Message{ + Role: MessageRoleTool, + Content: []MessagePart{ + ToolResultPart{ + ToolCallID: "call_789", + Output: ToolResultOutputContentMedia{ + Data: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", + MediaType: "image/png", + }, + }, + }, + }, + }, + { + name: "complex message with mixed content", + message: Message{ + Role: MessageRoleAssistant, + Content: []MessagePart{ + TextPart{Text: "I'll analyze this image and call some tools."}, + ReasoningPart{Text: "First, I need to identify the objects..."}, + ToolCallPart{ + ToolCallID: "call_001", + ToolName: "analyze_image", + Input: `{"image_id": "img_123"}`, + ProviderExecuted: false, + }, + ToolCallPart{ + ToolCallID: "call_002", + ToolName: "get_context", + Input: `{"query": "similar images"}`, + ProviderExecuted: true, + }, + }, + }, + }, + { + name: "system message", + message: Message{ + Role: MessageRoleSystem, + Content: []MessagePart{ + TextPart{Text: "You are a helpful assistant."}, + }, + }, + }, + { + name: "empty content", + message: Message{ + Role: MessageRoleUser, + Content: []MessagePart{}, + }, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + // Marshal the message + data, err := json.Marshal(tt.message) + if err != nil { + t.Fatalf("failed to marshal message: %v", err) + } + + // Unmarshal back + var decoded Message + err = json.Unmarshal(data, &decoded) + if err != nil { + t.Fatalf("failed to unmarshal message: %v", err) + } + + // Compare roles + if decoded.Role != tt.message.Role { + t.Errorf("role mismatch: got %v, want %v", decoded.Role, tt.message.Role) + } + + // Compare content length + if len(decoded.Content) != len(tt.message.Content) { + t.Fatalf("content length mismatch: got %d, want %d", len(decoded.Content), len(tt.message.Content)) + } + + // Compare each content part + for i := range tt.message.Content { + original := tt.message.Content[i] + decodedPart := decoded.Content[i] + + if original.GetType() != decodedPart.GetType() { + t.Errorf("content[%d] type mismatch: got %v, want %v", i, decodedPart.GetType(), original.GetType()) + continue + } + + compareMessagePart(t, i, original, decodedPart) + } + }) + } +} + +func compareMessagePart(t *testing.T, index int, original, decoded MessagePart) { + switch original.GetType() { + case ContentTypeText: + orig := original.(TextPart) + dec := decoded.(TextPart) + if orig.Text != dec.Text { + t.Errorf("content[%d] text mismatch: got %q, want %q", index, dec.Text, orig.Text) + } + + case ContentTypeReasoning: + orig := original.(ReasoningPart) + dec := decoded.(ReasoningPart) + if orig.Text != dec.Text { + t.Errorf("content[%d] reasoning text mismatch: got %q, want %q", index, dec.Text, orig.Text) + } + + case ContentTypeFile: + orig := original.(FilePart) + dec := decoded.(FilePart) + if orig.Filename != dec.Filename { + t.Errorf("content[%d] filename mismatch: got %q, want %q", index, dec.Filename, orig.Filename) + } + if orig.MediaType != dec.MediaType { + t.Errorf("content[%d] media type mismatch: got %q, want %q", index, dec.MediaType, orig.MediaType) + } + if !reflect.DeepEqual(orig.Data, dec.Data) { + t.Errorf("content[%d] file data mismatch", index) + } + + case ContentTypeToolCall: + orig := original.(ToolCallPart) + dec := decoded.(ToolCallPart) + if orig.ToolCallID != dec.ToolCallID { + t.Errorf("content[%d] tool call id mismatch: got %q, want %q", index, dec.ToolCallID, orig.ToolCallID) + } + if orig.ToolName != dec.ToolName { + t.Errorf("content[%d] tool name mismatch: got %q, want %q", index, dec.ToolName, orig.ToolName) + } + if orig.Input != dec.Input { + t.Errorf("content[%d] tool input mismatch: got %q, want %q", index, dec.Input, orig.Input) + } + if orig.ProviderExecuted != dec.ProviderExecuted { + t.Errorf("content[%d] provider executed mismatch: got %v, want %v", index, dec.ProviderExecuted, orig.ProviderExecuted) + } + + case ContentTypeToolResult: + orig := original.(ToolResultPart) + dec := decoded.(ToolResultPart) + if orig.ToolCallID != dec.ToolCallID { + t.Errorf("content[%d] tool result call id mismatch: got %q, want %q", index, dec.ToolCallID, orig.ToolCallID) + } + compareToolResultOutput(t, index, orig.Output, dec.Output) + } +} + +func compareToolResultOutput(t *testing.T, index int, original, decoded ToolResultOutputContent) { + if original.GetType() != decoded.GetType() { + t.Errorf("content[%d] tool result output type mismatch: got %v, want %v", index, decoded.GetType(), original.GetType()) + return + } + + switch original.GetType() { + case ToolResultContentTypeText: + orig := original.(ToolResultOutputContentText) + dec := decoded.(ToolResultOutputContentText) + if orig.Text != dec.Text { + t.Errorf("content[%d] tool result text mismatch: got %q, want %q", index, dec.Text, orig.Text) + } + + case ToolResultContentTypeError: + orig := original.(ToolResultOutputContentError) + dec := decoded.(ToolResultOutputContentError) + if orig.Error.Error() != dec.Error.Error() { + t.Errorf("content[%d] tool result error mismatch: got %q, want %q", index, dec.Error.Error(), orig.Error.Error()) + } + + case ToolResultContentTypeMedia: + orig := original.(ToolResultOutputContentMedia) + dec := decoded.(ToolResultOutputContentMedia) + if orig.Data != dec.Data { + t.Errorf("content[%d] tool result media data mismatch", index) + } + if orig.MediaType != dec.MediaType { + t.Errorf("content[%d] tool result media type mismatch: got %q, want %q", index, dec.MediaType, orig.MediaType) + } + } +} + +func TestHelperFunctions(t *testing.T) { + t.Run("NewUserMessage - text only", func(t *testing.T) { + msg := NewUserMessage("Hello") + + data, err := json.Marshal(msg) + if err != nil { + t.Fatalf("failed to marshal: %v", err) + } + + var decoded Message + if err := json.Unmarshal(data, &decoded); err != nil { + t.Fatalf("failed to unmarshal: %v", err) + } + + if decoded.Role != MessageRoleUser { + t.Errorf("role mismatch: got %v, want %v", decoded.Role, MessageRoleUser) + } + + if len(decoded.Content) != 1 { + t.Fatalf("expected 1 content part, got %d", len(decoded.Content)) + } + + textPart := decoded.Content[0].(TextPart) + if textPart.Text != "Hello" { + t.Errorf("text mismatch: got %q, want %q", textPart.Text, "Hello") + } + }) + + t.Run("NewUserMessage - with files", func(t *testing.T) { + msg := NewUserMessage("Check this image", + FilePart{ + Filename: "image1.jpg", + Data: []byte{0xFF, 0xD8, 0xFF}, + MediaType: "image/jpeg", + }, + FilePart{ + Filename: "image2.png", + Data: []byte{0x89, 0x50, 0x4E, 0x47}, + MediaType: "image/png", + }, + ) + + data, err := json.Marshal(msg) + if err != nil { + t.Fatalf("failed to marshal: %v", err) + } + + var decoded Message + if err := json.Unmarshal(data, &decoded); err != nil { + t.Fatalf("failed to unmarshal: %v", err) + } + + if len(decoded.Content) != 3 { + t.Fatalf("expected 3 content parts, got %d", len(decoded.Content)) + } + + // Check text part + textPart := decoded.Content[0].(TextPart) + if textPart.Text != "Check this image" { + t.Errorf("text mismatch: got %q, want %q", textPart.Text, "Check this image") + } + + // Check first file + file1 := decoded.Content[1].(FilePart) + if file1.Filename != "image1.jpg" { + t.Errorf("file1 name mismatch: got %q, want %q", file1.Filename, "image1.jpg") + } + + // Check second file + file2 := decoded.Content[2].(FilePart) + if file2.Filename != "image2.png" { + t.Errorf("file2 name mismatch: got %q, want %q", file2.Filename, "image2.png") + } + }) + + t.Run("NewSystemMessage - single prompt", func(t *testing.T) { + msg := NewSystemMessage("You are a helpful assistant.") + + data, err := json.Marshal(msg) + if err != nil { + t.Fatalf("failed to marshal: %v", err) + } + + var decoded Message + if err := json.Unmarshal(data, &decoded); err != nil { + t.Fatalf("failed to unmarshal: %v", err) + } + + if decoded.Role != MessageRoleSystem { + t.Errorf("role mismatch: got %v, want %v", decoded.Role, MessageRoleSystem) + } + + if len(decoded.Content) != 1 { + t.Fatalf("expected 1 content part, got %d", len(decoded.Content)) + } + + textPart := decoded.Content[0].(TextPart) + if textPart.Text != "You are a helpful assistant." { + t.Errorf("text mismatch: got %q, want %q", textPart.Text, "You are a helpful assistant.") + } + }) + + t.Run("NewSystemMessage - multiple prompts", func(t *testing.T) { + msg := NewSystemMessage("First instruction", "Second instruction", "Third instruction") + + data, err := json.Marshal(msg) + if err != nil { + t.Fatalf("failed to marshal: %v", err) + } + + var decoded Message + if err := json.Unmarshal(data, &decoded); err != nil { + t.Fatalf("failed to unmarshal: %v", err) + } + + if len(decoded.Content) != 3 { + t.Fatalf("expected 3 content parts, got %d", len(decoded.Content)) + } + + expected := []string{"First instruction", "Second instruction", "Third instruction"} + for i, exp := range expected { + textPart := decoded.Content[i].(TextPart) + if textPart.Text != exp { + t.Errorf("content[%d] text mismatch: got %q, want %q", i, textPart.Text, exp) + } + } + }) +} + +func TestEdgeCases(t *testing.T) { + t.Run("empty text part", func(t *testing.T) { + msg := Message{ + Role: MessageRoleUser, + Content: []MessagePart{ + TextPart{Text: ""}, + }, + } + + data, err := json.Marshal(msg) + if err != nil { + t.Fatalf("failed to marshal: %v", err) + } + + var decoded Message + if err := json.Unmarshal(data, &decoded); err != nil { + t.Fatalf("failed to unmarshal: %v", err) + } + + textPart := decoded.Content[0].(TextPart) + if textPart.Text != "" { + t.Errorf("expected empty text, got %q", textPart.Text) + } + }) + + t.Run("nil error in tool result", func(t *testing.T) { + msg := Message{ + Role: MessageRoleTool, + Content: []MessagePart{ + ToolResultPart{ + ToolCallID: "call_123", + Output: ToolResultOutputContentError{ + Error: nil, + }, + }, + }, + } + + data, err := json.Marshal(msg) + if err != nil { + t.Fatalf("failed to marshal: %v", err) + } + + var decoded Message + if err := json.Unmarshal(data, &decoded); err != nil { + t.Fatalf("failed to unmarshal: %v", err) + } + + toolResult := decoded.Content[0].(ToolResultPart) + errorOutput := toolResult.Output.(ToolResultOutputContentError) + if errorOutput.Error != nil { + t.Errorf("expected nil error, got %v", errorOutput.Error) + } + }) + + t.Run("empty file data", func(t *testing.T) { + msg := Message{ + Role: MessageRoleUser, + Content: []MessagePart{ + FilePart{ + Filename: "empty.txt", + Data: []byte{}, + MediaType: "text/plain", + }, + }, + } + + data, err := json.Marshal(msg) + if err != nil { + t.Fatalf("failed to marshal: %v", err) + } + + var decoded Message + if err := json.Unmarshal(data, &decoded); err != nil { + t.Fatalf("failed to unmarshal: %v", err) + } + + filePart := decoded.Content[0].(FilePart) + if len(filePart.Data) != 0 { + t.Errorf("expected empty data, got %d bytes", len(filePart.Data)) + } + }) + + t.Run("unicode in text", func(t *testing.T) { + msg := Message{ + Role: MessageRoleUser, + Content: []MessagePart{ + TextPart{Text: "Hello 世界! 🌍 Привет"}, + }, + } + + data, err := json.Marshal(msg) + if err != nil { + t.Fatalf("failed to marshal: %v", err) + } + + var decoded Message + if err := json.Unmarshal(data, &decoded); err != nil { + t.Fatalf("failed to unmarshal: %v", err) + } + + textPart := decoded.Content[0].(TextPart) + if textPart.Text != "Hello 世界! 🌍 Привет" { + t.Errorf("unicode text mismatch: got %q, want %q", textPart.Text, "Hello 世界! 🌍 Привет") + } + }) +} + +func TestInvalidJSONHandling(t *testing.T) { + t.Run("unknown message part type", func(t *testing.T) { + invalidJSON := `{ + "role": "user", + "content": [ + { + "type": "unknown-type", + "data": {} + } + ], + "provider_options": null + }` + + var msg Message + err := json.Unmarshal([]byte(invalidJSON), &msg) + if err == nil { + t.Error("expected error for unknown message part type, got nil") + } + }) + + t.Run("unknown tool result output type", func(t *testing.T) { + invalidJSON := `{ + "role": "tool", + "content": [ + { + "type": "tool-result", + "data": { + "tool_call_id": "call_123", + "output": { + "type": "unknown-output-type", + "data": {} + }, + "provider_options": null + } + } + ], + "provider_options": null + }` + + var msg Message + err := json.Unmarshal([]byte(invalidJSON), &msg) + if err == nil { + t.Error("expected error for unknown tool result output type, got nil") + } + }) + + t.Run("malformed JSON", func(t *testing.T) { + invalidJSON := `{"role": "user", "content": [` + + var msg Message + err := json.Unmarshal([]byte(invalidJSON), &msg) + if err == nil { + t.Error("expected error for malformed JSON, got nil") + } + }) +} + +// Mock provider data for testing provider options +type mockProviderData struct { + Key string `json:"key"` +} + +func (m mockProviderData) Options() {} +func (m mockProviderData) Type() string { return "mock" } +func (m mockProviderData) MarshalJSON() ([]byte, error) { + return json.Marshal(struct { + Type string `json:"type"` + mockProviderData + }{ + Type: "mock", + mockProviderData: m, + }) +} + +func (m *mockProviderData) UnmarshalJSON(data []byte) error { + var aux struct { + Type string `json:"type"` + mockProviderData + } + if err := json.Unmarshal(data, &aux); err != nil { + return err + } + *m = aux.mockProviderData + return nil +} + +func TestPromptSerialization(t *testing.T) { + t.Run("serialize prompt (message slice)", func(t *testing.T) { + prompt := Prompt{ + NewSystemMessage("You are helpful"), + NewUserMessage("Hello"), + Message{ + Role: MessageRoleAssistant, + Content: []MessagePart{ + TextPart{Text: "Hi there!"}, + }, + }, + } + + data, err := json.Marshal(prompt) + if err != nil { + t.Fatalf("failed to marshal prompt: %v", err) + } + + var decoded Prompt + if err := json.Unmarshal(data, &decoded); err != nil { + t.Fatalf("failed to unmarshal prompt: %v", err) + } + + if len(decoded) != 3 { + t.Fatalf("expected 3 messages, got %d", len(decoded)) + } + + if decoded[0].Role != MessageRoleSystem { + t.Errorf("message 0 role mismatch: got %v, want %v", decoded[0].Role, MessageRoleSystem) + } + + if decoded[1].Role != MessageRoleUser { + t.Errorf("message 1 role mismatch: got %v, want %v", decoded[1].Role, MessageRoleUser) + } + + if decoded[2].Role != MessageRoleAssistant { + t.Errorf("message 2 role mismatch: got %v, want %v", decoded[2].Role, MessageRoleAssistant) + } + }) +} diff --git a/model_json.go b/model_json.go new file mode 100644 index 0000000000000000000000000000000000000000..90a8c78520977ae8dc797c2c0575f168297917ca --- /dev/null +++ b/model_json.go @@ -0,0 +1,152 @@ +package fantasy + +import ( + "encoding/json" + "fmt" +) + +// UnmarshalJSON implements json.Unmarshaler for Call. +func (c *Call) UnmarshalJSON(data []byte) error { + var aux struct { + Prompt Prompt `json:"prompt"` + MaxOutputTokens *int64 `json:"max_output_tokens"` + Temperature *float64 `json:"temperature"` + TopP *float64 `json:"top_p"` + TopK *int64 `json:"top_k"` + PresencePenalty *float64 `json:"presence_penalty"` + FrequencyPenalty *float64 `json:"frequency_penalty"` + Tools []json.RawMessage `json:"tools"` + ToolChoice *ToolChoice `json:"tool_choice"` + ProviderOptions map[string]json.RawMessage `json:"provider_options"` + } + + if err := json.Unmarshal(data, &aux); err != nil { + return err + } + + c.Prompt = aux.Prompt + c.MaxOutputTokens = aux.MaxOutputTokens + c.Temperature = aux.Temperature + c.TopP = aux.TopP + c.TopK = aux.TopK + c.PresencePenalty = aux.PresencePenalty + c.FrequencyPenalty = aux.FrequencyPenalty + c.ToolChoice = aux.ToolChoice + + // Unmarshal Tools slice + c.Tools = make([]Tool, len(aux.Tools)) + for i, rawTool := range aux.Tools { + tool, err := UnmarshalTool(rawTool) + if err != nil { + return fmt.Errorf("failed to unmarshal tool at index %d: %w", i, err) + } + c.Tools[i] = tool + } + + // Unmarshal ProviderOptions + if len(aux.ProviderOptions) > 0 { + options, err := UnmarshalProviderOptions(aux.ProviderOptions) + if err != nil { + return err + } + c.ProviderOptions = options + } + + return nil +} + +// UnmarshalJSON implements json.Unmarshaler for Response. +func (r *Response) UnmarshalJSON(data []byte) error { + var aux struct { + Content json.RawMessage `json:"content"` + FinishReason FinishReason `json:"finish_reason"` + Usage Usage `json:"usage"` + Warnings []CallWarning `json:"warnings"` + ProviderMetadata map[string]json.RawMessage `json:"provider_metadata"` + } + + if err := json.Unmarshal(data, &aux); err != nil { + return err + } + + r.FinishReason = aux.FinishReason + r.Usage = aux.Usage + r.Warnings = aux.Warnings + + // Unmarshal ResponseContent (need to know the type definition) + // If ResponseContent is []Content: + var rawContent []json.RawMessage + if err := json.Unmarshal(aux.Content, &rawContent); err != nil { + return err + } + + content := make([]Content, len(rawContent)) + for i, rawItem := range rawContent { + item, err := UnmarshalContent(rawItem) + if err != nil { + return fmt.Errorf("failed to unmarshal content at index %d: %w", i, err) + } + content[i] = item + } + r.Content = content + + // Unmarshal ProviderMetadata + if len(aux.ProviderMetadata) > 0 { + metadata, err := UnmarshalProviderMetadata(aux.ProviderMetadata) + if err != nil { + return err + } + r.ProviderMetadata = metadata + } + + return nil +} + +// UnmarshalJSON implements json.Unmarshaler for StreamPart. +func (s *StreamPart) UnmarshalJSON(data []byte) error { + var aux struct { + Type StreamPartType `json:"type"` + ID string `json:"id"` + ToolCallName string `json:"tool_call_name"` + ToolCallInput string `json:"tool_call_input"` + Delta string `json:"delta"` + ProviderExecuted bool `json:"provider_executed"` + Usage Usage `json:"usage"` + FinishReason FinishReason `json:"finish_reason"` + Error error `json:"error"` + Warnings []CallWarning `json:"warnings"` + SourceType SourceType `json:"source_type"` + URL string `json:"url"` + Title string `json:"title"` + ProviderMetadata map[string]json.RawMessage `json:"provider_metadata"` + } + + if err := json.Unmarshal(data, &aux); err != nil { + return err + } + + s.Type = aux.Type + s.ID = aux.ID + s.ToolCallName = aux.ToolCallName + s.ToolCallInput = aux.ToolCallInput + s.Delta = aux.Delta + s.ProviderExecuted = aux.ProviderExecuted + s.Usage = aux.Usage + s.FinishReason = aux.FinishReason + s.Error = aux.Error + s.Warnings = aux.Warnings + s.SourceType = aux.SourceType + s.URL = aux.URL + s.Title = aux.Title + + // Unmarshal ProviderMetadata + if len(aux.ProviderMetadata) > 0 { + metadata, err := UnmarshalProviderMetadata(aux.ProviderMetadata) + if err != nil { + return err + } + s.ProviderMetadata = metadata + } + + return nil +} diff --git a/provider_registry.go b/provider_registry.go new file mode 100644 index 0000000000000000000000000000000000000000..36c96c447e53222063a00d703dc1722ba8c6433c --- /dev/null +++ b/provider_registry.go @@ -0,0 +1,106 @@ +package fantasy + +import ( + "encoding/json" + "fmt" + "sync" +) + +// providerDataJSON is the serialized wrapper used by the registry. +type providerDataJSON struct { + Type string `json:"type"` + Data json.RawMessage `json:"data"` +} + +// UnmarshalFunc converts raw JSON into a ProviderOptionsData implementation. +type UnmarshalFunc func([]byte) (ProviderOptionsData, error) + +// providerRegistry uses sync.Map for lock-free reads after initialization. +// All registrations happen in init() functions before concurrent access. +var providerRegistry sync.Map + +// RegisterProviderType registers a provider type ID with its unmarshal function. +// Type IDs must be globally unique (e.g. "openai.options"). +// This should only be called during package initialization (init functions). +func RegisterProviderType(typeID string, unmarshalFn UnmarshalFunc) { + providerRegistry.Store(typeID, unmarshalFn) +} + +// unmarshalProviderData routes a typed payload to the correct constructor. +func unmarshalProviderData(data []byte) (ProviderOptionsData, error) { + var pj providerDataJSON + if err := json.Unmarshal(data, &pj); err != nil { + return nil, err + } + + val, exists := providerRegistry.Load(pj.Type) + if !exists { + return nil, fmt.Errorf("unknown provider data type: %s", pj.Type) + } + + unmarshalFn := val.(UnmarshalFunc) + return unmarshalFn(pj.Data) +} + +// unmarshalProviderDataMap is a helper for unmarshaling maps of provider data. +func unmarshalProviderDataMap(data map[string]json.RawMessage) (map[string]ProviderOptionsData, error) { + result := make(map[string]ProviderOptionsData) + for provider, rawData := range data { + providerData, err := unmarshalProviderData(rawData) + if err != nil { + return nil, fmt.Errorf("failed to unmarshal provider data for %s: %w", provider, err) + } + result[provider] = providerData + } + return result, nil +} + +// UnmarshalProviderOptions unmarshals a map of provider options by type. +func UnmarshalProviderOptions(data map[string]json.RawMessage) (ProviderOptions, error) { + return unmarshalProviderDataMap(data) +} + +// UnmarshalProviderMetadata unmarshals a map of provider metadata by type. +func UnmarshalProviderMetadata(data map[string]json.RawMessage) (ProviderMetadata, error) { + return unmarshalProviderDataMap(data) +} + +// MarshalProviderType marshals provider data with a type wrapper using generics. +// To avoid infinite recursion, use the "type plain T" pattern before calling this. +// +// Usage in provider types: +// +// func (o ProviderOptions) MarshalJSON() ([]byte, error) { +// type plain ProviderOptions +// return fantasy.MarshalProviderType(TypeProviderOptions, plain(o)) +// } +func MarshalProviderType[T any](typeID string, data T) ([]byte, error) { + rawData, err := json.Marshal(data) + if err != nil { + return nil, err + } + + return json.Marshal(providerDataJSON{ + Type: typeID, + Data: json.RawMessage(rawData), + }) +} + +// UnmarshalProviderType unmarshals provider data without type wrapper using generics. +// To avoid infinite recursion, unmarshal to a plain type first. +// Note: This receives the inner 'data' field after type routing by the registry. +// +// Usage in provider types: +// +// func (o *ProviderOptions) UnmarshalJSON(data []byte) error { +// type plain ProviderOptions +// var p plain +// if err := fantasy.UnmarshalProviderType(data, &p); err != nil { +// return err +// } +// *o = ProviderOptions(p) +// return nil +// } +func UnmarshalProviderType[T any](data []byte, target *T) error { + return json.Unmarshal(data, target) +} diff --git a/providers/anthropic/provider_options.go b/providers/anthropic/provider_options.go index 905a4bdbead91b8f6622889745b1caf1255e4897..7c426f59a7235cdc656f55fa18ae8ba71a7f5ae3 100644 --- a/providers/anthropic/provider_options.go +++ b/providers/anthropic/provider_options.go @@ -1,7 +1,43 @@ // Package anthropic provides an implementation of the fantasy AI SDK for Anthropic's language models. package anthropic -import "charm.land/fantasy" +import ( + "encoding/json" + + "charm.land/fantasy" +) + +// Global type identifiers for Anthropic-specific provider data. +const ( + TypeProviderOptions = Name + ".options" + TypeReasoningOptionMetadata = Name + ".reasoning_metadata" + TypeProviderCacheControl = Name + ".cache_control_options" +) + +// Register Anthropic provider-specific types with the global registry. +func init() { + fantasy.RegisterProviderType(TypeProviderOptions, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ProviderOptions + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) + fantasy.RegisterProviderType(TypeReasoningOptionMetadata, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ReasoningOptionMetadata + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) + fantasy.RegisterProviderType(TypeProviderCacheControl, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ProviderCacheControlOptions + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) +} // ProviderOptions represents additional options for the Anthropic provider. type ProviderOptions struct { @@ -13,6 +49,23 @@ type ProviderOptions struct { // Options implements the ProviderOptions interface. func (o *ProviderOptions) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ProviderOptions. +func (o ProviderOptions) MarshalJSON() ([]byte, error) { + type plain ProviderOptions + return fantasy.MarshalProviderType(TypeProviderOptions, plain(o)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ProviderOptions. +func (o *ProviderOptions) UnmarshalJSON(data []byte) error { + type plain ProviderOptions + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *o = ProviderOptions(p) + return nil +} + // ThinkingProviderOption represents thinking options for the Anthropic provider. type ThinkingProviderOption struct { BudgetTokens int64 `json:"budget_tokens"` @@ -27,6 +80,23 @@ type ReasoningOptionMetadata struct { // Options implements the ProviderOptions interface. func (*ReasoningOptionMetadata) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ReasoningOptionMetadata. +func (m ReasoningOptionMetadata) MarshalJSON() ([]byte, error) { + type plain ReasoningOptionMetadata + return fantasy.MarshalProviderType(TypeReasoningOptionMetadata, plain(m)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ReasoningOptionMetadata. +func (m *ReasoningOptionMetadata) UnmarshalJSON(data []byte) error { + type plain ReasoningOptionMetadata + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *m = ReasoningOptionMetadata(p) + return nil +} + // ProviderCacheControlOptions represents cache control options for the Anthropic provider. type ProviderCacheControlOptions struct { CacheControl CacheControl `json:"cache_control"` @@ -35,6 +105,23 @@ type ProviderCacheControlOptions struct { // Options implements the ProviderOptions interface. func (*ProviderCacheControlOptions) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ProviderCacheControlOptions. +func (o ProviderCacheControlOptions) MarshalJSON() ([]byte, error) { + type plain ProviderCacheControlOptions + return fantasy.MarshalProviderType(TypeProviderCacheControl, plain(o)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ProviderCacheControlOptions. +func (o *ProviderCacheControlOptions) UnmarshalJSON(data []byte) error { + type plain ProviderCacheControlOptions + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *o = ProviderCacheControlOptions(p) + return nil +} + // CacheControl represents cache control settings for the Anthropic provider. type CacheControl struct { Type string `json:"type"` diff --git a/providers/google/provider_options.go b/providers/google/provider_options.go index c86ecffa998abd29d781fe763d85df25815a8afa..7d45563c030e3d23a842d047969baeb81d70fcd3 100644 --- a/providers/google/provider_options.go +++ b/providers/google/provider_options.go @@ -1,7 +1,35 @@ // Package google provides an implementation of the fantasy AI SDK for Google's language models. package google -import "charm.land/fantasy" +import ( + "encoding/json" + + "charm.land/fantasy" +) + +// Global type identifiers for Google-specific provider data. +const ( + TypeProviderOptions = Name + ".options" + TypeReasoningMetadata = Name + ".reasoning_metadata" +) + +// Register Google provider-specific types with the global registry. +func init() { + fantasy.RegisterProviderType(TypeProviderOptions, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ProviderOptions + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) + fantasy.RegisterProviderType(TypeReasoningMetadata, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ReasoningMetadata + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) +} // ThinkingConfig represents thinking configuration for the Google provider. type ThinkingConfig struct { @@ -17,6 +45,23 @@ type ReasoningMetadata struct { // Options implements the ProviderOptionsData interface for ReasoningMetadata. func (m *ReasoningMetadata) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ReasoningMetadata. +func (m ReasoningMetadata) MarshalJSON() ([]byte, error) { + type plain ReasoningMetadata + return fantasy.MarshalProviderType(TypeReasoningMetadata, plain(m)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ReasoningMetadata. +func (m *ReasoningMetadata) UnmarshalJSON(data []byte) error { + type plain ReasoningMetadata + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *m = ReasoningMetadata(p) + return nil +} + // SafetySetting represents safety settings for the Google provider. type SafetySetting struct { // 'HARM_CATEGORY_UNSPECIFIED', @@ -59,6 +104,23 @@ type ProviderOptions struct { // Options implements the ProviderOptionsData interface for ProviderOptions. func (o *ProviderOptions) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ProviderOptions. +func (o ProviderOptions) MarshalJSON() ([]byte, error) { + type plain ProviderOptions + return fantasy.MarshalProviderType(TypeProviderOptions, plain(o)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ProviderOptions. +func (o *ProviderOptions) UnmarshalJSON(data []byte) error { + type plain ProviderOptions + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *o = ProviderOptions(p) + return nil +} + // ParseOptions parses provider options from a map for the Google provider. func ParseOptions(data map[string]any) (*ProviderOptions, error) { var options ProviderOptions diff --git a/providers/openai/provider_options.go b/providers/openai/provider_options.go index 9217c66277dc59da6ad53aecacf9efc976a8f052..adb02fbd135af77239092ba1b25e254329e0efcf 100644 --- a/providers/openai/provider_options.go +++ b/providers/openai/provider_options.go @@ -2,6 +2,8 @@ package openai import ( + "encoding/json" + "charm.land/fantasy" "github.com/openai/openai-go/v2" ) @@ -20,6 +22,38 @@ const ( ReasoningEffortHigh ReasoningEffort = "high" ) +// Global type identifiers for OpenAI-specific provider data. +const ( + TypeProviderOptions = Name + ".options" + TypeProviderFileOptions = Name + ".file_options" + TypeProviderMetadata = Name + ".metadata" +) + +// Register OpenAI provider-specific types with the global registry. +func init() { + fantasy.RegisterProviderType(TypeProviderOptions, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ProviderOptions + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) + fantasy.RegisterProviderType(TypeProviderFileOptions, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ProviderFileOptions + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) + fantasy.RegisterProviderType(TypeProviderMetadata, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ProviderMetadata + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) +} + // ProviderMetadata represents additional metadata from OpenAI provider. type ProviderMetadata struct { Logprobs []openai.ChatCompletionTokenLogprob `json:"logprobs"` @@ -30,6 +64,23 @@ type ProviderMetadata struct { // Options implements the ProviderOptions interface. func (*ProviderMetadata) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ProviderMetadata. +func (m ProviderMetadata) MarshalJSON() ([]byte, error) { + type plain ProviderMetadata + return fantasy.MarshalProviderType(TypeProviderMetadata, plain(m)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ProviderMetadata. +func (m *ProviderMetadata) UnmarshalJSON(data []byte) error { + type plain ProviderMetadata + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *m = ProviderMetadata(p) + return nil +} + // ProviderOptions represents additional options for OpenAI provider. type ProviderOptions struct { LogitBias map[string]int64 `json:"logit_bias"` @@ -52,6 +103,23 @@ type ProviderOptions struct { // Options implements the ProviderOptions interface. func (*ProviderOptions) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ProviderOptions. +func (o ProviderOptions) MarshalJSON() ([]byte, error) { + type plain ProviderOptions + return fantasy.MarshalProviderType(TypeProviderOptions, plain(o)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ProviderOptions. +func (o *ProviderOptions) UnmarshalJSON(data []byte) error { + type plain ProviderOptions + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *o = ProviderOptions(p) + return nil +} + // ProviderFileOptions represents file options for OpenAI provider. type ProviderFileOptions struct { ImageDetail string `json:"image_detail"` @@ -60,6 +128,23 @@ type ProviderFileOptions struct { // Options implements the ProviderOptions interface. func (*ProviderFileOptions) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ProviderFileOptions. +func (o ProviderFileOptions) MarshalJSON() ([]byte, error) { + type plain ProviderFileOptions + return fantasy.MarshalProviderType(TypeProviderFileOptions, plain(o)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ProviderFileOptions. +func (o *ProviderFileOptions) UnmarshalJSON(data []byte) error { + type plain ProviderFileOptions + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *o = ProviderFileOptions(p) + return nil +} + // ReasoningEffortOption creates a pointer to a ReasoningEffort value. func ReasoningEffortOption(e ReasoningEffort) *ReasoningEffort { return &e diff --git a/providers/openai/responses_options.go b/providers/openai/responses_options.go index e81dcb20292e3de43bd1b9df0b885efe6fee4a73..88dba7f42ae5af4aa4304aff64ccb2bb15c86525 100644 --- a/providers/openai/responses_options.go +++ b/providers/openai/responses_options.go @@ -2,11 +2,36 @@ package openai import ( + "encoding/json" "slices" "charm.land/fantasy" ) +// Global type identifiers for OpenAI Responses API-specific data. +const ( + TypeResponsesProviderOptions = Name + ".responses.options" + TypeResponsesReasoningMetadata = Name + ".responses.reasoning_metadata" +) + +// Register OpenAI Responses API-specific types with the global registry. +func init() { + fantasy.RegisterProviderType(TypeResponsesProviderOptions, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ResponsesProviderOptions + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) + fantasy.RegisterProviderType(TypeResponsesReasoningMetadata, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ResponsesReasoningMetadata + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) +} + // ResponsesReasoningMetadata represents reasoning metadata for OpenAI Responses API. type ResponsesReasoningMetadata struct { ItemID string `json:"item_id"` @@ -17,6 +42,23 @@ type ResponsesReasoningMetadata struct { // Options implements the ProviderOptions interface. func (*ResponsesReasoningMetadata) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ResponsesReasoningMetadata. +func (m ResponsesReasoningMetadata) MarshalJSON() ([]byte, error) { + type plain ResponsesReasoningMetadata + return fantasy.MarshalProviderType(TypeResponsesReasoningMetadata, plain(m)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ResponsesReasoningMetadata. +func (m *ResponsesReasoningMetadata) UnmarshalJSON(data []byte) error { + type plain ResponsesReasoningMetadata + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *m = ResponsesReasoningMetadata(p) + return nil +} + // IncludeType represents the type of content to include for OpenAI Responses API. type IncludeType string @@ -71,6 +113,26 @@ type ResponsesProviderOptions struct { User *string `json:"user"` } +// Options implements the ProviderOptions interface. +func (*ResponsesProviderOptions) Options() {} + +// MarshalJSON implements custom JSON marshaling with type info for ResponsesProviderOptions. +func (o ResponsesProviderOptions) MarshalJSON() ([]byte, error) { + type plain ResponsesProviderOptions + return fantasy.MarshalProviderType(TypeResponsesProviderOptions, plain(o)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ResponsesProviderOptions. +func (o *ResponsesProviderOptions) UnmarshalJSON(data []byte) error { + type plain ResponsesProviderOptions + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *o = ResponsesProviderOptions(p) + return nil +} + // responsesReasoningModelIds lists the model IDs that support reasoning for OpenAI Responses API. var responsesReasoningModelIDs = []string{ "o1", @@ -121,9 +183,6 @@ var responsesModelIDs = append([]string{ "gpt-5-chat-latest", }, responsesReasoningModelIDs...) -// Options implements the ProviderOptions interface. -func (*ResponsesProviderOptions) Options() {} - // NewResponsesProviderOptions creates new provider options for OpenAI Responses API. func NewResponsesProviderOptions(opts *ResponsesProviderOptions) fantasy.ProviderOptions { return fantasy.ProviderOptions{ diff --git a/providers/openaicompat/provider_options.go b/providers/openaicompat/provider_options.go index 89dfc61b9a7be1eccb512eb3c682131b8963d299..afb037bf21e51d8698e4b51bc6f85a9ff99f242b 100644 --- a/providers/openaicompat/provider_options.go +++ b/providers/openaicompat/provider_options.go @@ -2,10 +2,28 @@ package openaicompat import ( + "encoding/json" + "charm.land/fantasy" "charm.land/fantasy/providers/openai" ) +// Global type identifiers for OpenAI-compatible provider data. +const ( + TypeProviderOptions = Name + ".options" +) + +// Register OpenAI-compatible provider-specific types with the global registry. +func init() { + fantasy.RegisterProviderType(TypeProviderOptions, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ProviderOptions + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) +} + // ProviderOptions represents additional options for the OpenAI-compatible provider. type ProviderOptions struct { User *string `json:"user"` @@ -20,6 +38,23 @@ type ReasoningData struct { // Options implements the ProviderOptions interface. func (*ProviderOptions) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ProviderOptions. +func (o ProviderOptions) MarshalJSON() ([]byte, error) { + type plain ProviderOptions + return fantasy.MarshalProviderType(TypeProviderOptions, plain(o)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ProviderOptions. +func (o *ProviderOptions) UnmarshalJSON(data []byte) error { + type plain ProviderOptions + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *o = ProviderOptions(p) + return nil +} + // NewProviderOptions creates new provider options for the OpenAI-compatible provider. func NewProviderOptions(opts *ProviderOptions) fantasy.ProviderOptions { return fantasy.ProviderOptions{ diff --git a/providers/openrouter/provider_options.go b/providers/openrouter/provider_options.go index 6e8b513cdacb962956385a73ac4493b43fd1ca71..ed2d8f5edd714150b49301527b3dcb1e55184422 100644 --- a/providers/openrouter/provider_options.go +++ b/providers/openrouter/provider_options.go @@ -2,6 +2,8 @@ package openrouter import ( + "encoding/json" + "charm.land/fantasy" ) @@ -17,14 +19,38 @@ const ( ReasoningEffortHigh ReasoningEffort = "high" ) +// Global type identifiers for OpenRouter-specific provider data. +const ( + TypeProviderOptions = Name + ".options" + TypeProviderMetadata = Name + ".metadata" +) + +// Register OpenRouter provider-specific types with the global registry. +func init() { + fantasy.RegisterProviderType(TypeProviderOptions, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ProviderOptions + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) + fantasy.RegisterProviderType(TypeProviderMetadata, func(data []byte) (fantasy.ProviderOptionsData, error) { + var v ProviderMetadata + if err := json.Unmarshal(data, &v); err != nil { + return nil, err + } + return &v, nil + }) +} + // PromptTokensDetails represents details about prompt tokens for OpenRouter. type PromptTokensDetails struct { - CachedTokens int64 + CachedTokens int64 `json:"cached_tokens"` } // CompletionTokensDetails represents details about completion tokens for OpenRouter. type CompletionTokensDetails struct { - ReasoningTokens int64 + ReasoningTokens int64 `json:"reasoning_tokens"` } // CostDetails represents cost details for OpenRouter. @@ -54,6 +80,23 @@ type ProviderMetadata struct { // Options implements the ProviderOptionsData interface for ProviderMetadata. func (*ProviderMetadata) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ProviderMetadata. +func (m ProviderMetadata) MarshalJSON() ([]byte, error) { + type plain ProviderMetadata + return fantasy.MarshalProviderType(TypeProviderMetadata, plain(m)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ProviderMetadata. +func (m *ProviderMetadata) UnmarshalJSON(data []byte) error { + type plain ProviderMetadata + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *m = ProviderMetadata(p) + return nil +} + // ReasoningOptions represents reasoning options for OpenRouter. type ReasoningOptions struct { // Whether reasoning is enabled @@ -110,6 +153,23 @@ type ProviderOptions struct { // Options implements the ProviderOptionsData interface for ProviderOptions. func (*ProviderOptions) Options() {} +// MarshalJSON implements custom JSON marshaling with type info for ProviderOptions. +func (o ProviderOptions) MarshalJSON() ([]byte, error) { + type plain ProviderOptions + return fantasy.MarshalProviderType(TypeProviderOptions, plain(o)) +} + +// UnmarshalJSON implements custom JSON unmarshaling with type info for ProviderOptions. +func (o *ProviderOptions) UnmarshalJSON(data []byte) error { + type plain ProviderOptions + var p plain + if err := fantasy.UnmarshalProviderType(data, &p); err != nil { + return err + } + *o = ProviderOptions(p) + return nil +} + // ReasoningDetail represents a reasoning detail for OpenRouter. type ReasoningDetail struct { ID string `json:"id,omitempty"` diff --git a/providertests/provider_registry_test.go b/providertests/provider_registry_test.go new file mode 100644 index 0000000000000000000000000000000000000000..e798e489430949357d05c28f1573e9ac89315ea9 --- /dev/null +++ b/providertests/provider_registry_test.go @@ -0,0 +1,421 @@ +package providertests + +import ( + "encoding/json" + "testing" + + "charm.land/fantasy" + "charm.land/fantasy/providers/anthropic" + "charm.land/fantasy/providers/google" + "charm.land/fantasy/providers/openai" + "charm.land/fantasy/providers/openaicompat" + "charm.land/fantasy/providers/openrouter" + "github.com/stretchr/testify/require" +) + +func TestProviderRegistry_Serialization_OpenAIOptions(t *testing.T) { + msg := fantasy.Message{ + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "hi"}, + }, + ProviderOptions: fantasy.ProviderOptions{ + openai.Name: &openai.ProviderOptions{User: fantasy.Opt("tester")}, + }, + } + + data, err := json.Marshal(msg) + require.NoError(t, err) + + var raw struct { + ProviderOptions map[string]map[string]any `json:"provider_options"` + } + require.NoError(t, json.Unmarshal(data, &raw)) + + po, ok := raw.ProviderOptions[openai.Name] + require.True(t, ok) + require.Equal(t, openai.TypeProviderOptions, po["type"]) // no magic strings + // ensure inner data has the field we set + inner, ok := po["data"].(map[string]any) + require.True(t, ok) + require.Equal(t, "tester", inner["user"]) + + var decoded fantasy.Message + require.NoError(t, json.Unmarshal(data, &decoded)) + + got, ok := decoded.ProviderOptions[openai.Name] + require.True(t, ok) + opt, ok := got.(*openai.ProviderOptions) + require.True(t, ok) + require.NotNil(t, opt.User) + require.Equal(t, "tester", *opt.User) +} + +func TestProviderRegistry_Serialization_OpenAIResponses(t *testing.T) { + // Use ResponsesProviderOptions in provider options + msg := fantasy.Message{ + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "hello"}, + }, + ProviderOptions: fantasy.ProviderOptions{ + openai.Name: &openai.ResponsesProviderOptions{ + PromptCacheKey: fantasy.Opt("cache-key-1"), + ParallelToolCalls: fantasy.Opt(true), + }, + }, + } + + data, err := json.Marshal(msg) + require.NoError(t, err) + + // JSON should include the typed wrapper with constant TypeResponsesProviderOptions + var raw struct { + ProviderOptions map[string]map[string]any `json:"provider_options"` + } + require.NoError(t, json.Unmarshal(data, &raw)) + + po := raw.ProviderOptions[openai.Name] + require.Equal(t, openai.TypeResponsesProviderOptions, po["type"]) // no magic strings + inner, ok := po["data"].(map[string]any) + require.True(t, ok) + require.Equal(t, "cache-key-1", inner["prompt_cache_key"]) + require.Equal(t, true, inner["parallel_tool_calls"]) + + // Unmarshal back and assert concrete type + var decoded fantasy.Message + require.NoError(t, json.Unmarshal(data, &decoded)) + got := decoded.ProviderOptions[openai.Name] + reqOpts, ok := got.(*openai.ResponsesProviderOptions) + require.True(t, ok) + require.NotNil(t, reqOpts.PromptCacheKey) + require.Equal(t, "cache-key-1", *reqOpts.PromptCacheKey) + require.NotNil(t, reqOpts.ParallelToolCalls) + require.Equal(t, true, *reqOpts.ParallelToolCalls) +} + +func TestProviderRegistry_Serialization_OpenAIResponsesReasoningMetadata(t *testing.T) { + resp := fantasy.Response{ + Content: []fantasy.Content{ + fantasy.TextContent{ + Text: "", + ProviderMetadata: fantasy.ProviderMetadata{ + openai.Name: &openai.ResponsesReasoningMetadata{ + ItemID: "item-123", + Summary: []string{"part1", "part2"}, + }, + }, + }, + }, + } + + data, err := json.Marshal(resp) + require.NoError(t, err) + + // Ensure the provider metadata is wrapped with type using constant + var raw struct { + Content []struct { + Type string `json:"type"` + Data map[string]any `json:"data"` + } `json:"content"` + } + require.NoError(t, json.Unmarshal(data, &raw)) + require.Greater(t, len(raw.Content), 0) + tc := raw.Content[0] + pm, ok := tc.Data["provider_metadata"].(map[string]any) + require.True(t, ok) + om, ok := pm[openai.Name].(map[string]any) + require.True(t, ok) + require.Equal(t, openai.TypeResponsesReasoningMetadata, om["type"]) // no magic strings + inner, ok := om["data"].(map[string]any) + require.True(t, ok) + require.Equal(t, "item-123", inner["item_id"]) + + // Unmarshal back + var decoded fantasy.Response + require.NoError(t, json.Unmarshal(data, &decoded)) + pmDecoded := decoded.Content[0].(fantasy.TextContent).ProviderMetadata + val, ok := pmDecoded[openai.Name] + require.True(t, ok) + meta, ok := val.(*openai.ResponsesReasoningMetadata) + require.True(t, ok) + require.Equal(t, "item-123", meta.ItemID) + require.Equal(t, []string{"part1", "part2"}, meta.Summary) +} + +func TestProviderRegistry_Serialization_AnthropicOptions(t *testing.T) { + sendReasoning := true + msg := fantasy.Message{ + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "test message"}, + }, + ProviderOptions: fantasy.ProviderOptions{ + anthropic.Name: &anthropic.ProviderOptions{ + SendReasoning: &sendReasoning, + }, + }, + } + + data, err := json.Marshal(msg) + require.NoError(t, err) + + var decoded fantasy.Message + require.NoError(t, json.Unmarshal(data, &decoded)) + + got, ok := decoded.ProviderOptions[anthropic.Name] + require.True(t, ok) + opt, ok := got.(*anthropic.ProviderOptions) + require.True(t, ok) + require.NotNil(t, opt.SendReasoning) + require.Equal(t, true, *opt.SendReasoning) +} + +func TestProviderRegistry_Serialization_GoogleOptions(t *testing.T) { + msg := fantasy.Message{ + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "test message"}, + }, + ProviderOptions: fantasy.ProviderOptions{ + google.Name: &google.ProviderOptions{ + CachedContent: "cached-123", + Threshold: "BLOCK_ONLY_HIGH", + }, + }, + } + + data, err := json.Marshal(msg) + require.NoError(t, err) + + var decoded fantasy.Message + require.NoError(t, json.Unmarshal(data, &decoded)) + + got, ok := decoded.ProviderOptions[google.Name] + require.True(t, ok) + opt, ok := got.(*google.ProviderOptions) + require.True(t, ok) + require.Equal(t, "cached-123", opt.CachedContent) + require.Equal(t, "BLOCK_ONLY_HIGH", opt.Threshold) +} + +func TestProviderRegistry_Serialization_OpenRouterOptions(t *testing.T) { + includeUsage := true + msg := fantasy.Message{ + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "test message"}, + }, + ProviderOptions: fantasy.ProviderOptions{ + openrouter.Name: &openrouter.ProviderOptions{ + IncludeUsage: &includeUsage, + User: fantasy.Opt("test-user"), + }, + }, + } + + data, err := json.Marshal(msg) + require.NoError(t, err) + + var decoded fantasy.Message + require.NoError(t, json.Unmarshal(data, &decoded)) + + got, ok := decoded.ProviderOptions[openrouter.Name] + require.True(t, ok) + opt, ok := got.(*openrouter.ProviderOptions) + require.True(t, ok) + require.NotNil(t, opt.IncludeUsage) + require.Equal(t, true, *opt.IncludeUsage) + require.NotNil(t, opt.User) + require.Equal(t, "test-user", *opt.User) +} + +func TestProviderRegistry_Serialization_OpenAICompatOptions(t *testing.T) { + effort := openai.ReasoningEffortHigh + msg := fantasy.Message{ + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "test message"}, + }, + ProviderOptions: fantasy.ProviderOptions{ + openaicompat.Name: &openaicompat.ProviderOptions{ + User: fantasy.Opt("test-user"), + ReasoningEffort: &effort, + }, + }, + } + + data, err := json.Marshal(msg) + require.NoError(t, err) + + var decoded fantasy.Message + require.NoError(t, json.Unmarshal(data, &decoded)) + + got, ok := decoded.ProviderOptions[openaicompat.Name] + require.True(t, ok) + opt, ok := got.(*openaicompat.ProviderOptions) + require.True(t, ok) + require.NotNil(t, opt.User) + require.Equal(t, "test-user", *opt.User) + require.NotNil(t, opt.ReasoningEffort) + require.Equal(t, openai.ReasoningEffortHigh, *opt.ReasoningEffort) +} + +func TestProviderRegistry_MultiProvider(t *testing.T) { + // Test with multiple providers in one message + sendReasoning := true + msg := fantasy.Message{ + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "test"}, + }, + ProviderOptions: fantasy.ProviderOptions{ + openai.Name: &openai.ProviderOptions{User: fantasy.Opt("user1")}, + anthropic.Name: &anthropic.ProviderOptions{ + SendReasoning: &sendReasoning, + }, + }, + } + + data, err := json.Marshal(msg) + require.NoError(t, err) + + var decoded fantasy.Message + require.NoError(t, json.Unmarshal(data, &decoded)) + + // Check OpenAI options + openaiOpt, ok := decoded.ProviderOptions[openai.Name] + require.True(t, ok) + openaiData, ok := openaiOpt.(*openai.ProviderOptions) + require.True(t, ok) + require.Equal(t, "user1", *openaiData.User) + + // Check Anthropic options + anthropicOpt, ok := decoded.ProviderOptions[anthropic.Name] + require.True(t, ok) + anthropicData, ok := anthropicOpt.(*anthropic.ProviderOptions) + require.True(t, ok) + require.Equal(t, true, *anthropicData.SendReasoning) +} + +func TestProviderRegistry_ErrorHandling(t *testing.T) { + t.Run("unknown provider type", func(t *testing.T) { + invalidJSON := `{ + "role": "user", + "content": [{"type": "text", "data": {"text": "hi"}}], + "provider_options": { + "unknown": { + "type": "unknown.provider.type", + "data": {} + } + } + }` + + var msg fantasy.Message + err := json.Unmarshal([]byte(invalidJSON), &msg) + require.Error(t, err) + require.Contains(t, err.Error(), "unknown provider data type") + }) + + t.Run("malformed provider data", func(t *testing.T) { + invalidJSON := `{ + "role": "user", + "content": [{"type": "text", "data": {"text": "hi"}}], + "provider_options": { + "openai": "not-an-object" + } + }` + + var msg fantasy.Message + err := json.Unmarshal([]byte(invalidJSON), &msg) + require.Error(t, err) + }) +} + +func TestProviderRegistry_AllTypesRegistered(t *testing.T) { + // Verify all expected provider types are registered + // We test that unmarshaling with proper type IDs doesn't fail with "unknown provider data type" + tests := []struct { + name string + providerName string + data fantasy.ProviderOptionsData + }{ + {"OpenAI Options", openai.Name, &openai.ProviderOptions{}}, + {"OpenAI File Options", openai.Name, &openai.ProviderFileOptions{}}, + {"OpenAI Metadata", openai.Name, &openai.ProviderMetadata{}}, + {"OpenAI Responses Options", openai.Name, &openai.ResponsesProviderOptions{}}, + {"Anthropic Options", anthropic.Name, &anthropic.ProviderOptions{}}, + {"Google Options", google.Name, &google.ProviderOptions{}}, + {"OpenRouter Options", openrouter.Name, &openrouter.ProviderOptions{}}, + {"OpenAICompat Options", openaicompat.Name, &openaicompat.ProviderOptions{}}, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + // Create a message with the provider options + msg := fantasy.Message{ + Role: fantasy.MessageRoleUser, + Content: []fantasy.MessagePart{ + fantasy.TextPart{Text: "test"}, + }, + ProviderOptions: fantasy.ProviderOptions{ + tc.providerName: tc.data, + }, + } + + // Marshal and unmarshal + data, err := json.Marshal(msg) + require.NoError(t, err) + + var decoded fantasy.Message + err = json.Unmarshal(data, &decoded) + require.NoError(t, err) + + // Verify the provider options exist + _, ok := decoded.ProviderOptions[tc.providerName] + require.True(t, ok, "Provider options should be present after round-trip") + }) + } + + // Test metadata types separately as they go in different field + metadataTests := []struct { + name string + providerName string + data fantasy.ProviderOptionsData + }{ + {"OpenAI Responses Reasoning Metadata", openai.Name, &openai.ResponsesReasoningMetadata{}}, + {"Anthropic Reasoning Metadata", anthropic.Name, &anthropic.ReasoningOptionMetadata{}}, + {"Google Reasoning Metadata", google.Name, &google.ReasoningMetadata{}}, + {"OpenRouter Metadata", openrouter.Name, &openrouter.ProviderMetadata{}}, + } + + for _, tc := range metadataTests { + t.Run(tc.name, func(t *testing.T) { + // Create a response with provider metadata + resp := fantasy.Response{ + Content: []fantasy.Content{ + fantasy.TextContent{ + Text: "test", + ProviderMetadata: fantasy.ProviderMetadata{ + tc.providerName: tc.data, + }, + }, + }, + } + + // Marshal and unmarshal + data, err := json.Marshal(resp) + require.NoError(t, err) + + var decoded fantasy.Response + err = json.Unmarshal(data, &decoded) + require.NoError(t, err) + + // Verify the provider metadata exists + textContent, ok := decoded.Content[0].(fantasy.TextContent) + require.True(t, ok) + _, ok = textContent.ProviderMetadata[tc.providerName] + require.True(t, ok, "Provider metadata should be present after round-trip") + }) + } +} diff --git a/tool.go b/tool.go index 9dbff68584b0f7bebb64d58df6929d42ff40801c..9731739ceaf8fcf5dc666f3f0e11a8ab22d5013f 100644 --- a/tool.go +++ b/tool.go @@ -14,10 +14,10 @@ type Schema = schema.Schema // ToolInfo represents tool metadata, matching the existing pattern. type ToolInfo struct { - Name string - Description string - Parameters map[string]any - Required []string + Name string `json:"name"` + Description string `json:"description"` + Parameters map[string]any `json:"parameters"` + Required []string `json:"required"` } // ToolCall represents a tool invocation, matching the existing pattern.