From b3f36c09674ee0f9e28e3567a6fe5cb4d5f2acc0 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Mon, 7 Sep 2026 21:55:33 -0500 Subject: [PATCH] feat(ai): add Z.AI language models (#47866) --- packages/ai/AGENTS.md | 1 + packages/ai/README.md | 67 ++++ packages/ai/src/protocols/zai-chat.ts | 75 +++++ packages/ai/src/protocols/zai-messages.ts | 39 +++ packages/ai/src/providers/index.ts | 1 + packages/ai/src/providers/zai-coding-plan.ts | 92 ++++++ .../ai/src/providers/zai-coding-plan/chat.ts | 1 + .../src/providers/zai-coding-plan/messages.ts | 16 + .../providers/zai-coding-plan/responses.ts | 16 + packages/ai/src/providers/zai.ts | 53 ++- packages/ai/src/providers/zai/chat.ts | 1 + ...ls-a-tool-without-streaming-arguments.json | 28 ++ .../glm-4-7-streams-thinking-disabled.json | 28 ++ .../glm-4-7-streams-thinking-enabled.json | 28 ++ .../zai-chat/glm-5-2-streams-high-effort.json | 28 ++ .../zai-chat/glm-5-2-streams-low-effort.json | 28 ++ .../zai-chat/glm-5-2-streams-max-effort.json | 28 ++ .../glm-5-2-streams-medium-effort.json | 28 ++ .../glm-5-2-streams-minimal-effort.json | 28 ++ .../zai-chat/glm-5-2-streams-none-effort.json | 28 ++ .../glm-5-2-streams-thinking-disabled.json | 28 ++ .../glm-5-2-streams-thinking-enabled.json | 28 ++ .../glm-5-2-streams-xhigh-effort.json | 28 ++ .../glm-5-3-flash-reads-image-bytes.json | 28 ++ ...ing-through-a-tool-loop-and-follow-up.json | 64 ++++ .../glm-5-3-rejects-disabled-thinking.json | 27 ++ .../glm-5-3-returns-a-json-object.json | 28 ++ .../glm-5-3-streams-default-effort.json | 28 ++ .../zai-chat/glm-5-3-streams-high-effort.json | 28 ++ .../zai-chat/glm-5-3-streams-low-effort.json | 28 ++ .../zai-chat/glm-5-3-streams-max-effort.json | 28 ++ .../ai/test/provider-options/zai.types.ts | 32 ++ packages/ai/test/provider-package.test.ts | 41 +++ .../zai-capabilities.recorded.test.ts | 156 +++++++++ .../ai/test/provider/zai.recorded.test.ts | 113 +++++++ packages/ai/test/provider/zai.test.ts | 301 ++++++++++++++++++ 36 files changed, 1597 insertions(+), 3 deletions(-) create mode 100644 packages/ai/src/protocols/zai-chat.ts create mode 100644 packages/ai/src/protocols/zai-messages.ts create mode 100644 packages/ai/src/providers/zai-coding-plan.ts create mode 100644 packages/ai/src/providers/zai-coding-plan/chat.ts create mode 100644 packages/ai/src/providers/zai-coding-plan/messages.ts create mode 100644 packages/ai/src/providers/zai-coding-plan/responses.ts create mode 100644 packages/ai/src/providers/zai/chat.ts create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-4-5-calls-a-tool-without-streaming-arguments.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-4-7-streams-thinking-disabled.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-4-7-streams-thinking-enabled.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-high-effort.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-low-effort.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-max-effort.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-medium-effort.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-minimal-effort.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-none-effort.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-thinking-disabled.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-thinking-enabled.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-xhigh-effort.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-flash-reads-image-bytes.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-preserves-reasoning-through-a-tool-loop-and-follow-up.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-rejects-disabled-thinking.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-returns-a-json-object.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-default-effort.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-high-effort.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-low-effort.json create mode 100644 packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-max-effort.json create mode 100644 packages/ai/test/provider-options/zai.types.ts create mode 100644 packages/ai/test/provider/zai-capabilities.recorded.test.ts create mode 100644 packages/ai/test/provider/zai.recorded.test.ts create mode 100644 packages/ai/test/provider/zai.test.ts diff --git a/packages/ai/AGENTS.md b/packages/ai/AGENTS.md index 9c32d27e054..c07f3f77fa2 100644 --- a/packages/ai/AGENTS.md +++ b/packages/ai/AGENTS.md @@ -13,6 +13,7 @@ Per-type constructors live on the type, not as top-level re-exports. Use `Message.system(...)`, `Message.user(...)`, `Message.assistant(...)`, `Message.tool(...)`, `LanguageModel.make(...)`, `ToolDefinition.make(...)`, `ToolCallPart.make(...)`, `ToolResultPart.make(...)`, `ToolChoice.make(...)`, `ToolChoice.named(...)`, `SystemPart.make(...)`, and `GenerationOptions.make(...)` directly. The top-level `LLM` namespace is reserved for request-shaped call APIs: `LLM.request`, `LLM.generate`, `LLM.stream`, and `LLM.generateObject`. Use `LLMRequest.update(...)` when deriving canonical request data; do not add a duplicate `LLM.updateRequest(...)` path. Two ways to construct the same thing is one too many. - Keep provider-defined string enums forward-compatible. Expose known values for autocomplete while accepting future values with `Known | (string & {})`; use `Schema.String` at runtime unless rejecting unknown values is required for correctness. +- Order reasoning-effort values from lowest to highest: `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max`. Provider-specific subsets follow the same relative order in types, schemas, option lists, and tests. ## Tests diff --git a/packages/ai/README.md b/packages/ai/README.md index 887dbbfe30d..cf2031dcaf0 100644 --- a/packages/ai/README.md +++ b/packages/ai/README.md @@ -29,6 +29,73 @@ await Effect.runPromise(program.pipe(Effect.provide(llmLayer))) Run `LLMClient.stream(request)` instead of `generate` when you want incremental `LLMEvent`s. The event stream is provider-neutral — same shape across OpenAI Chat, OpenAI Responses, Anthropic Messages, Gemini, Bedrock Converse, and any OpenAI-compatible deployment. +## Z.AI + +`ZAI` uses the standard API. Chat Completions is the default language-model API; +the existing `.image(...)` selector provides image generation. + +```ts +import { LLM } from "@opencode/ai" +import { ZAI, ZAICodingPlan } from "@opencode/ai/providers" + +const zai = ZAI.configure({ apiKey: process.env.ZAI_API_KEY }) +const request = LLM.request({ + model: zai.model("glm-5.3"), // also zai.chat("glm-5.3") + prompt: "Explain this design.", + providerOptions: { + reasoningEffort: "high", + thinking: { type: "enabled", clear_thinking: false }, + }, +}) + +const coding = ZAICodingPlan.configure({ apiKey: process.env.ZAI_API_KEY }) +const messages = LLM.request({ + model: coding.messages("glm-5.3"), + prompt: "Explain this design.", + providerOptions: { effort: "high" }, +}) +``` + +The products have distinct provider identities and endpoints: + +| Provider | Selector | Default base URL | +| ----------------------------------- | --------------------------- | ------------------------------------- | +| `ZAI` (`zai`) | `.model`, `.chat`, `.image` | `https://api.z.ai/api/paas/v4` | +| `ZAICodingPlan` (`zai-coding-plan`) | `.model`, `.chat` | `https://api.z.ai/api/coding/paas/v4` | +| `ZAICodingPlan` | `.messages` | `https://api.z.ai/api/anthropic/v1` | +| `ZAICodingPlan` | `.responses` | `https://api.z.ai/api/v1` | + +Both read `ZAI_API_KEY` when `apiKey` is omitted and support an explicit `auth` override. +Coding Plan requires an active subscription. `baseURL` overrides the selected API's +complete base, including its version prefix. Language-model routes use HTTP/SSE. + +Options retain the selected API's native semantics: + +- Chat `reasoningEffort` lowers to `reasoning_effort`; Responses lowers it to `reasoning.effort`. + Messages `effort` lowers to `output_config.effort`. Omission preserves provider defaults. +- Chat `thinking` passes `type` and `clear_thinking` through unchanged. Set + `clear_thinking: false` and replay complete `response.message` values to preserve reasoning + across user messages and tool loops. The standard API defaults to clearing historical thinking; + Coding Plan documents preservation by default. +- Messages accepts `thinking: { type: "enabled" | "adaptive" | "disabled" }` without requiring + an Anthropic token budget. Coding Plan documents a disabled toggle as low-effort thinking + for GLM-5.3, with explicit effort taking precedence. +- Chat also offers `toolStream`, `doSample`, `responseFormat`, `requestID`, and `userID`. + Tool-argument streaming is enabled when tools are present on GLM-4.6/4.7/5.x; + `toolStream: false` explicitly disables it. Older model families omit the opt-in. +- Effort and thinking values remain forward-compatible strings. Their meaning is model-specific: + GLM-5.3 accepts `low`, `high`, and `max` effort and rejects disabled thinking with HTTP 400; + the direct GLM-5.2 recordings returned reasoning even with `none` and `minimal` effort, + whereas explicit `thinking.type: "disabled"` disabled it on GLM-5.2 and GLM-4.7. + +Standard API recordings cover GLM-5.3 efforts and a full preserved-reasoning tool loop with +a subsequent user follow-up, GLM-5.2 efforts, older-model thinking toggles, GLM-4.5 tool calls, +GLM-5.3-Flash image input, and JSON output. Coding Plan has unit coverage for routing, +request options, and reasoning replay; successful live recordings are pending. + +Package entrypoints are `@opencode/ai/providers/zai`, `zai/chat`, `zai-coding-plan`, +`zai-coding-plan/chat`, `zai-coding-plan/messages`, and `zai-coding-plan/responses`. + ## Moonshot Moonshot defaults to Chat Completions, with Messages and Responses selectors for Kimi K3: diff --git a/packages/ai/src/protocols/zai-chat.ts b/packages/ai/src/protocols/zai-chat.ts new file mode 100644 index 00000000000..43a1be7ac6e --- /dev/null +++ b/packages/ai/src/protocols/zai-chat.ts @@ -0,0 +1,75 @@ +import { Effect, Schema } from "effect" +import { Protocol } from "../route/protocol.js" +import type { LanguageModelCompatibility, LLMRequest } from "../schema/index.js" +import { OpenAIChat } from "./openai-chat.js" +import { ProviderShared } from "./shared.js" + +export type ReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | (string & {}) + +export type OptionsInput = { + readonly reasoningEffort?: ReasoningEffort + readonly thinking?: { + readonly type?: "enabled" | "disabled" | (string & {}) + /** False retains historical reasoning; omission preserves the endpoint's default. */ + readonly clear_thinking?: boolean + } + readonly toolStream?: boolean + readonly doSample?: boolean + readonly responseFormat?: { readonly type: "text" | "json_object" | (string & {}) } + readonly requestID?: string + readonly userID?: string +} + +const Options = Schema.Struct({ + reasoningEffort: Schema.optional(Schema.String), + thinking: Schema.optional( + Schema.Struct({ type: Schema.optional(Schema.String), clear_thinking: Schema.optional(Schema.Boolean) }), + ), + toolStream: Schema.optional(Schema.Boolean), + doSample: Schema.optional(Schema.Boolean), + responseFormat: Schema.optional(Schema.Struct({ type: Schema.String })), + requestID: Schema.optional(Schema.String), + userID: Schema.optional(Schema.String), +}) + +const Body = Schema.Struct({ + ...OpenAIChat.bodyFields, + thinking: Options.fields.thinking, + do_sample: Options.fields.doSample, + response_format: Options.fields.responseFormat, + request_id: Options.fields.requestID, + user_id: Options.fields.userID, +}) + +const fromRequest = Effect.fn("ZAIChat.fromRequest")(function* (request: LLMRequest) { + const options = yield* ProviderShared.validateWith(Schema.decodeUnknownEffect(Options))(request.providerOptions ?? {}) + const body = yield* OpenAIChat.protocol.body.from(request) + return { + ...body, + thinking: options.thinking, + // Tool streaming was introduced in GLM-4.6; older models must not receive the opt-in. + tool_stream: + options.toolStream ?? + (body.tools?.length && /^glm-(?:4\.[67]|5(?:[.-]|$))/i.test(request.model.id) ? true : undefined), + do_sample: options.doSample, + response_format: options.responseFormat, + request_id: options.requestID, + user_id: options.userID, + } +}) + +export const compatibility = { + maxTokensField: "max_tokens", + supportsStore: false, + supportsStrictMode: false, + reasoningField: "reasoning_content", + zaiToolStream: false, +} satisfies LanguageModelCompatibility + +export const protocol = Protocol.make({ + id: "zai-chat", + body: { schema: Body, from: fromRequest }, + stream: OpenAIChat.protocol.stream, +}) + +export * as ZAIChat from "./zai-chat.js" diff --git a/packages/ai/src/protocols/zai-messages.ts b/packages/ai/src/protocols/zai-messages.ts new file mode 100644 index 00000000000..4f609c844c9 --- /dev/null +++ b/packages/ai/src/protocols/zai-messages.ts @@ -0,0 +1,39 @@ +import { Effect, Schema } from "effect" +import { Protocol } from "../route/protocol.js" +import { LLMRequest } from "../schema/index.js" +import { AnthropicMessages } from "./anthropic-messages.js" +import { ProviderShared } from "./shared.js" +import type { ZAIChat } from "./zai-chat.js" + +export type OptionsInput = { + readonly effort?: ZAIChat.ReasoningEffort + readonly thinking?: { readonly type: "enabled" | "adaptive" | "disabled" | (string & {}) } +} + +const Options = Schema.Struct({ + effort: Schema.optional(Schema.String), + thinking: Schema.optional(Schema.Struct({ type: Schema.String })), +}) +const Body = Schema.Struct({ + ...AnthropicMessages.AnthropicMessagesBody.fields, + thinking: Options.fields.thinking, +}) + +const fromRequest = Effect.fn("ZAIMessages.fromRequest")(function* (request: LLMRequest) { + const options = yield* ProviderShared.validateWith(Schema.decodeUnknownEffect(Options))(request.providerOptions ?? {}) + // Z.AI accepts enabled thinking without Anthropic's mandatory token budget. + const body = yield* AnthropicMessages.protocol.body.from( + LLMRequest.update(request, { + providerOptions: { ...request.providerOptions, thinking: undefined }, + }), + ) + return { ...body, thinking: options.thinking } +}) + +export const protocol = Protocol.make({ + id: "zai-messages", + body: { schema: Body, from: fromRequest }, + stream: AnthropicMessages.protocol.stream, +}) + +export * as ZAIMessages from "./zai-messages.js" diff --git a/packages/ai/src/providers/index.ts b/packages/ai/src/providers/index.ts index 8ad828c417c..6e098579f32 100644 --- a/packages/ai/src/providers/index.ts +++ b/packages/ai/src/providers/index.ts @@ -27,3 +27,4 @@ export * as OpenRouter from "./openrouter.js" export * as TogetherAI from "./togetherai.js" export * as XAI from "./xai.js" export * as ZAI from "./zai.js" +export * as ZAICodingPlan from "./zai-coding-plan.js" diff --git a/packages/ai/src/providers/zai-coding-plan.ts b/packages/ai/src/providers/zai-coding-plan.ts new file mode 100644 index 00000000000..feb659d7f0d --- /dev/null +++ b/packages/ai/src/providers/zai-coding-plan.ts @@ -0,0 +1,92 @@ +import type { ProviderPackage } from "../provider-package.js" +import { AnthropicMessages } from "../protocols/anthropic-messages.js" +import { OpenAIChat } from "../protocols/openai-chat.js" +import { OpenResponses } from "../protocols/open-responses.js" +import { ZAIChat } from "../protocols/zai-chat.js" +import { ZAIMessages } from "../protocols/zai-messages.js" +import { AuthOptions, type ProviderAuthOption } from "../route/auth-options.js" +import { Route, type RouteDefaultsInput } from "../route/client.js" +import { Endpoint } from "../route/endpoint.js" +import { Framing } from "../route/framing.js" +import { ProviderID, type ModelID } from "../schema/index.js" + +export const id = ProviderID.make("zai-coding-plan") + +export type ChatOptionsInput = ZAIChat.OptionsInput +export type MessagesOptionsInput = ZAIMessages.OptionsInput +export type ResponsesOptionsInput = { readonly reasoningEffort?: ZAIChat.ReasoningEffort } + +export type Config = Omit & + ProviderAuthOption<"optional"> & { + /** Overrides the selected API's complete base URL. */ + readonly baseURL?: string + readonly providerOptions?: ChatOptionsInput | MessagesOptionsInput | ResponsesOptionsInput + } + +export interface Settings extends ProviderPackage.Settings { + readonly apiKey?: string + readonly baseURL?: string + readonly providerOptions?: Options +} + +const chatRoute = Route.make({ + id: "zai-coding-chat", + provider: id, + providerMetadataKey: "zai", + protocol: ZAIChat.protocol, + endpoint: Endpoint.path("/chat/completions", { baseURL: "https://api.z.ai/api/coding/paas/v4" }), + framing: OpenAIChat.framing, +}) +const messagesRoute = Route.make({ + id: "zai-coding-messages", + provider: id, + providerMetadataKey: "zai", + protocol: ZAIMessages.protocol, + endpoint: Endpoint.path("/messages", { baseURL: "https://api.z.ai/api/anthropic/v1" }), + framing: AnthropicMessages.framing, + headers: () => ({ "anthropic-version": "2023-06-01" }), +}) +const responsesRoute = Route.make({ + id: "zai-coding-responses", + provider: id, + providerMetadataKey: "zai", + protocol: OpenResponses.protocol, + endpoint: Endpoint.path("/responses", { baseURL: "https://api.z.ai/api/v1" }), + framing: Framing.sse, +}) + +export const routes = [chatRoute, messagesRoute, responsesRoute] + +export const configure = (input: Config = {}) => { + const { apiKey: _apiKey, auth: _auth, baseURL, ...rest } = input + const defaults = { + ...rest, + endpoint: baseURL === undefined ? undefined : { baseURL }, + auth: AuthOptions.bearer(input, "ZAI_API_KEY"), + } + const chat = (modelID: string | ModelID) => + chatRoute.with(defaults).model({ id: modelID, compatibility: ZAIChat.compatibility }) + const messages = (modelID: string | ModelID) => + messagesRoute + .with(defaults) + .model({ id: modelID, compatibility: { requireSignature: false } }) + const responses = (modelID: string | ModelID) => + responsesRoute.with(defaults).model({ id: modelID }) + return { id, model: chat, chat, messages, responses, configure } +} + +export const provider = configure() +export const chat = provider.chat +export const messages = provider.messages +export const responses = provider.responses + +export const model: ProviderPackage.Definition["model"] = (modelID, settings) => + configure({ + apiKey: settings.apiKey, + baseURL: settings.baseURL, + headers: settings.headers, + http: settings.body === undefined ? undefined : { body: { ...settings.body } }, + providerOptions: settings.providerOptions, + }).model(modelID) + +export * as ZAICodingPlan from "./zai-coding-plan.js" diff --git a/packages/ai/src/providers/zai-coding-plan/chat.ts b/packages/ai/src/providers/zai-coding-plan/chat.ts new file mode 100644 index 00000000000..75d7b3ce02a --- /dev/null +++ b/packages/ai/src/providers/zai-coding-plan/chat.ts @@ -0,0 +1 @@ +export { model, type Settings } from "../zai-coding-plan.js" diff --git a/packages/ai/src/providers/zai-coding-plan/messages.ts b/packages/ai/src/providers/zai-coding-plan/messages.ts new file mode 100644 index 00000000000..e9b2d2bb550 --- /dev/null +++ b/packages/ai/src/providers/zai-coding-plan/messages.ts @@ -0,0 +1,16 @@ +import type { ProviderPackage } from "../../provider-package.js" +import { ZAICodingPlan } from "../zai-coding-plan.js" + +export type Settings = ZAICodingPlan.Settings + +export const model: ProviderPackage.Definition["model"] = ( + modelID, + settings, +) => + ZAICodingPlan.configure({ + apiKey: settings.apiKey, + baseURL: settings.baseURL, + headers: settings.headers, + http: settings.body === undefined ? undefined : { body: { ...settings.body } }, + providerOptions: settings.providerOptions, + }).messages(modelID) diff --git a/packages/ai/src/providers/zai-coding-plan/responses.ts b/packages/ai/src/providers/zai-coding-plan/responses.ts new file mode 100644 index 00000000000..41459dca05f --- /dev/null +++ b/packages/ai/src/providers/zai-coding-plan/responses.ts @@ -0,0 +1,16 @@ +import type { ProviderPackage } from "../../provider-package.js" +import { ZAICodingPlan } from "../zai-coding-plan.js" + +export type Settings = ZAICodingPlan.Settings + +export const model: ProviderPackage.Definition["model"] = ( + modelID, + settings, +) => + ZAICodingPlan.configure({ + apiKey: settings.apiKey, + baseURL: settings.baseURL, + headers: settings.headers, + http: settings.body === undefined ? undefined : { body: { ...settings.body } }, + providerOptions: settings.providerOptions, + }).responses(modelID) diff --git a/packages/ai/src/providers/zai.ts b/packages/ai/src/providers/zai.ts index d8ff837df0f..4ade635787b 100644 --- a/packages/ai/src/providers/zai.ts +++ b/packages/ai/src/providers/zai.ts @@ -1,20 +1,53 @@ +import type { ProviderPackage } from "../provider-package.js" +import { ZAIChat } from "../protocols/zai-chat.js" import { ZAIImages } from "../protocols/zai-images.js" +import { OpenAIChat } from "../protocols/openai-chat.js" import { AuthOptions, type ProviderAuthOption } from "../route/auth-options.js" +import { Route, type RouteDefaultsInput } from "../route/client.js" +import { Endpoint } from "../route/endpoint.js" import { HttpOptions, ProviderID, type ModelID } from "../schema/index.js" export const id = ProviderID.make("zai") -export type Config = ProviderAuthOption<"optional"> & { +export type ChatOptionsInput = ZAIChat.OptionsInput + +export type Config = Omit & + ProviderAuthOption<"optional"> & { + readonly baseURL?: string + readonly providerOptions?: ChatOptionsInput + } + +export interface Settings extends ProviderPackage.Settings { + readonly apiKey?: string readonly baseURL?: string - readonly headers?: Record - readonly http?: HttpOptions.Input + readonly providerOptions?: ChatOptionsInput } export type { ZAIImageOptions } from "../protocols/zai-images.js" const auth = (options: ProviderAuthOption<"optional">) => AuthOptions.bearer(options, "ZAI_API_KEY") +const chatRoute = Route.make({ + id: "zai-chat", + provider: id, + providerMetadataKey: "zai", + protocol: ZAIChat.protocol, + endpoint: Endpoint.path("/chat/completions", { baseURL: "https://api.z.ai/api/paas/v4" }), + framing: OpenAIChat.framing, +}) + +export const routes = [chatRoute] + export const configure = (input: Config = {}) => { + const { apiKey: _apiKey, auth: _auth, baseURL, ...rest } = input + const chat = (modelID: string | ModelID) => + chatRoute + .with({ + ...rest, + endpoint: baseURL === undefined ? undefined : { baseURL }, + auth: auth(input), + }) + .model({ id: modelID, compatibility: ZAIChat.compatibility }) const image = (modelID: string | ModelID) => ZAIImages.model({ id: modelID, @@ -26,6 +59,8 @@ export const configure = (input: Config = {}) => { return { id, + model: chat, + chat, image, configure, } @@ -33,3 +68,15 @@ export const configure = (input: Config = {}) => { export const provider = configure() export const image = provider.image +export const chat = provider.chat + +export const model: ProviderPackage.Definition["model"] = (modelID, settings) => + configure({ + apiKey: settings.apiKey, + baseURL: settings.baseURL, + headers: settings.headers, + http: settings.body === undefined ? undefined : { body: { ...settings.body } }, + providerOptions: settings.providerOptions, + }).model(modelID) + +export * as ZAI from "./zai.js" diff --git a/packages/ai/src/providers/zai/chat.ts b/packages/ai/src/providers/zai/chat.ts new file mode 100644 index 00000000000..21f923e2264 --- /dev/null +++ b/packages/ai/src/providers/zai/chat.ts @@ -0,0 +1 @@ +export { model, type Settings } from "../zai.js" diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-4-5-calls-a-tool-without-streaming-arguments.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-4-5-calls-a-tool-without-streaming-arguments.json new file mode 100644 index 00000000000..b182a86b8d6 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-4-5-calls-a-tool-without-streaming-arguments.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "tool", "legacy"], + "name": "zai-chat/glm-4-5-calls-a-tool-without-streaming-arguments", + "recordedAt": "2026-09-08T01:00:08.393Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-4.5\",\"messages\":[{\"role\":\"user\",\"content\":\"Use get_weather to look up the current weather in Paris.\"}],\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"description\":\"Get weather in a city\",\"parameters\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\",\"enum\":[\"Paris\"]}},\"required\":[\"city\"]}}}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user wants\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" me to\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" use the\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" get_weather\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" function\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to look\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" up the\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" current weather\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" in\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" Paris.\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" Looking at\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the function\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" definition:\\n\\n\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"- Function\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" name:\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" get\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"_weather\\n\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"- Parameters\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\": city\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"required),\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" enum with\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" only \\\"\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Paris\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\\" as\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the allowed\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" value\\n\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"-\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" The user\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" specifically mentioned\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \\\"Paris\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\\" which\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" matches the\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" only available\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" city\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" option\\n\\n\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"I have\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" all the\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" required\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" parameters,\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" so I\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" can proceed\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" with the\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" function call\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"id\":\"tool-064305c5b5554370a8a47f0d7f4ae007\",\"index\":0,\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\": \\\"Paris\\\"}\"}}]}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"2026090809000486533b4eb7114fb0\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.5\",\"choices\":[{\"index\":0,\"finish_reason\":\"tool_calls\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":174,\"completion_tokens\":95,\"total_tokens\":269,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":83}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-4-7-streams-thinking-disabled.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-4-7-streams-thinking-disabled.json new file mode 100644 index 00000000000..9a376d90728 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-4-7-streams-thinking-disabled.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "thinking", "usage"], + "name": "zai-chat/glm-4-7-streams-thinking-disabled", + "recordedAt": "2026-09-08T00:59:30.888Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-4.7\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"max_tokens\":4096,\"thinking\":{\"type\":\"disabled\",\"clear_thinking\":true}}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908085928f9beb3885fd04e69\",\"created\":1788829168,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085928f9beb3885fd04e69\",\"created\":1788829168,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"7887\"}}]}\n\ndata: {\"id\":\"20260908085928f9beb3885fd04e69\",\"created\":1788829168,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"20260908085928f9beb3885fd04e69\",\"created\":1788829168,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":22,\"completion_tokens\":3,\"total_tokens\":25,\"prompt_tokens_details\":{\"cached_tokens\":0}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-4-7-streams-thinking-enabled.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-4-7-streams-thinking-enabled.json new file mode 100644 index 00000000000..758efecb1e6 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-4-7-streams-thinking-enabled.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "thinking", "usage"], + "name": "zai-chat/glm-4-7-streams-thinking-enabled", + "recordedAt": "2026-09-08T00:59:28.236Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-4.7\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"max_tokens\":4096,\"thinking\":{\"type\":\"enabled\",\"clear_thinking\":true}}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"I\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" need\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" multiply\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" by\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" I\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'ll\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" do\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" this\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" step\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" by\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" step\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" using\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" standard\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" multiplication\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" algorithm\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"``\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"`\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -----\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"``\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"`\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"First\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" I\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'ll\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" multiply\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" by\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"the\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ones\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" digit\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" of\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"):\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"55\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Next\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" I\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'ll\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" multiply\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" by\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"the\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" tens\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" digit\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" of\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" accounting\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" for\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" place\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" value\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"):\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Finally\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" I\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'ll\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" multiply\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" by\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"the\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" hundreds\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" digit\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" of\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" accounting\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" for\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" place\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" value\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"):\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Now\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" I\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'ll\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" add\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" these\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" partial\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" products\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"55\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ----\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"--\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"So\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" me\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" double\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"-check\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" this\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" using\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" a\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" different\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" method\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"I\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" can\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" also\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" use\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" distrib\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"utive\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" property\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"55\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"I\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" get\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" same\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" result\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" so\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" I\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'m\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" confident\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" that\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"78\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"87\"}}]}\n\ndata: {\"id\":\"20260908085924730aa5ec4ee04bba\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-4.7\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":22,\"completion_tokens\":305,\"total_tokens\":327,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":300}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-high-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-high-effort.json new file mode 100644 index 00000000000..a0416cb9ffc --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-high-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "effort", "usage"], + "name": "zai-chat/glm-5-2-streams-high-effort", + "recordedAt": "2026-09-08T00:59:53.126Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.2\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"high\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user wants to multiply\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 173 by 219.\\n\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"I will calculate the product mentally\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" or via scratchpad.\\n173\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" * 219\\n= 173\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" * (200 + 19\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n= 34600 + \"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173 * 19\\n173\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" * 10 = 1730\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n173 * 9 = 155\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\\n1730 + 155\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7 = 3287\\n34\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600 + 3287 =\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 37887\\n\\nLet me double\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" check.\\n173 * 2\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\\n= 173 * (\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"220 - 1)\\n=\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 173 * 220 - 173\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n= 173 * 22\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" * 10 - 173\\n\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"= 3806 *\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 10 - 173\\n=\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 38060 - 173\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n= 37887\\n\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Correct.\\n\\nThe user requested \\\"\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"only the final integer\\\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"So I will output just\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 37887.\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"378\",\"reasoning_content\":\"\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"87\",\"reasoning_content\":\"\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"202609080859504e397301e57a4d45\",\"created\":1788829190,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":189,\"total_tokens\":218,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":185}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-low-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-low-effort.json new file mode 100644 index 00000000000..e98d6baacce --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-low-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "effort", "usage"], + "name": "zai-chat/glm-5-2-streams-low-effort", + "recordedAt": "2026-09-08T00:59:46.493Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.2\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"low\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\". Need\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to calculate 173 *\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 219.\\n2. Break\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" down the multiplication:\\n 173 *\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 200 = 34600\\n\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 173 * 10 = \"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1730\\n 173 * \"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9 = 1557\\n3.\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" Add them up:\\n 34\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600 + 1730 = \"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"36330\\n 36\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"330 + 1557 = \"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37887\\n4. \"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" Double check with standard algorithm:\\n \"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 173\\n x 2\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\\n -----\\n \"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 1557 (9\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"*3=27, 9\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"*7=63+\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2=65, 9*\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1=9+6\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=15)\\n 1730 \"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (1*3=3\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\", 1*7=7\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\", 1*1=1)\\n\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 3460\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (2*3=6\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\", 2*7=14\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\", 2*1=2\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"+1=3)\\n -----\\n \"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 37887\\n5. \"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" The final integer is 3\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7887.\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"37887\",\"reasoning_content\":\"\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"2026090808594380c9ec23b6d14b88\",\"created\":1788829183,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":228,\"total_tokens\":257,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":224}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-max-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-max-effort.json new file mode 100644 index 00000000000..23f27ce90ce --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-max-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "effort", "usage"], + "name": "zai-chat/glm-5-2-streams-max-effort", + "recordedAt": "2026-09-08T01:00:01.238Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.2\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"max\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user wants to\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" calculate 173 * 219.\\n\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"I will compute this step\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" by step to ensure accuracy.\\n173\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" * 200 = 34\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600\\n173 *\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 10 = 1730\\n173\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" * 9 = 155\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\\nSo, 173 *\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 219 = 34600\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" + 1730 + 1557\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" = 36330\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" + 1557 = 378\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87.\\nLet me double check\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n 173\\n\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"x 219\\n-----\\n\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 1557 (173 * \"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9)\\n 1730 (173\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" * 10)\\n34\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600 (173 * 200\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n-----\\n37887\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let's do it another way:\\n173\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" * 219 = 173 *\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (220 - 1) = \"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"38060 - 173\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" = 37887.\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let's do it a\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" third way:\\n(170\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" + 3) * 2\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19 = 170 * 219\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" + 3 * 219\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" = 37230\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" + 657 = 3\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7887.\\n170 * 219\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" = 17 * 2\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"190 = 372\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30. (17 * 2\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19 = 3723).\\n\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3 * 219 = 65\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7.\\n37230 + 65\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7 = 37887.\\n\\nAll\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" methods give the same result.\\n\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The user requested \\\"only the final integer\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\\".\\nSo I will output \\\"\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37887\\\".\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"37887\",\"reasoning_content\":\"\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"20260908085956cb8c58b604114f8f\",\"created\":1788829196,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":302,\"total_tokens\":331,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":298}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-medium-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-medium-effort.json new file mode 100644 index 00000000000..279e4ce1597 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-medium-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "effort", "usage"], + "name": "zai-chat/glm-5-2-streams-medium-effort", + "recordedAt": "2026-09-08T00:59:49.999Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.2\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"medium\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" wants\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" know\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" product\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" of\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" and\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"I\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" need\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" calculate\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"36\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" me\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" double\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" check\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"220\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"220\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"22\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"11\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"11\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"380\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"So\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"220\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"380\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"60\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"380\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"60\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" result\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" is\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" requested\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \\\"\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"only\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" final\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" integer\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\\"\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"202609080859466291aa36d8a94dae\",\"created\":1788829186,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":180,\"total_tokens\":209,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":177}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-minimal-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-minimal-effort.json new file mode 100644 index 00000000000..5f7c158bac4 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-minimal-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "effort", "usage"], + "name": "zai-chat/glm-5-2-streams-minimal-effort", + "recordedAt": "2026-09-08T00:59:43.100Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.2\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"minimal\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" wants\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" calculate\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" multiplied\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" by\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"I\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" need\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" reply\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" with\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" only\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" final\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" integer\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"36\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"36\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'s\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" double\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" check\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"x\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"-----\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"-----\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"-----\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Another\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" way\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"220\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"380\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"60\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" result\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" is\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" output\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" must\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" be\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" exactly\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" number\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"202609080859395c5b23c9085543f2\",\"created\":1788829179,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":190,\"total_tokens\":219,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":187}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-none-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-none-effort.json new file mode 100644 index 00000000000..4611cc247f7 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-none-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "effort", "usage"], + "name": "zai-chat/glm-5-2-streams-none-effort", + "recordedAt": "2026-09-08T00:59:39.543Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.2\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"none\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" wants\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" calculate\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" product\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" of\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" and\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"I\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" need\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" multiply\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" by\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"36\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"36\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'s\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" double\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" check\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"x\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"-----\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"-----\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Check\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"100\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"70\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"153\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"65\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"153\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"65\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Matches\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" output\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" should\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" be\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" just\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" final\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" integer\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"202609080859357610f2fce16e4491\",\"created\":1788829175,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":223,\"total_tokens\":252,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":220}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-thinking-disabled.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-thinking-disabled.json new file mode 100644 index 00000000000..800049160b0 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-thinking-disabled.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "thinking", "usage"], + "name": "zai-chat/glm-5-2-streams-thinking-disabled", + "recordedAt": "2026-09-08T00:59:35.300Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.2\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"max_tokens\":4096,\"thinking\":{\"type\":\"disabled\",\"clear_thinking\":true}}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908085934bc85f3b6601c42e1\",\"created\":1788829174,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085934bc85f3b6601c42e1\",\"created\":1788829174,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"7887\"}}]}\n\ndata: {\"id\":\"20260908085934bc85f3b6601c42e1\",\"created\":1788829174,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"20260908085934bc85f3b6601c42e1\",\"created\":1788829174,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":23,\"completion_tokens\":3,\"total_tokens\":26,\"prompt_tokens_details\":{\"cached_tokens\":0}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-thinking-enabled.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-thinking-enabled.json new file mode 100644 index 00000000000..6e41c5a002f --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-thinking-enabled.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "thinking", "usage"], + "name": "zai-chat/glm-5-2-streams-thinking-enabled", + "recordedAt": "2026-09-08T00:59:34.479Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.2\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"max_tokens\":4096,\"thinking\":{\"type\":\"enabled\",\"clear_thinking\":true}}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user wants to\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" multiply 173 by \"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"219 and wants only\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the final integer as the response\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\\n173 * 219\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n= 173 *\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (200 + 10 + 9\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n= 34600 + \"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1730 + 1557\\n=\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 36330 + 1557\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n= 37887\\n\\nLet\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'s do standard multiplication:\\n \"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 173\\n x2\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\\n ----\\n 155\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7 (9 * 173)\\n\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 1730 (10\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" * 173)\\n 34\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600 (200 * 173\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n ----\\n 3\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7887\\n\\nSum:\\n\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7+0+0 = 7\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n5+3+0 = \"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"8\\n5+7+6\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" = 18 (8,\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" carry 1)\\n1+1\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"+4+1 = 7\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n0+0+3 =\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" 3\\n\\nResult: 378\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87.\\n\\nDouble check:\\n173\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" * 220 = 380\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"60\\n38060 - \"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173 = 37887\\n\\nCorrect\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"37887\",\"reasoning_content\":\"\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"20260908085931a8cdc33111e947ae\",\"created\":1788829171,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":220,\"total_tokens\":249,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":216}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-xhigh-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-xhigh-effort.json new file mode 100644 index 00000000000..9057e92fb02 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-2-streams-xhigh-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "effort", "usage"], + "name": "zai-chat/glm-5-2-streams-xhigh-effort", + "recordedAt": "2026-09-08T00:59:56.508Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.2\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"xhigh\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" wants\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" multiply\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" by\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" and\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" get\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" only\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" final\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" integer\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" as\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" the\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" result\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Calc\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"ulation\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"170\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"153\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" *\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"27\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"153\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"27\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"So\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"36\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"36\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"30\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'s\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" double\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" check\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"x\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"-----\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"155\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"9\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"*\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"10\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"*\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"*\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"-----\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Yes\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" is\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" correct\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"78\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"87\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}]}\n\ndata: {\"id\":\"202609080859531d669ffb458649fb\",\"created\":1788829193,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.2\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":183,\"total_tokens\":212,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":180}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-flash-reads-image-bytes.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-flash-reads-image-bytes.json new file mode 100644 index 00000000000..5e13196f509 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-flash-reads-image-bytes.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "image", "reasoning"], + "name": "zai-chat/glm-5-3-flash-reads-image-bytes", + "recordedAt": "2026-09-08T01:00:03.805Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.3-flash\",\"messages\":[{\"role\":\"user\",\"content\":[{\"type\":\"text\",\"text\":\"Read the three words in this image. Reply with only the words in order.\"},{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnYAAACKCAYAAAAnmweyAAACKWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjYzMCIKICAgZXhpZjpVc2VyQ29tbWVudD0iU2NyZWVuc2hvdCIKICAgZXhpZjpQaXhlbFlEaW1lbnNpb249IjEzOCIKICAgdGlmZjpZUmVzb2x1dGlvbj0iMTQ0LzEiCiAgIHRpZmY6WFJlc29sdXRpb249IjE0NC8xIgogICB0aWZmOlJlc29sdXRpb25Vbml0PSIyIi8+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJyIj8+at0SpgAACrhpQ0NQSUNDIFByb2ZpbGUAAEiJlZcHUFNZF8fvey+dhJYQASmh994CSAmhBVCQDjZCEiAQQkxBwa4sruBaUBHBsqKrIgo2qg0RxbYo9r4gi4iyLhZsqHwPGMLufvN933xn5s75zXnn/u+5d959cx4AFFOuRCKC1QHIFsul0SEBjMSkZAb+JcACTUACnoDK5ckkrKioCIDahP+7fbgLoFF/y25U69+f/1fT4AtkPACgKJRT+TJeNsonAIABTyKVA4CgDEwWyCWjfB9lmhQtEOWBUU4fY8yoDi11nGljObHRbJQtASCQuVxpOgBkVzTOyOWlozrkWJQdxXyhGOUClH2zs3P4KLehbInmSFAe1Wem/kUn/W+aqUpNLjddyeN7GTNCoFAmEXHz/s/j+N+WLVJMrGGBDnKGNDQa9Xrouf2elROuZHHqjMgJFvLH8sc4QxEaN8E8GTt5gmWiGM4E87mB4Uod0YyICU4TBitzhHJO7AQLZEExEyzNiVaumyZlsyaYK52sQZEVp4xnCDhK/fyM2IQJzhXGz1DWlhUTPpnDVsalimjlXgTikIDJdYOV55At+8vehRzlXHlGbKjyHLiT9QvErElNWaKyNr4gMGgyJ06ZL5EHKNeSiKKU+QJRiDIuy41RzpWjL+fk3CjlGWZyw6ImGMQAOVAAPhCCHMAAgaiXAQkQAS7IkwsWykc3xM6R5EmF6RlyBgu9dQIGR8yzt2U4Ozq7AzB6h8dfkXf0sbsJ0a9MxlZVAeDTNDIycnIyFnYDgKMpAJDqJmOWcwBQ7wPg0imeQpo7Hhu7a1j0y6AGaEAHGAATYAnsgDNwB97AHwSBMBAJYkESmAt4IANkAylYABaDFaAQFIMNYAsoB7vAHnAAHAbHQAM4Bc6Bi+AquAHugEegC/SCV2AQfADDEAThIQpEhXQgQ8gMsoGcISbkCwVBEVA0lASlQOmQGFJAi6FVUDFUApVDu6Eq6CjUBJ2DLkOd0AOoG+qH3kJfYAQmwzRYHzaHHWAmzILD4Vh4DpwOz4fz4QJ4HVwGV8KH4Hr4HHwVvgN3wa/gIQQgKggdMULsECbCRiKRZCQNkSJLkSKkFKlEapBmpB25hXQhA8hnDA5DxTAwdhhvTCgmDsPDzMcsxazFlGMOYOoxbZhbmG7MIOY7loLVw9pgvbAcbCI2HbsAW4gtxe7D1mEvYO9ge7EfcDgcHWeB88CF4pJwmbhFuLW4HbhaXAuuE9eDG8Lj8Tp4G7wPPhLPxcvxhfht+EP4s/ib+F78J4IKwZDgTAgmJBPEhJWEUsJBwhnCTUIfYZioTjQjehEjiXxiHnE9cS+xmXid2EscJmmQLEg+pFhSJmkFqYxUQ7pAekx6p6KiYqziqTJTRaiyXKVM5YjKJZVulc9kTbI1mU2eTVaQ15H3k1vID8jvKBSKOcWfkkyRU9ZRqijnKU8pn1SpqvaqHFW+6jLVCtV61Zuqr9WIamZqLLW5avlqpWrH1a6rDagT1c3V2epc9aXqFepN6vfUhzSoGk4akRrZGms1Dmpc1nihidc01wzS5GsWaO7RPK/ZQ0WoJlQ2lUddRd1LvUDtpeFoFjQOLZNWTDtM66ANamlquWrFay3UqtA6rdVFR+jmdA5dRF9PP0a/S/8yRX8Ka4pgypopNVNuTvmoPVXbX1ugXaRdq31H+4sOQydIJ0tno06DzhNdjK617kzdBbo7dS/oDkylTfWeyptaNPXY1Id6sJ61XrTeIr09etf0hvQN9EP0Jfrb9M/rDxjQDfwNMg02G5wx6DekGvoaCg03G541fMnQYrAYIkYZo40xaKRnFGqkMNpt1GE0bGxhHGe80rjW+IkJyYRpkmay2aTVZNDU0HS66WLTatOHZkQzplmG2VazdrOP5hbmCearzRvMX1hoW3As8i2qLR5bUiz9LOdbVlretsJZMa2yrHZY3bCGrd2sM6wrrK/bwDbuNkKbHTadtlhbT1uxbaXtPTuyHcsu167artuebh9hv9K+wf61g6lDssNGh3aH745ujiLHvY6PnDSdwpxWOjU7vXW2duY5VzjfdqG4BLssc2l0eeNq4ypw3el6343qNt1ttVur2zd3D3epe417v4epR4rHdo97TBozirmWeckT6xnguczzlOdnL3cvudcxrz+97byzvA96v5hmMU0wbe+0Hh9jH67Pbp8uX4Zviu/Pvl1+Rn5cv0q/Z/4m/nz/ff59LCtWJusQ63WAY4A0oC7gI9uLvYTdEogEhgQWBXYEaQbFBZUHPQ02Dk4Prg4eDHELWRTSEooNDQ/dGHqPo8/hcao4g2EeYUvC2sLJ4THh5eHPIqwjpBHN0+HpYdM3TX88w2yGeEZDJIjkRG6KfBJlETU/6uRM3MyomRUzn0c7RS+Obo+hxsyLORjzITYgdn3sozjLOEVca7xa/Oz4qviPCYEJJQldiQ6JSxKvJukmCZMak/HJ8cn7kodmBc3aMqt3ttvswtl351jMWTjn8lzduaK5p+epzePOO56CTUlIOZjylRvJreQOpXJSt6cO8ti8rbxXfH/+Zn6/wEdQIuhL80krSXuR7pO+Kb0/wy+jNGNAyBaWC99khmbuyvyYFZm1P2tElCCqzSZkp2Q3iTXFWeK2HIOchTmdEhtJoaRrvtf8LfMHpeHSfTJINkfWKKehzdI1haXiB0V3rm9uRe6nBfELji/UWCheeC3POm9NXl9+cP4vizCLeItaFxstXrG4ewlrye6l0NLUpa3LTJYVLOtdHrL8wArSiqwVv650XFmy8v2qhFXNBfoFywt6fgj5obpQtVBaeG+19+pdP2J+FP7YscZlzbY134v4RVeKHYtLi7+u5a298pPTT2U/jaxLW9ex3n39zg24DeINdzf6bTxQolGSX9Kzafqm+s2MzUWb32+Zt+VyqWvprq2krYqtXWURZY3bTLdt2Pa1PKP8TkVARe12ve1rtn/cwd9xc6f/zppd+ruKd335Wfjz/d0hu+srzStL9+D25O55vjd+b/svzF+q9unuK973bb94f9eB6ANtVR5VVQf1Dq6vhqsV1f2HZh+6cTjwcGONXc3uWnpt8RFwRHHk5dGUo3ePhR9rPc48XnPC7MT2OmpdUT1Un1c/2JDR0NWY1NjZFNbU2uzdXHfS/uT+U0anKk5rnV5/hnSm4MzI2fyzQy2SloFz6ed6Wue1PjqfeP5228y2jgvhFy5dDL54vp3VfvaSz6VTl70uN11hXmm46n61/prbtbpf3X6t63DvqL/ucb3xhueN5s5pnWdu+t08dyvw1sXbnNtX78y403k37u79e7Pvdd3n33/xQPTgzcPch8OPlj/GPi56ov6k9Kne08rfrH6r7XLvOt0d2H3tWcyzRz28nle/y37/2lvwnPK8tM+wr+qF84tT/cH9N17Oetn7SvJqeKDwD40/tr+2fH3iT/8/rw0mDva+kb4Zebv2nc67/e9d37cORQ09/ZD9Yfhj0SedTwc+Mz+3f0n40je84Cv+a9k3q2/N38O/Px7JHhmRcKXcsVYAQQeclgbA2/0AUJIAoKI9BGnWeI89ZtD4f8EYgf/E4334mKGdSw3qRtsjdgsAR9BhvhwANX8ARlujWH8Au7gox0Q/PNa7jxoO/Yup8UK0Vjk9ta0C/7Txvv4vdf/TA6Xq3/y/AOOhDyne6KAWAAAAimVYSWZNTQAqAAAACAAEARoABQAAAAEAAAA+ARsABQAAAAEAAABGASgAAwAAAAEAAgAAh2kABAAAAAEAAABOAAAAAAAAAJAAAAABAAAAkAAAAAEAA5KGAAcAAAASAAAAeKACAAQAAAABAAACdqADAAQAAAABAAAAigAAAABBU0NJSQAAAFNjAAAAAAAAAADxh4F4AAAAHGlET1QAAAACAAAAAAAAAEUAAAAoAAAARQAAAEUAAAbT33OL9AAABp9JREFUeAHs3F9olWUcB/DnLHCT/rgKQxbhtLwpkIqsLrxZQfQXKggEA/tjZuCFCRHR1Wg3XiyhoKgVeKFd1k1CFNGNRAhhkFAQFBlSkLhjbqtNbW3jeOB0dt6dHc905/d8dnXe5332nvf3+b7jfGXMUt+NG6aTLwIECBAgQIAAgY4XKCl2HZ+hAQgQIECAAAECcwKKnQeBAAECBAgQIBBEQLELEqQxCBAgQIAAAQKKnWeAAAECBAgQIBBEQLELEqQxCBAgQIAAAQKKnWeAAAECBAgQIBBEQLELEqQxCBAgQIAAAQKKnWeAAAECBAgQIBBEQLELEqQxCBAgQIAAAQKKnWeAAAECBAgQIBBEQLELEqQxCBAgQIAAAQKKnWeAAAECBAgQIBBEoPT+4NHp+WY58edPaeST1+c7ZY0AAQIECBAgQGAZCpQ+H/ln3mJXPnMy7R4eWIa37JYIECBAgAABAgTmE1Ds5lOxRoAAAQIECBDoQIFFF7uelb0dOKZbJkCAAAECBAjEF1Ds4mdsQgIECBAgQCATAcUuk6CNSYAAAQIECMQXUOziZ2xCAgQIECBAIBMBxS6ToI1JgAABAgQIxBdQ7OJnbEICBAgQIEAgEwHFLpOgjUmAAAECBAjEF1Ds4mdsQgIECBAgQCATAcUuk6CNSYAAAQIECMQXUOziZ2xCAgQIECBAIBMBxS6ToI1JgAABAgQIxBdQ7OJnbEICBAgQIEAgEwHFLpOgjUmAAAECBAjEF1Ds4mdsQgIECBAgQCATAcUuk6CNSYAAAQIECMQXUOziZ2xCAgQIECBAIBMBxS6ToI1JgAABAgQIxBdQ7OJnbEICBAgQIEAgEwHFLpOgjUmAAAECBAjEF1Ds4mdsQgIECBAgQCATAcUuk6CNSYAAAQIECMQXUOziZ2xCAgQIECBAIBMBxS6ToI1JgAABAgQIxBdQ7OJnbEICBAgQIEAgEwHFLpOgjUmAAAECBAjEF1Ds4mdsQgIECBAgQCATAcUuk6CNSYAAAQIECMQXUOziZ2xCAgQIECBAIBMBxS6ToI1JgAABAgQIxBdQ7OJnbEICBAgQIEAgEwHFLpOgjUmAAAECBAjEF1Ds4mdsQgIECBAgQCATAcUuk6CNSYAAAQIECMQXUOziZ2xCAgQIECBAIBMBxS6ToI1JgAABAgQIxBdQ7OJnbEICBAgQIEAgEwHFLpOgjUmAAAECBAjEF1Ds4mdsQgIECBAgQCATgYbFburcZNoxdFcdQ8/K3ro1CwQIECBAgAABApdfoGGx+3d6Oj03uLHuDhW7OhILBAgQIECAAIFlIaDYLYsY3AQBAgQIEMhLYOvWp5dk4IMHDyzJdTvloopdpyTlPgkQIECAQCABxW5pwlTslsbVVQkQIECAAIECAcWuAOciTil2F4HnWwkQIECAAIHWBBS71twW+i7FbiEh5wkQIECAAIG2Cyh2bSedu2DDYnf2/Nn0wht31r2rv4qtI7FAgAABAgQILFJAsVskWJPbGxa78pmTaffwQN1lFLs6EgsECBAgQIDAIgUUu0WCNbldsatA3XrbxnTfA4/VsH343r7098REzVrRQXd3d3p+58upq+uK6rYD+99N5dFT1WMvFhboX3dzevTxLdWN4+Nn0v6Rt9P0zP+t6IsAAQKdIuAzoTgpxa7Yp9Wzil1FbuD+B9OLu16pcdzxzJPpr9Ona9aKDtb2r0t7931Qs2Xv0Gvp6LdHatYcFAs89MgTadv2XTWbtm15OE1OTtasOSBAgMByFvCZUJyOYlfs0+pZxa4ip9g1foRW9fam/nW3NN4wc+b8uXPp2PffFe5p9qRi16yUfQQILGcBxa44HcWu2KfVs4pdRU6xa/wI3X3v5rTn1cHGGypn3hoeSl8f/mrBfQttUOwWEnKeAIFOEFDsilNS7Ip9Wj2r2FXk/l/spqYm085nn0oTE+NN20b9IW622I2882b68otDTXs12qjYNZKxXiSwevUNqdTVlaZmfmVfLo8WbXWOwCURiPqZ0C48xa5dkrXXUewqHrO/buzru6mqMzrzBw9//H6ietzMi+6enrR+/Yaarb8d/yWNjY3VrLXjYLb8XHnV1dVLfXbo44t6n7X969OmezZXr3f815/TkW8Ozx3ffsemtP2lPdVzF15cs2pVWrGi+8Jhalexu/a669OaNX3V686++PGHYx3xxxNFjjUDOWirQKlUSvs/+jTN/gyWy6fm/lHW1jdwMQItCFzKz4QWbu+yf4titzQR/AcAAP//YCg3bwAAJAVJREFU7V0HvNXE0x1p0osivYMgIB2xIXb5oyKIoCAovUuvgvTee5WOFBEQULBgAxERQUBAlN5BQOkKCvrNCW7e3tzklpd738v73gy/R5LdzWZzNjc5Ozsze9unb1/7l2zkwuVz1H7U4345KVNl9EuThLhFIGu27DRuyjvmRU8cP0LdOzanv//+20wLd6dVu+5U6bGnzdMmjxtK679aax7b7aRPn4Gmz11uZr09eTR9vna1eZwYd2KDY2LEKdL3nCVrNho/dYFR7fXr16l+7WcjfQmpTxAQBCKMQN269SJc463qFiyI+T5G5QIer/Q2IXYe7yGb5tWoVY9efrWhkXPz5k3q1a01HTywz6ZkaEkpUtzOBG0ZpUyZyjhh86YNNHpYn6AnC7HzhSi2OPrWErdHadOmpatXr9K//9qO7+K2MS6uVrb8A9S15yCjhvggdv9fcHTRBYnm1HTp0tHly5cTzf1G80aF2EUH3URD7PIXKES33XZbyCheu/YnnTxxPGD53HnyUvLkKQKWiS3hypkzN2VhzVzmzFkp0x13Egjc2TOn6fSpE9SmQw+6K2t247pLFs2h5UvmB2wDMlOlTk158uSnzHdlpTvvykKpUqWmSxfO06+nT1KuPPno1debGXVc5LQu7RrRpUuXgtYZCWKXNGkyypsvf8Br/fnnH3Tq5ImAZVRmnrz5KVmyZHSDtZdHjx5WycY2W/achOcAcsedd/G9n6Bf9uwK6yUdDRyNBrn4D23KzvdmJ+fOnaFLFy+aWbfffjs9VbkqFSlawsDirizZ6N0Fs+j9pbe0XWZBm50778zMfVWQUqZKRRkyZKKzZ0/T0SOH+Ln8NWximJKfv/wFClKWLPyM8zMJuXDhd7rIf6f4d3fixDGbFtgn4Z5q1m5AVau/bBbo0bmFuW/dOcbPhZ12Oy5wTJ48OeXKnZfy5i9EWfg3fP63c4zhAeNZ/fOPP6xNDek4Y6Y7KD/XlztfAUqaJClBg3/k8AE68+vpgP2C90omPhdy7OgRxuQvSp8hA5Up9wBdv3aNU/+lrd9vMtJRpmChIlSocFG6fOkC3bhxg3Zs3/JfOeRGT25PmZLwPoTg/fQbYwbB+6fYvaX4PZmDf/PJ6ejh/XRg/146//tvRn6g//AsZ8iYybbI8WNH6a+/rpt5KPt0lWpUoGBhfmbvprTp0lO/nu3pZ353WCWa3wT0c15+v+Hdf8cdmbmNf9H587/RxfO/0+FD+/n3c97anKDHbp/HLFmyGnjgQngX4LlQgmep0N1FCe3+959/jPbu2/uT8VyqMkLsFBKR3SYaYjd38RrCByBU2fvzLur9ZruAxcdOnkvZsucKWKZOjacCvlytJ5e770GqVqMOFb6nuDXL7/jo4YPUvVNz+od/NE6SkV9ez75Qi57mjzk+XMFkxOC3+GX+bbBiRn4kiB0+LlNmLgl4vT27f6R+b3UIWEZlTpy+iIlCFgIxb1DneSM5W/YcVLteE7r/wUp+5P7K5Us0Y+pY2rRxnarCdhtNHG0vGEZimbIVqFuvIbZnrHr/XVo4b7qR91DFx6hu/eZ0Z+YsPmU/WbOCZr89wSdNP6jwQEVq1LwdZcx4iwToedjH4GD8qIH8Uf3FmuV3DK1m5Wer8zNe2/wg+BXihLO/nqIftn5Hy96dx4OMGGKqyqJNjzz2DA9W8hkf9nAGbWs+WEbzZk1WVZnbaOKId0/9xm/Qo09UpqRJk5rXVDvQmH752Uc0d+ZEgsYxFCnOpKZl224mMbae8/tvZ2kSm1Ts3rndmmUcv1ynAdV4+TVjf1DfLnQb/2vTsSelY8KkZOeOrTRicC9qzP2Ptuty6MBeGtyva1gDI/38UPeL3FOM+g259Xyu//JTmjpxBL1StxH977katu/03Tu30dgR/QK2CwPZF158xbYJwwa8Sdt+2GwM2jFYqPbSq37XGTO8L3337dd+50fjmwBi9NIrr9MTT1XhZyeZ3zWRgOcH/bGF392hDPQj9Ty24uev0uPPGG3q2aWlQaxTp07DmNWhKs/XIPzedYGCYuXyRfQeKyTQZiF2OjqR2xdi54BlfBC71xu1omervuTQIv/kQwf30ZudnDUT2XPkpL6DxjmOTP1rJK6vOR06uN8uyy/Ny8QOjW1WvwZrRbJRj74jCC8bJ8HLplv7JnT8+FHbItHG0faiYSQGIiRbNm+kqROGUafuA6ho8ZK2tToRO2g+6zVowR/QF23P0xNv3rxB82dPpY9Xv68n++yDfGG6tEy5+33SAx307NLKljCCaDz9vxcCneqY9/W6z2jSWH8iHC0cc+XOQ+079zE0446N+i/jFGsqRw3t7fgsohhwfIkJGT72wQgtPp4rli00tLLWa+vE7tOPVtEjjz5lO/g7d/ZXR/IY6oyB9drhHOvEDu+848eOGG0NVMcZHhgMHdDdcdYlELED6f/5px+pQ9e+BI22ncQVscM7dvDIqcZg1a4d1rRQzBAi+TzqxG7siP70065t1Kv/KMqdt4C1aT7H0yePoi/WrhFi54NK5A4SDbHr1X8kTyMUC4icrtELhdgNH/M2ZbVMgel14GK1X3wy4DVVJrQpbTv1UofGFtNFZ8+cIkxFpk6VxpiatY7YnBwW8MIfOX4m5cyV16fOC6y6P8+q+yScn4nV+ekz+DrDYJTfummdkLSMkSB2GI3qjiCqsTqOe3bvYI1dR5UVcKs0dig0c9o4qvNaE5PUXblymV/Yu3ha+waVKlPetClE2Y0bvmKt0wDs+khc4OhzwVgclCpdjjoycVOiYwfN1xmewi9eoozKNraYdjvGUycXL16gbzd8aeso06RFB562vaX1VCfjmfydp3czZrqTMEWmCzTHnds2dPyYPlPlBWrUzFcLjg/ROW4fpr4wxYXnQTdvcCJ29Ru3pieefs68vH7PSAyk9dr49Rc0bdJI81y1Ew0ccS/jpsznqf/M6jLGFu374+oVw8zCJ4MPftmzk/r0aG9NNo9BtBs0ecM8VjuYgkydJq2fdgn5g/p0pp0/blNFja1O7FQGNN3QsiRJkkQlmdur/PvBVJs+hYlp305tGpllorGjEzu9fpBWmKZAMBth1ShD2ziob1f9FHMfNsrP8UyGEv352bZ1s2EmgGdcF7w/TvLgD1OeK5ctMLRTej72I/lNQH3tu/SmBx56FLumoB2/8W+QX9L8/s5k9Ifqr2DELtLPo07soIkry4M2Rerwnv1p1w7WnF6iIjwDpc8UwOyiRcNaQuzMXo3sTqIhdqHA1rFbP8IUDyQUYmdXZ3VW29eu19jMCnUqts/A0axRKWWet2LpQlr1/mL644+rZlr69OnZlqgh4QOpZNPG9ca0gzpWW0zT9BowWh2yXcMpg7js3xczXQbSUoy1OCCU+ssaNnawuQkmkSB2Ttfo0WcYlSxd3siOzVSstd5PPlpJSxbMNBwFkAfP4mFMzJXDCDQlHd5oYD2N4gJHv4u6THj4kSeMKTW7ajDlvO7zj2k3v3B1OyJrWdgjjpow25w2xIt4+sSRtH3b98bUP6YT87JNFzQf95Ysa57uRJBRoPeAUWwTVdosu3D+2/TpmpXGtLlKxDNZuEhRKn9/ReODBs1IKHaqtes2puo1XzWqCfZxU9cKto0Ejs+9UJNea9jSvBRIw9LFcwybKGiKYYdUslQ5atGmm2Ebqgo6mUSAgMD7V/1e8fGcxv2yY/v3bH92wegv2JnWqtOQ4FCi5CBPk/fs2tpnwGYldqdOHqeBvTsZpK43vzuUHS/qwHsGnvJoc9tOb7FZwyNG1ZHCWrXTbmtH7E6eOEojh/TyGUQ88FAlgle6Pv0X6gxE05Yd6clnYgYKqh0YyHy8ejlt/nY94d0JMhmuxPabgPuYMf99837wLZg8bgj9sOU7H/MblCtZuiyVr1CRSpQqawzMndoY6edRJ3b6NX/atZ2mc5QERbzxnsXvvwDbaSpp0bAmPfecP+Yq381WvGIl3In5/MQnsZuz6EOTZOAl3IOnoOwEH77xU98xpwhg39Su5S07Gb3889VqGdNoKm34wB6GzZI61rewnWnZJmZki2kqTFcFk4RC7EAgVi1f7Hc7TVvxy/w/rQ9e4K+/UsXvxR0XOPo1zGWCHSH5lTUbs6aPYwKwNaTa23XuTQ8+fEtTAGzat6xnGq3rFcD2cMS4maZdFj58bZrVoXPnzurFjP05Cz9gx4vUxj5e/P17dfIrE9uEuCJ24eCIe53Av1Vls3bu7BkOS9SUrly54nebsEeCFlLJ3p93s41vW3VobmF/Cy20kvmzp9DqVUvVoblNkyYNDR093XxPIGMwa69+ZC2WEiux07WjLd7oQo89+T9VlJq8Vs1s90MVHzfIncqELSs0fdESO2LXsvHLtk4S1ncZbPImjx8WtGl2xG7Xjz+w1n9syI5bTheJLbGDo9eQUdPMapcunktL2eY0thKN59GO2H3/3Tc0bmR/H0cKtLlipSfojQ49zeb3ebMNlS8XMyg0MyKwI8ROiJ35GMUXsQNZW7hsrWkvE0xbOGbSXMqe45bTBj407Vq9bt6D2qnJ9jc1a9dXhzwl0YV27vjBPNZ3rERg4pjBtGH953oR2/2EQOzg7QmvTzuB8bTyBkZ+3ZqVjWlavWxc4KhfLxL71v4ESZ8+aZTp3RjsGpjWmvXOKvN5XPfFJzRlwnDH0+AM0bBpGzPf6VmbtWCVOS0O78ZWTV4xNEDmiS524oLYhYtj+QoPUuc3B5p3NXxQT9a2bDKPrTuDR0w2NRrQzjSq+4K1CA0dNZXysWcmxE4Lp5+gh4BBupUEWomdbjYC8ggSqUTPK1GyDPXsFzOVDVtWOwcXda7brZXYbdn8LWvr3rKtFhrNabOXmgMIOJh17dDUtqyeaCV2E8cM4nfgF3qRWO/Hltjly1/QIOfqwnDWgAY7thKN59FK7DBgw/Q3NLtWKXR3ERo4PMZpCQONEvcWtRaLyLEQOyF25oMUX8QODRjJWg+EHYFA6zFj6hjDuFRX/cO+7rlqNenV12JeVNvYc3AYa+OsgmmJ9l36mMnwmMLUhQoVoDIwJdm911CTKCJdeTepMk7bhEDsAk2FW22V7IhdXODohG9s063Erm2Luj4hBoLVa9UUDBvIXoI8hegk1vJOdp86KUFdsIGaN2tSSNP+TtdW6XFB7MLFUdfC4XfckInaNbaXdRI4qkBDrETXkqm0We+sNOzocPzBindpwdxbHs8qX99aCTocW+bMmGgW0YkdbDHbtKhn5j3Kno7wuIWgzQ1erWrm3VP0Xuo7eJx5HNfEDs4N8Gx2ki49BhKiC0BgF9j4tepORc10ndj9zuFUMOiIlMSW2MHhC4MhJXiG1n78AU/lzw4pHJU6T22j8TxaiV3T16s7eiPDRGD42BmqOYYGWYidCUdEd8TGToMzPomdnaE6HB2OHD7ExtApjLhb+ThWlZrWUc2GBx1U31ZB7KUJHPpDGdUiHy+GA/t+ZsPya6wmZ/settnD6B8aQyWIf9Wtw62YdirNaet1Yvcl25JN49AIThIKsYsLHJ3aF9t0t8TOSmZhi3fk0H7H5qRNl8FnYAD70MVsz2gVK94qH/aNMOyHRx1CVcQm+KsXiV19dnCo8p9HMRwbMH0YSODlC29fJdYBFoIgz5i/UmWTE4E2C/DO9DnLTAcp6yBQJ3bo3268eo0SLxO7YNq0Zq06sWPNs+pWjLBHwaaKdWKHKfM32JwgUhJbYofr698k1R44KUFbu4t/M7v5NwOHMDhDBZNIP4+4nk7sgpFoIXbBeihy+ULsNCz1H1Gw6VDtNJ/d2P6I8dIeMHQiZf8vEKdPpQ4HiHsFt3Fdq6cXtfNC1POt+/hh9u/VkcnkQWuW7bHXid1HHy7nuGCTbNuORCvRsNPYoVy0ccQ1Iiluid0LHGNO1wqH27bPPvnQ0Dhbz4PDRa06DYwpPn0woZfDRwteoXAcCqQl1M/BvheJna45cnLO0e8DS/rB+F/JkP7daMe2LerQCCit21whduBG9mgOJLDHRSBkyH4ODvtWt5gp84RK7Ky4WO8fzmt4Dytpz6YqyohfpVm3XiV2GHzDsUZ3hLG2HcGkEXdvycKZPs4k1nKRfh5Rv07sgikFhNhZeyR6x0LsNGzjk9ihGXdxYN1GzTtwnK8KWqv8d+Hh+sGKJfTZJx84kjp1FpwD4CQQSPAxhTfj+0vmhRXxP7EQO2AXTRwD9U1s8twSO+uUYLhtgAfy7OnjHU+DpzFisN1TrKSPRtl6wtqPV/FU7ZSQtBFeJHb9Bo81VvjAfZ0+dZzat4qxebXeK46thv9dObYiovkrsdq2BdNc4byJ0xeaMeisSwUmVGIH+zrY2TmJ/iygjJOjhX6+V4mdaiPCDj31zPPGiiVOgyJ4KL/DzjRr+btgJ5F+HnENIXZ2SMd/mhA7rQ/im9ihKbrHGZYY2rrlW8NOBPGjECj0NIckwFI+IGOhij5q//zT1XSDQySk4PhaqA9LTu1hg9czvCxUuGIldsFsX8KpPxLhTiKlsVPtjhaOqv5Ibd0SO2tIBESy3/fLTyE3D0vfOQV71ivBmpvFS5Tlv9JGaJusvDSUVUINgKt/zCMVgsMtjnoMMjiLNOfwDoEEwckRpFyJ1dsUgWVHjp+tsmkmr5ji9BFXhXSbvA9XvkfvzJmqsiihEjvEIMRshZPoJA1G/PVqVQ46ANbP8dJUrPUe4YVeileaKVXmPirBYYaspjkoj+XO9vy003qqT0y8SDyPuIAQOz+YPZEgxE7rBi8Qu85vDuB4RA8ZrRrA06KIN+ZGdM+qcAL9hnJNrEwwf8nHpo2e9cMRSh1OZbxG7KKJoxMGsU13S0hgeI5pGyWhekmr8rHdYs3g1xq28omLF2oAXJ3YYRCEj7lbcYsjprMxra0kkGE5yui2YZd5GbWm7G2qC+KVzV282vy9WZ0h9LLYh33opBnvmsnQokKbqiShEjuE/EDoDyeBJzI8QCGhkrSEQuz0e4bmDlO0r3OcRD1QPjTdCM5ulUg/j6hfiJ0VZW8cC7HT+iG+iR28oKaxsTMWZoY0a8BhBLQF3LWmhryrhy1w+sGHXJlNwcn84VBR9SNJHL1G7KKNow20sU5yS0hy5WLNEAcnVuIUU03lR3ILz++ps5aYmohQtW/WsDQIfhqbRdH1e3GLI6bP4BSlZArHU1vHcdXsBKt4jGJtHNY5huzfu4ft4fxXl5g6+z1zhQXY7XXh6Vp94XW9bmsYmqH9uxsBplWZhErsjh89TJ3bxQSBV/eDLXA0wp1wQFxIqM9uQiR2xg3yfxgQDRsT420K21R4slslGs+jEDsryt44FmKn9UN8EzvdEw3NQtwieLDi7y+2n7jEyz9hibFjRw/xeolHg04voI4J0xb4BCmFsTU+ltc5oOi1P/80lqaB/Q/WYLQLnIo6Akn/IeOo8D33mkXe6trKiNBuJvy3A+eQv1mTAkPfUMRrxC7aOIaCSahl3BISaGInz3yXvaZjlptDwNFvv1nn2IQCBe82FmVfveo9R+cbxLFCQO1AXq/w4h41fpbpRATP8BaNAnuTolHWe0ZYj0Dr1jreiJZhrTPccCe6lhfVIjZd947NbEPPNG/dmR7nRd6VIG4g4gdapVP3/nTf/Q+byU5auxw5c9GQkdPMZd8Q77Jjm4Y+8cUSKrHDzTvFSqxcpRo1bBYT2Bne2fDSDiZeJHYgqblz5zV+TwgS7iRYhm/qrPfMbMRKRMxEq0TjeRRiZ0XZG8dC7LR+CIfYQbuWiX9QVqlWsy7Bu01JZ36Z6l6rsG/79fQple2zta5y4JNpOcAHb/Omb+iD9xfRWXbPtxNoP6bNWUpp06azy/ZJU96IWJgZwYn1NvsUtBxgzcUatWLiX8GzFtHaf2Q7QNSBtWof5Qj2lR57xlj6bOv3vkbPeCmlYSyt0qPvcHNtQRBa2I3ocpU/khd4zVur6GvFRsrGLi5wtN5HOMdwutGXUXq40pNUgxeJV4LR+xmHZ+4k22za9bWdswjsudZ9/pHhYIO1hhEkOwdr9x59vLK5Fu0AXpJq987t6tI+W9h74WP14/YfaNM3X7JjwEEeWJw1gtsivWDBwlT1xTo+zkNbNm804i/6VGRzYNVaIPYaAlNv5OtA6w17vrwcLqjCg5VoB3sQol6rRANH/Z2C6x3je/549Qra+8suXgLsPBW6uyiVYHspFRYFZbBcVue2jW3taLGMG1aU0A3oYQKxi2MCHtj/s6E9L1zkXsPjOyeTAiV2jhYJmdghBA+mG7d8t8FYJhD2vlg7+JW6jUxsMIBt3eRlvwErsMueIyfdxv+UwMEMzjxKOtksL4g8hBVxskeO9DcBfY1lDzEg+H7TBg5rtYG/HSf4fX/WiC2IwXIJXo4OnuY5cuZRTWfv2Nm0/L13zGN9J9LPoxA7HV3v7Aux0/pC1xIhntaA3p21XN/dQSMmUcFC9/gmhnBkDQSqn4IXDpbygXdcqIIXzdgR/clKmNT5CB7bq/8oM6ipSg+0xb0PHfCmETsvUDnkYekirF2ZJgTyaF3/Ekvc4GOvx9oLdj2V/xXHqJtqE6MuGsQO14w2juq+wt1aDerDPb9+7WcNDa71PDyLQ0ZOMVc5sOY7HQcjdlik3iogljpR0fOd4jTqZdT+m72HGkbl6thpixUksGyeLtHCEdPawzn4eDjP+OhhfXjQtkFvns9+m449DQ2lT2KAA8So696phR+BT8jETr9dzAJgYGAVJ+9sa7xA63mBjkGee3aJWfpNLxvpb4Iidvo11L7TbwaEF8oEJ/IZ6edRiJ3qEW9thdhp/aFPtwULbjts9DRDA6CdHtJuIGKHCvCBK1m6HAclTmloYVLwEjlp06WnrFlzGAvXI0gxjnXBi63jG/X9VpVQZbJlz2FozlKkSGHUiZdg5sxZKQt7IWLkmidvAb8P60ccpX6uFqVe1WW3xRRys9adeAHyZHbZZpqV2Fkjq5sFQ9iJa2KHJkUbxxBu26+IVVPlVyBIghOxw2nQYLXgNYSLlygTpJZb2dCsYhH5o2wDZSe6h6ZdvjUNWgdoH0IVtHcQk1F9CtnuXDtiF00cKzxQkTDVGmzwc4W13VMnDAsYygP3A01Ns9ZdCPUGE5hzTJ80wtBqWcsmVGIHu7nC9xS33o7P8aaN6w3ybhe4F9pRBOuNjQQidpH+JgQidnZthwfw2BH9bAPW6+Uj+TwKsdOR9c6+ELv/+gIhF6DZUrJo/gxauXyROvTbWm3L/Ao4JFiDhDoUc0yG/VP5Cg/zGqdNzcCjKAwNBD5YsREQlipVaxLsU5TAFqpdy5jpPJXutIVGCx8vTHdZtS8Iq7Jh3ee05sOlPs4gIJgz5q0wnUWc6rZLR9+gj6wyasIsg8QiPZyp2CuXLxleiHbTktZrOB1HAkenup3Scc0xk+b5Ye5UXk/HtHmzBi/52F3p+dhHXyJ+FkJxwPPOqnmC4f6BfXt4qaNVhI+pkyE/6sIg4v4HH6X7ebm7/LziiRJMmWGNTwjwx+LrCLFiF7JBneO0Bel5+dXGxsoD+K1Y5TcO74MYkFb7u2jjmDnzXWz71Y6KFithaM+hWVHT5zCr2PvLHpo3cyKHHzprbbLjMTRP6Jds3C/oJ1Un+uA42+F+zmYV6Bcn0ddKRiBkBP5VUpqnh7uzBhQSaEkxDCrh5IU+jJZY14rtxU4lOTiQe3U2e4E5AOzP0NfAAP0LB5X3Fs3x01Cq9sGWEe+q2IiT/RrqivQ3AfdTuEgxw3zgfjYhUI41uJbqa+yjv9fzPa9YtsDWfhNlrBKp5xErpeA5hIQboLhbhyZU8eEYe1FrG90cy1qxslYsL7mTgXr3H22u1Qp7s45sYxEsWrmbB8/tuU9XrkqNW8TYncGeCAvex1bwEpnC3ogZM96yG8Tor27NZ8KuDmQNBr9JkiTlF+2tcAO/83JKbghT2I2IxxMihWM83oLjpfHxxAcV2mR4biNQNtYejk3fpmSvxYyZMlGGDJnYhuiK8dzBVhQ2d3ZaFsdGOWSgH6DBAxkFaYSd3fnfzznaozpUE5VktCtlqlSseUtPJ44fNWwM3VwI95crdz7+2F/j31wSrvMYk/Ubbqr01Ll2xG4few2jjxH7MEOGjAbROc82t3Z2t566GReNwaAF7+cMbJd8mbXjMGvAoBnv13DimlqbEOnn0Vp/oOO6desFyo51nhC7RE7sSpQqS42atjW98PAkrf9qLU0ed2u0GusnK4onYtqodbselIeNa5UEi8auytltoTnAyF83PD7MXrKwyxEJHQHBMXSspKQgECoCTsQu1POlnHcREGIXnb5JVFOxWKsSxv7wICpavBSVu+8BKlS4mA+yWKwbITugiYhPAUmAJ19a/kvPWg1MOeTkUXmx4iUpd578Pk3DVE4nNpi9evWqT7p+gNEt7h0LtqdjGz2o9eGxmidfQSpVuryf8fHC+W/TquWL9SpknxEQHOUxEATiFgEhdnGLd1xeTYhddNBONMRuxLgZfoTICikCfg7u1zXOp2uwjFgjtlVIniw5JeXpLhBQEIhQBK7wMFg/eGCfT3F4NIIM3qovmZ9tlE9hywE0lgimGpspNktVCf5QcEzwXSg3kMAREGKXwDswQPOF2AUAx0VWoiF2cxevMQ20rXjBpgfG1CvYRi2Q1st6XqSOq1Z/herWbxZWdTBW/mTNCtaqLfSL04SKAt2v04Xg8bWEbfV2bN/qVCTRpQuOia7L5YY9hoAQO491SASbI8QugmBqVSVaYgdPql/27KQd276njV9/Ea9Tr6EQO0y3nmSN4pEjh4xgpFhDFt5qThKMkIDMwjkEhtZ7f95FO3ds4RUtjjhVl2jTBcdE2/Vy4x5BwLrEHUI7nTxx3COtk2a4QUCInRv0nM91JHZ/3bhOzQaW9zszZaqYZYb8Mj2cgKC/WEYLi2tfunTBcAuPpot+OFDAGaIgR6C/ceNvunnjprFFGIHLHILj8uWLdJE9oHAcjjzGqz1AbrIrPOoFkb169TIhrMclYMBegjLVGhxRwTE4RlJCEIg2ArA3hnkK3lmBlqSLdjuk/sgiIMQusniq2hyJ3T/8A2rUL2aJFXVCQiV2qv2yFQQEAUFAEBAEBIH4R0CIXXT6QIhddHCVWgUBQUAQEAQEAUFAEIhzBITYxTnkckFBQBAQBAQBQUAQEASig4AQu+jgKrUKAoKAICAICAKCgCAQ5wgIsYtzyOWCgoAgIAgIAoKAICAIRAcBR2L3982/qemAsn5XFecJP0gkQRAQBAQBQUAQEAQEAU8g4EjsLlw+R+1HPe7XSCF2fpBIgiAgCAgCgoAgIAgIAp5AQIidJ7pBGiEICAKCgCAgCAgCgoB7BITYucdQahAEBAFBQBAQBAQBQcATCAix80Q3SCMEAUFAEBAEBAFBQBBwj4AQO/cYSg2CgCAgCAgCgoAgIAh4AgEhdp7oBmmEICAICAKCgCAgCAgC7hEQYuceQ6lBEBAEBAFBQBAQBAQBTyAgxM4T3SCNEAQEAUFAEBAEBAFBwD0CQuzcYyg1CAKCgCAgCAgCgoAg4AkEhNh5ohukEYKAICAICAKCgCAgCLhHQIidewylBkFAEBAEBAFBQBAQBDyBgBA7T3SDNEIQEAQEAUFAEBAEBAH3CAixc4+h1CAICAKCgCAgCAgCgoAnEBBi54lukEYIAoKAICAICAKCgCDgHgEhdu4xlBoEAUFAEBAEBAFBQBDwBAJC7DzRDdIIQUAQEAQEAUFAEBAE3CMgxM49hlKDICAICAKCgCAgCAgCnkBAiJ0nukEaIQgIAoKAICAICAKCgHsEhNi5x1BqEAQEAUFAEBAEBAFBwBMICLHzRDdIIwQBQUAQEAQEAUFAEHCPgBA79xhKDYKAICAICAKCgCAgCHgCASF2nugGaYQgIAgIAoKAICAICALuERBi5x5DqUEQEAQEAUFAEBAEBAFPICDEzhPdII0QBAQBQUAQEAQEAUHAPQJC7NxjKDUIAoKAICAICAKCgCDgCQSE2HmiG6QRgoAgIAgIAoKAICAIuEdAiJ17DKUGQUAQEAQEAUFAEBAEPIGAEDtPdIM0QhAQBAQBQUAQEAQEAfcICLFzj6HUIAgIAoKAICAICAKCgCcQEGLniW6QRggCgoAgIAgIAoKAIOAeASF27jGUGgQBQUAQEAQEAUFAEPAEAkLsPNEN0ghBQBAQBAQBQUAQEATcIyDEzj2GUoMgIAgIAoKAICAICAKeQECInSe6QRohCAgCgoAgIAgIAoKAewQcid1fN65Ts4Hl/a6QMlVGvzRJEAQEAUFAEBAEBAFBQBCIfwT+D/zF7ZhlIKO3AAAAAElFTkSuQmCC\"}}]}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"low\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908090001ef549d1e4bdb40d7\",\"created\":1788829201,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3-flash\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"jiggling restroom prison\"}}]}\n\ndata: {\"id\":\"20260908090001ef549d1e4bdb40d7\",\"created\":1788829201,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3-flash\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":145,\"completion_tokens\":7,\"total_tokens\":152,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":0}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-preserves-reasoning-through-a-tool-loop-and-follow-up.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-preserves-reasoning-through-a-tool-loop-and-follow-up.json new file mode 100644 index 00000000000..affc4049a0e --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-preserves-reasoning-through-a-tool-loop-and-follow-up.json @@ -0,0 +1,64 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "tool", "tool-loop", "reasoning", "continuation"], + "name": "zai-chat/glm-5-3-preserves-reasoning-through-a-tool-loop-and-follow-up", + "recordedAt": "2026-09-08T00:59:36.721Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.3\",\"messages\":[{\"role\":\"user\",\"content\":\"We have a budget of 38000 dollars for 219 trips costing 173 dollars each. Calculate whether that is affordable. If it is, use get_weather to look up the current weather in Paris. After receiving the result, report the weather in one short sentence.\"}],\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"description\":\"Get the current weather in a city\",\"parameters\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\",\"enum\":[\"Paris\"]}},\"required\":[\"city\"],\"additionalProperties\":false}}}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"high\",\"tool_stream\":true,\"max_tokens\":4096,\"thinking\":{\"type\":\"enabled\",\"clear_thinking\":false}}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" That\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"'s\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ≤\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"38\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"000\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" affordable\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" Then\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" call\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" weather\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"The\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" total\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" cost\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" is\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" $\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" $\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"38\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"78\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"...\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" let\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" me\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" rec\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"alculate\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\":\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" $\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"37\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"88\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" which\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" is\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" under\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" the\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" $\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"38\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"000\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" budget\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\".\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" It\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"'s\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" affordable\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" so\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" I\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"'ll\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" check\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" the\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" Paris\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" weather\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" now\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\".\"}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"id\":\"call_e98551e6b421426f8cc46bbd\",\"index\":0,\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"\"}}]}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"type\":\"function\",\"function\":{\"arguments\":\"city\"}}]}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"type\":\"function\",\"function\":{\"arguments\":\"\\\":\\\"\"}}]}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"type\":\"function\",\"function\":{\"arguments\":\"Paris\\\"\"}}]}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"type\":\"function\",\"function\":{\"arguments\":\"}\"}}]}}]}\n\ndata: {\"id\":\"20260908085924f024aa8e5d50425f\",\"created\":1788829164,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"finish_reason\":\"tool_calls\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":222,\"completion_tokens\":96,\"total_tokens\":318,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":26}}}\n\ndata: [DONE]\n\n" + } + }, + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.3\",\"messages\":[{\"role\":\"user\",\"content\":\"We have a budget of 38000 dollars for 219 trips costing 173 dollars each. Calculate whether that is affordable. If it is, use get_weather to look up the current weather in Paris. After receiving the result, report the weather in one short sentence.\"},{\"role\":\"assistant\",\"content\":\"The total cost is 219 × $173 = $38,787... let me recalculate: 219 × 173 = $37,887, which is under the $38,000 budget. It's affordable, so I'll check the Paris weather now.\",\"tool_calls\":[{\"id\":\"call_e98551e6b421426f8cc46bbd\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"Paris\\\"}\"}}],\"reasoning_content\":\"219 × 173 = 37,887. That's ≤ 38,000, affordable. Then call weather.\"},{\"role\":\"tool\",\"tool_call_id\":\"call_e98551e6b421426f8cc46bbd\",\"content\":\"{\\\"condition\\\":\\\"sunny\\\",\\\"temperature\\\":\\\"18C\\\"}\"}],\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"description\":\"Get the current weather in a city\",\"parameters\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\",\"enum\":[\"Paris\"]}},\"required\":[\"city\"],\"additionalProperties\":false}}}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"high\",\"tool_stream\":true,\"max_tokens\":4096,\"thinking\":{\"type\":\"enabled\",\"clear_thinking\":false}}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"It\"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"'s\"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" currently\"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" sunny\"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" and\"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" \"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"18\"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"°C\"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" in\"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\" Paris\"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\".\"}}]}\n\ndata: {\"id\":\"202609080859295412ec6521734c7f\",\"created\":1788829169,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":333,\"completion_tokens\":13,\"total_tokens\":346,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":0}}}\n\ndata: [DONE]\n\n" + } + }, + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.3\",\"messages\":[{\"role\":\"user\",\"content\":\"We have a budget of 38000 dollars for 219 trips costing 173 dollars each. Calculate whether that is affordable. If it is, use get_weather to look up the current weather in Paris. After receiving the result, report the weather in one short sentence.\"},{\"role\":\"assistant\",\"content\":\"The total cost is 219 × $173 = $38,787... let me recalculate: 219 × 173 = $37,887, which is under the $38,000 budget. It's affordable, so I'll check the Paris weather now.\",\"tool_calls\":[{\"id\":\"call_e98551e6b421426f8cc46bbd\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"Paris\\\"}\"}}],\"reasoning_content\":\"219 × 173 = 37,887. That's ≤ 38,000, affordable. Then call weather.\"},{\"role\":\"tool\",\"tool_call_id\":\"call_e98551e6b421426f8cc46bbd\",\"content\":\"{\\\"condition\\\":\\\"sunny\\\",\\\"temperature\\\":\\\"18C\\\"}\"},{\"role\":\"assistant\",\"content\":\"It's currently sunny and 18°C in Paris.\",\"reasoning_content\":\"\"},{\"role\":\"user\",\"content\":\"What temperature did the tool report? Reply with only the temperature.\"}],\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"description\":\"Get the current weather in a city\",\"parameters\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\",\"enum\":[\"Paris\"]}},\"required\":[\"city\"],\"additionalProperties\":false}}}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"high\",\"tool_stream\":true,\"max_tokens\":4096,\"thinking\":{\"type\":\"enabled\",\"clear_thinking\":false}}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908085933c58c4dfdf5dc4db2\",\"created\":1788829173,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"18\"}}]}\n\ndata: {\"id\":\"20260908085933c58c4dfdf5dc4db2\",\"created\":1788829173,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"°C\"}}]}\n\ndata: {\"id\":\"20260908085933c58c4dfdf5dc4db2\",\"created\":1788829173,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":361,\"completion_tokens\":4,\"total_tokens\":365,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":0}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-rejects-disabled-thinking.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-rejects-disabled-thinking.json new file mode 100644 index 00000000000..d4b5c845947 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-rejects-disabled-thinking.json @@ -0,0 +1,27 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "thinking", "model-specific", "error"], + "name": "zai-chat/glm-5-3-rejects-disabled-thinking", + "recordedAt": "2026-09-08T01:15:19.148Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.3\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"max_tokens\":4096,\"thinking\":{\"type\":\"disabled\"}}" + }, + "response": { + "status": 400, + "headers": {}, + "body": "eyJlcnJvciI6eyJjb2RlIjoiMTIxMCIsIm1lc3NhZ2UiOiJUaGlzIG1vZGVsIGFsd2F5cyBlbmdhZ2VzIGluIHRoaW5raW5nIGFuZCBjYW5ub3QgYmUgZGlzYWJsZWQ7IHBsZWFzZSB1c2UgbG93LCBoaWdoLCBvciBtYXgifX0=", + "bodyEncoding": "base64" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-returns-a-json-object.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-returns-a-json-object.json new file mode 100644 index 00000000000..8e1dc20b6e5 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-returns-a-json-object.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "structured-output"], + "name": "zai-chat/glm-5-3-returns-a-json-object", + "recordedAt": "2026-09-08T01:00:04.691Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.3\",\"messages\":[{\"role\":\"user\",\"content\":\"Return a JSON object with one key \\\"city\\\" set to the capital city of France.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"low\",\"max_tokens\":4096,\"response_format\":{\"type\":\"json_object\"}}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908090004d403d46ed31e4758\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908090004d403d46ed31e4758\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"{\\\"\"}}]}\n\ndata: {\"id\":\"20260908090004d403d46ed31e4758\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"city\"}}]}\n\ndata: {\"id\":\"20260908090004d403d46ed31e4758\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\\\": \\\"Paris\\\"}\\n\"}}]}\n\ndata: {\"id\":\"20260908090004d403d46ed31e4758\",\"created\":1788829204,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":91,\"completion_tokens\":12,\"total_tokens\":103,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":0}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-default-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-default-effort.json new file mode 100644 index 00000000000..93b27864946 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-default-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "reasoning", "usage"], + "name": "zai-chat/glm-5-3-streams-default-effort", + "recordedAt": "2026-09-08T00:57:35.799Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.3\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" wants\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" me\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" compute\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" this\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"20\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"4\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"60\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"28\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"So\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"28\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" me\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" verify\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"220\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"220\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"38\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"60\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Both\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" methods\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" agree\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"7887\"}}]}\n\ndata: {\"id\":\"2026090808573280e87d67d8224d67\",\"created\":1788829052,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":154,\"total_tokens\":183,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":149}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-high-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-high-effort.json new file mode 100644 index 00000000000..27617b0ed17 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-high-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "reasoning", "usage"], + "name": "zai-chat/glm-5-3-streams-high-effort", + "recordedAt": "2026-09-08T00:57:54.459Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.3\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"high\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"28\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"7887\"}}]}\n\ndata: {\"id\":\"20260908085753bbf284f2cb684c05\",\"created\":1788829073,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":38,\"total_tokens\":67,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":33}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-low-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-low-effort.json new file mode 100644 index 00000000000..f792675e745 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-low-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "reasoning", "usage"], + "name": "zai-chat/glm-5-3-streams-low-effort", + "recordedAt": "2026-09-08T00:57:53.218Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.3\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"low\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"*\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"*\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"*\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"6\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"00\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"28\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"78\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"87\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"7887\"}}]}\n\ndata: {\"id\":\"20260908085750253a0e9644604682\",\"created\":1788829070,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":34,\"total_tokens\":63,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":29}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-max-effort.json b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-max-effort.json new file mode 100644 index 00000000000..f2465583d76 --- /dev/null +++ b/packages/ai/test/fixtures/recordings/zai-chat/glm-5-3-streams-max-effort.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "metadata": { + "tags": ["prefix:zai-chat", "provider:zai", "protocol:zai-chat", "text", "reasoning", "usage"], + "name": "zai-chat/glm-5-3-streams-max-effort", + "recordedAt": "2026-09-08T00:57:56.887Z" + }, + "interactions": [ + { + "transport": "http", + "request": { + "method": "POST", + "url": "https://api.z.ai/api/paas/v4/chat/completions", + "headers": { + "content-type": "application/json" + }, + "body": "{\"model\":\"glm-5.3\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 173 multiplied by 219? Reply with only the final integer.\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"max\",\"max_tokens\":4096}" + }, + "response": { + "status": 200, + "headers": { + "content-type": "text/event-stream;charset=UTF-8" + }, + "body": "data: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"The\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" user\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" wants\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" me\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" to\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" compute\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" me\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" calculate\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"200\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"28\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"20\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"4\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"60\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"28\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"So\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"34\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"600\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" +\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"28\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" =\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Let\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" me\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" verify\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\":\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"2\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"19\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" (\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"220\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"1\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\")\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" ×\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"220\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"38\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"0\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"60\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" -\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"173\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"=\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"\\n\\n\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"Yes\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\" \"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"37\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\",\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"88\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\"7\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"reasoning_content\":\".\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"3\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"7887\"}}]}\n\ndata: {\"id\":\"20260908085754d3763d5833724376\",\"created\":1788829074,\"object\":\"chat.completion.chunk\",\"model\":\"glm-5.3\",\"choices\":[{\"index\":0,\"finish_reason\":\"stop\",\"delta\":{\"role\":\"assistant\",\"content\":\"\"}}],\"usage\":{\"prompt_tokens\":29,\"completion_tokens\":155,\"total_tokens\":184,\"prompt_tokens_details\":{\"cached_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":150}}}\n\ndata: [DONE]\n\n" + } + } + ] +} diff --git a/packages/ai/test/provider-options/zai.types.ts b/packages/ai/test/provider-options/zai.types.ts new file mode 100644 index 00000000000..714adfaf8ba --- /dev/null +++ b/packages/ai/test/provider-options/zai.types.ts @@ -0,0 +1,32 @@ +import { LLM } from "../../src/index.js" +import { ZAI, ZAICodingPlan } from "../../src/providers.js" + +LLM.request({ + model: ZAI.chat("glm-5.3"), + providerOptions: { thinking: { clear_thinking: false }, reasoningEffort: "max" }, +}) +LLM.request({ + model: ZAI.chat("glm-5.2"), + providerOptions: { thinking: { type: "disabled" }, toolStream: false, responseFormat: { type: "json_object" } }, +}) +LLM.request({ + model: ZAICodingPlan.messages("glm-5.3"), + providerOptions: { thinking: { type: "enabled" }, effort: "high" }, +}) +LLM.request({ model: ZAICodingPlan.responses("glm-5.3"), providerOptions: { reasoningEffort: "future-effort" } }) + +LLM.request({ + model: ZAI.chat("glm-5.3"), + // @ts-expect-error clear_thinking is a boolean. + providerOptions: { thinking: { clear_thinking: "false" } }, +}) +LLM.request({ + model: ZAICodingPlan.messages("glm-5.3"), + // @ts-expect-error Messages uses effort. + providerOptions: { reasoningEffort: "high" }, +}) +LLM.request({ + model: ZAICodingPlan.responses("glm-5.3"), + // @ts-expect-error Responses uses reasoning effort, not Chat thinking controls. + providerOptions: { thinking: { type: "enabled" } }, +}) diff --git a/packages/ai/test/provider-package.test.ts b/packages/ai/test/provider-package.test.ts index c36253320f5..0de087ea7e7 100644 --- a/packages/ai/test/provider-package.test.ts +++ b/packages/ai/test/provider-package.test.ts @@ -45,6 +45,12 @@ describe("provider package entrypoints", () => { import("@opencode/ai/providers/moonshot/chat"), import("@opencode/ai/providers/moonshot/messages"), import("@opencode/ai/providers/moonshot/responses"), + import("@opencode/ai/providers/zai"), + import("@opencode/ai/providers/zai/chat"), + import("@opencode/ai/providers/zai-coding-plan"), + import("@opencode/ai/providers/zai-coding-plan/chat"), + import("@opencode/ai/providers/zai-coding-plan/messages"), + import("@opencode/ai/providers/zai-coding-plan/responses"), ]) for (const module of modules) expect(module.model).toBeFunction() @@ -105,6 +111,41 @@ describe("provider package entrypoints", () => { }) }) + test("maps ZAI and Coding Plan entrypoints onto distinct provider-owned routes", async () => { + const modules = await Promise.all([ + import("@opencode/ai/providers/zai"), + import("@opencode/ai/providers/zai/chat"), + import("@opencode/ai/providers/zai-coding-plan"), + import("@opencode/ai/providers/zai-coding-plan/chat"), + import("@opencode/ai/providers/zai-coding-plan/messages"), + import("@opencode/ai/providers/zai-coding-plan/responses"), + ]) + expect(modules[0].model).toBe(modules[1].model) + expect(modules[2].model).toBe(modules[3].model) + const routes = [ + "zai-chat", + "zai-chat", + "zai-coding-chat", + "zai-coding-chat", + "zai-coding-messages", + "zai-coding-responses", + ] + const settings = { + apiKey: "fixture", + baseURL: "https://gateway.example/custom", + headers: { "x-test": "fixture" }, + body: { extension: true }, + } + modules.forEach((module, index) => { + const selected = module.model("glm-5.3", settings) + expect(selected.provider).toBe(index < 2 ? "zai" : "zai-coding-plan") + expect(selected.route.id).toBe(routes[index]) + expect(selected.route.endpoint.baseURL).toBe(settings.baseURL) + expect(selected.route.defaults.headers).toEqual(settings.headers) + expect(selected.route.defaults.http?.body).toEqual(settings.body) + }) + }) + test("maps DeepInfra package settings onto its native executable model", async () => { const DeepInfra = await import("@opencode/ai/providers/deepinfra") const settings = { diff --git a/packages/ai/test/provider/zai-capabilities.recorded.test.ts b/packages/ai/test/provider/zai-capabilities.recorded.test.ts new file mode 100644 index 00000000000..3016a2d89b1 --- /dev/null +++ b/packages/ai/test/provider/zai-capabilities.recorded.test.ts @@ -0,0 +1,156 @@ +import { expect } from "bun:test" +import { Effect } from "effect" +import { LLM, LLMEvent, Message, ToolDefinition } from "../../src/index.js" +import { ZAI } from "../../src/providers.js" +import { LLMClient } from "../../src/route.js" +import { recordedTests } from "../recorded-test.js" + +const apiKey = process.env.ZAI_API_KEY ?? "fixture" +const recorded = recordedTests({ prefix: "zai-chat", provider: "zai", protocol: "zai-chat", requires: ["ZAI_API_KEY"] }) + +recorded.effect.with( + "GLM 5.3 rejects disabled thinking", + { tags: ["thinking", "model-specific", "error"] }, + () => + Effect.gen(function* () { + const error = yield* LLMClient.generate( + LLM.request({ + model: ZAI.configure({ apiKey, providerOptions: { thinking: { type: "disabled" } } }).chat("glm-5.3"), + prompt: "What is 173 multiplied by 219? Reply with only the final integer.", + generation: { maxTokens: 4096 }, + }), + ).pipe(Effect.flip) + expect(error.reason._tag).toBe("InvalidRequest") + expect(error.reason.http?.status).toBe(400) + expect(error.message).toContain("always engages in thinking and cannot be disabled") + }), + 120_000, +) + +for (const modelID of ["glm-4.7", "glm-5.2"]) { + for (const type of ["enabled", "disabled"] as const) { + recorded.effect.with( + `${modelID} streams thinking ${type}`, + { tags: ["text", "thinking", "usage"] }, + () => + Effect.gen(function* () { + const response = yield* LLMClient.generate( + LLM.request({ + model: ZAI.configure({ apiKey, providerOptions: { thinking: { type, clear_thinking: true } } }).chat( + modelID, + ), + prompt: "What is 173 multiplied by 219? Reply with only the final integer.", + generation: { maxTokens: 4096 }, + }), + ) + expect(response.text.replaceAll(",", "")).toContain("37887") + expect(response.reasoning.length > 0).toBe(type === "enabled") + expect(response.finishReason.normalized).toBe("stop") + expect(response.usage?.inputTokens).toBeGreaterThan(0) + expect(response.usage?.outputTokens).toBeGreaterThan(0) + }), + 120_000, + ) + } +} + +for (const effort of ["none", "minimal", "low", "medium", "high", "xhigh", "max"] as const) { + recorded.effect.with( + `GLM 5.2 streams ${effort} effort`, + { tags: ["text", "effort", "usage"] }, + () => + Effect.gen(function* () { + const response = yield* LLMClient.generate( + LLM.request({ + model: ZAI.configure({ apiKey, providerOptions: { reasoningEffort: effort } }).chat("glm-5.2"), + prompt: "What is 173 multiplied by 219? Reply with only the final integer.", + generation: { maxTokens: 4096 }, + }), + ) + expect(response.text.replaceAll(",", "")).toContain("37887") + // The direct API still returned reasoning for none/minimal in these recordings. + expect(response.reasoning.length).toBeGreaterThan(0) + expect(response.finishReason.normalized).toBe("stop") + expect(response.usage?.inputTokens).toBeGreaterThan(0) + expect(response.usage?.outputTokens).toBeGreaterThan(0) + }), + 120_000, + ) +} + +recorded.effect.with( + "GLM 5.3 Flash reads image bytes", + { tags: ["image", "reasoning"] }, + () => + Effect.gen(function* () { + const bytes = yield* Effect.promise(() => + Bun.file(new URL("../fixtures/media/restroom.png", import.meta.url)).bytes(), + ) + const response = yield* LLMClient.generate( + LLM.request({ + model: ZAI.configure({ apiKey, providerOptions: { reasoningEffort: "low" } }).chat("glm-5.3-flash"), + messages: [ + Message.user([ + { type: "text", text: "Read the three words in this image. Reply with only the words in order." }, + { type: "media", mediaType: "image/png", data: bytes }, + ]), + ], + generation: { maxTokens: 4096 }, + }), + ) + expect(response.text.toLowerCase()).toContain("jiggling restroom prison") + expect(response.finishReason.normalized).toBe("stop") + expect(response.events.filter(LLMEvent.is.finish)).toHaveLength(1) + }), + 120_000, +) + +recorded.effect.with( + "GLM 5.3 returns a JSON object", + { tags: ["structured-output"] }, + () => + Effect.gen(function* () { + const response = yield* LLMClient.generate( + LLM.request({ + model: ZAI.configure({ + apiKey, + providerOptions: { reasoningEffort: "low", responseFormat: { type: "json_object" } }, + }).chat("glm-5.3"), + prompt: 'Return a JSON object with one key "city" set to the capital city of France.', + generation: { maxTokens: 4096 }, + }), + ) + expect(JSON.parse(response.text)).toEqual({ city: "Paris" }) + expect(response.finishReason.normalized).toBe("stop") + }), + 120_000, +) + +recorded.effect.with( + "GLM 4.5 calls a tool without streaming arguments", + { tags: ["tool", "legacy"] }, + () => + Effect.gen(function* () { + const response = yield* LLMClient.generate( + LLM.request({ + model: ZAI.configure({ apiKey }).chat("glm-4.5"), + prompt: "Use get_weather to look up the current weather in Paris.", + tools: [ + ToolDefinition.make({ + name: "get_weather", + description: "Get weather in a city", + inputSchema: { + type: "object", + properties: { city: { type: "string", enum: ["Paris"] } }, + required: ["city"], + }, + }), + ], + generation: { maxTokens: 4096 }, + }), + ) + expect(response.toolCalls).toMatchObject([{ name: "get_weather", input: { city: "Paris" } }]) + expect(response.finishReason.normalized).toBe("tool-calls") + }), + 120_000, +) diff --git a/packages/ai/test/provider/zai.recorded.test.ts b/packages/ai/test/provider/zai.recorded.test.ts new file mode 100644 index 00000000000..184a71851d5 --- /dev/null +++ b/packages/ai/test/provider/zai.recorded.test.ts @@ -0,0 +1,113 @@ +import { expect } from "bun:test" +import { Effect } from "effect" +import { LLM, LLMEvent, LLMRequest, Message, ToolDefinition, type LLMResponse } from "../../src/index.js" +import { ZAI } from "../../src/providers.js" +import { LLMClient } from "../../src/route.js" +import { compileRequest } from "../../src/route/client.js" +import { recordedTests } from "../recorded-test.js" + +const apiKey = process.env.ZAI_API_KEY ?? "fixture" +const recorded = recordedTests({ prefix: "zai-chat", provider: "zai", protocol: "zai-chat", requires: ["ZAI_API_KEY"] }) +const weather = ToolDefinition.make({ + name: "get_weather", + description: "Get the current weather in a city", + inputSchema: { + type: "object", + properties: { city: { type: "string", enum: ["Paris"] } }, + required: ["city"], + additionalProperties: false, + }, +}) + +for (const effort of [undefined, "low", "high", "max"] as const) { + recorded.effect.with( + `GLM 5.3 streams ${effort ?? "default"} effort`, + { tags: ["text", "reasoning", "usage"] }, + () => + Effect.gen(function* () { + const request = LLM.request({ + model: ZAI.configure({ apiKey, providerOptions: { reasoningEffort: effort } }).model("glm-5.3"), + prompt: "What is 173 multiplied by 219? Reply with only the final integer.", + generation: { maxTokens: 4096 }, + }) + const compiled = yield* compileRequest(request) + expect(compiled.body.thinking).toBeUndefined() + expect(compiled.body.reasoning_effort).toBe(effort) + const response = yield* LLMClient.generate(request) + expect(response.text.replaceAll(",", "")).toContain("37887") + expect(response.reasoning.length).toBeGreaterThan(0) + expect(response.finishReason.normalized).toBe("stop") + expectUsage(response) + }), + 120_000, + ) +} + +recorded.effect.with( + "GLM 5.3 preserves reasoning through a tool loop and follow-up", + { tags: ["tool", "tool-loop", "reasoning", "continuation"] }, + () => + Effect.gen(function* () { + const request = LLM.request({ + model: ZAI.configure({ + apiKey, + providerOptions: { reasoningEffort: "high", thinking: { type: "enabled", clear_thinking: false } }, + }).chat("glm-5.3"), + prompt: + "We have a budget of 38000 dollars for 219 trips costing 173 dollars each. Calculate whether that is affordable. If it is, use get_weather to look up the current weather in Paris. After receiving the result, report the weather in one short sentence.", + tools: [weather], + generation: { maxTokens: 4096 }, + }) + const first = yield* LLMClient.generate(request) + expect(first.toolCalls).toMatchObject([{ name: "get_weather", input: { city: "Paris" } }]) + expect(first.finishReason.normalized).toBe("tool-calls") + expect(first.reasoning.length).toBeGreaterThan(0) + expect(first.events.some(LLMEvent.is.toolInputDelta)).toBe(true) + expectUsage(first) + const continuation = LLMRequest.update(request, { + messages: [ + ...request.messages, + first.message, + ...first.toolCalls.map((call) => + Message.tool({ id: call.id, name: call.name, result: { condition: "sunny", temperature: "18C" } }), + ), + ], + }) + const compiled = yield* compileRequest(continuation) + expect(compiled.body.messages).toEqual( + expect.arrayContaining([expect.objectContaining({ role: "assistant", reasoning_content: first.reasoning })]), + ) + const second = yield* LLMClient.generate(continuation) + expect(second.text.toLowerCase()).toContain("sunny") + expect(second.toolCalls).toHaveLength(0) + expect(second.finishReason.normalized).toBe("stop") + expectUsage(second) + const followUp = LLMRequest.update(continuation, { + messages: [ + ...continuation.messages, + second.message, + Message.user("What temperature did the tool report? Reply with only the temperature."), + ], + }) + const replay = yield* compileRequest(followUp) + expect(replay.body.messages).toEqual( + expect.arrayContaining( + [first, second].map((response) => + expect.objectContaining({ role: "assistant", reasoning_content: response.reasoning }), + ), + ), + ) + const third = yield* LLMClient.generate(followUp) + expect(third.text).toContain("18") + expect(third.toolCalls).toHaveLength(0) + expect(third.finishReason.normalized).toBe("stop") + expectUsage(third) + }), + 180_000, +) + +function expectUsage(response: LLMResponse) { + expect(response.usage?.inputTokens).toBeGreaterThan(0) + expect(response.usage?.outputTokens).toBeGreaterThan(0) + expect(response.events.filter(LLMEvent.is.finish)).toHaveLength(1) +} diff --git a/packages/ai/test/provider/zai.test.ts b/packages/ai/test/provider/zai.test.ts new file mode 100644 index 00000000000..f9f41ee2ac2 --- /dev/null +++ b/packages/ai/test/provider/zai.test.ts @@ -0,0 +1,301 @@ +import { expect } from "bun:test" +import { ConfigProvider, Effect } from "effect" +import { Headers } from "effect/unstable/http" +import { Auth, LLM, LLMClient, Message, ReasoningPart, ToolDefinition } from "../../src/index.js" +import { ZAI, ZAICodingPlan } from "../../src/providers.js" +import { compileRequest } from "../../src/route/client.js" +import { Endpoint } from "../../src/route/endpoint.js" +import { it } from "../lib/effect.js" +import { dynamicResponse } from "../lib/http.js" +import { sseEvents } from "../lib/sse.js" + +const tool = ToolDefinition.make({ + name: "lookup", + description: "Look up a value", + inputSchema: { type: "object", properties: { key: { type: "string" } } }, +}) + +it.effect("ZAI owns standard and Coding Plan endpoints and bearer credentials", () => + Effect.gen(function* () { + expect(ZAI.provider.model).toBe(ZAI.provider.chat) + expect(ZAICodingPlan.provider.model).toBe(ZAICodingPlan.provider.chat) + for (const item of [ + { model: ZAI.chat("glm-5.3"), path: "/paas/v4/chat/completions", provider: "zai" }, + { model: ZAICodingPlan.chat("glm-5.3"), path: "/coding/paas/v4/chat/completions", provider: "zai-coding-plan" }, + { model: ZAICodingPlan.messages("glm-5.3"), path: "/anthropic/v1/messages", provider: "zai-coding-plan" }, + { model: ZAICodingPlan.responses("glm-5.3"), path: "/v1/responses", provider: "zai-coding-plan" }, + ]) { + const request = LLM.request({ model: item.model, prompt: "Hello" }) + const compiled = yield* compileRequest(request) + const url = Endpoint.render(item.model.route.endpoint, { request, body: compiled.body }).toString() + expect(url).toBe(`https://api.z.ai/api${item.path}`) + expect(item.model.provider).toBe(item.provider) + expect(item.model.route.providerMetadataKey).toBe("zai") + expect(compiled.body.thinking).toBeUndefined() + expect(compiled.body.reasoning_effort).toBeUndefined() + expect(compiled.body.reasoning).toBeUndefined() + expect(compiled.body.output_config).toBeUndefined() + const headers = yield* item.model.route.auth.apply({ + request, + method: "POST", + url, + body: "{}", + headers: Headers.empty, + }) + expect(headers.authorization).toBe("Bearer fixture") + } + }).pipe(Effect.provide(ConfigProvider.layer(ConfigProvider.fromEnv({ env: { ZAI_API_KEY: "fixture" } })))), +) + +it.effect("ZAI Chat retains native thinking fields and scopes tool streaming to supported models", () => + Effect.gen(function* () { + for (const configure of [ZAI.configure, ZAICodingPlan.configure]) { + const provider = configure({ + baseURL: "https://gateway.example/custom", + auth: Auth.header("x-test-key", "fixture"), + }) + for (const modelID of [ + "glm-4.5", + "glm-4.5-air", + "glm-4.5-x", + "glm-4.6", + "glm-4.7-flash", + "glm-5.3", + "glm-5.3-flash", + "future-model", + ]) { + const result = yield* compileRequest( + LLM.request({ + model: provider.chat(modelID), + prompt: "Hello", + generation: { maxTokens: 123 }, + tools: [tool], + providerOptions: { thinking: { type: "enabled", clear_thinking: false } }, + }), + ) + expect(result.body).toMatchObject({ + model: modelID, + max_tokens: 123, + thinking: { type: "enabled", clear_thinking: false }, + }) + expect(result.body.tool_stream).toBe( + ["glm-4.6", "glm-4.7-flash", "glm-5.3", "glm-5.3-flash"].includes(modelID) ? true : undefined, + ) + expect(result.body.max_completion_tokens).toBeUndefined() + expect(result.body.store).toBeUndefined() + expect(result.body.tools).toEqual([ + expect.objectContaining({ function: expect.not.objectContaining({ strict: expect.anything() }) }), + ]) + } + for (const thinking of [ + undefined, + { type: "disabled" }, + { clear_thinking: false }, + { type: "enabled", clear_thinking: true }, + ]) { + const result = yield* compileRequest( + LLM.request({ + model: provider.chat("glm-5.2"), + providerOptions: { + thinking, + toolStream: false, + doSample: false, + responseFormat: { type: "json_object" }, + requestID: "request-1", + userID: "user-1", + }, + tools: [tool], + }), + ) + expect(result.body.thinking).toEqual(thinking) + expect(result.body).toMatchObject({ + tool_stream: false, + do_sample: false, + response_format: { type: "json_object" }, + request_id: "request-1", + user_id: "user-1", + }) + } + } + }), +) + +it.effect("ZAI lowers effort using the selected native API without inventing thinking settings", () => + Effect.gen(function* () { + for (const effort of ["none", "minimal", "low", "medium", "high", "xhigh", "max", "future-effort"]) { + const standard = yield* compileRequest( + LLM.request({ + model: ZAI.configure({ apiKey: "fixture" }).chat("glm-5.3"), + providerOptions: { reasoningEffort: effort }, + }), + ) + const coding = ZAICodingPlan.configure({ apiKey: "fixture" }) + const chat = yield* compileRequest( + LLM.request({ model: coding.chat("glm-5.3"), providerOptions: { reasoningEffort: effort } }), + ) + const messages = yield* compileRequest( + LLM.request({ model: coding.messages("glm-5.3"), providerOptions: { effort } }), + ) + const responses = yield* compileRequest( + LLM.request({ model: coding.responses("glm-5.3"), providerOptions: { reasoningEffort: effort } }), + ) + expect(standard.body.reasoning_effort).toBe(effort) + expect(chat.body.reasoning_effort).toBe(effort) + expect(messages.body.output_config).toEqual({ effort }) + expect(responses.body.reasoning).toEqual({ effort }) + for (const result of [standard, chat, messages, responses]) expect(result.body.thinking).toBeUndefined() + } + for (const type of ["enabled", "adaptive", "disabled"]) { + const result = yield* compileRequest( + LLM.request({ + model: ZAICodingPlan.configure({ apiKey: "fixture", providerOptions: { thinking: { type } } }).messages( + "glm-5.3", + ), + }), + ) + expect(result.body.thinking).toEqual({ type }) + } + }), +) + +it.effect("ZAI rejects invalid typed thinking options before execution", () => + Effect.gen(function* () { + const model = ZAI.configure({ apiKey: "fixture" }) + .chat("glm-5.3") + .route.with({ providerOptions: { thinking: { clear_thinking: "false" } } }) + .model({ id: "glm-5.3" }) + const error = yield* compileRequest(LLM.request({ model })).pipe(Effect.flip) + expect(error.reason._tag).toBe("InvalidRequest") + expect(error.message).toContain("clear_thinking") + }), +) + +it.effect("ZAI preserves unsigned and signed Messages reasoning", () => + Effect.gen(function* () { + const result = yield* compileRequest( + LLM.request({ + model: ZAICodingPlan.configure({ apiKey: "fixture" }).messages("glm-5.3"), + messages: [ + Message.user("Hello"), + Message.assistant([ + ReasoningPart.make({ type: "reasoning", text: "unsigned" }), + ReasoningPart.make({ + type: "reasoning", + text: "signed", + providerMetadata: { zai: { signature: "opaque" } }, + }), + ]), + ], + }), + ) + expect(result.body.messages).toEqual( + expect.arrayContaining([ + expect.objectContaining({ + role: "assistant", + content: [ + { type: "thinking", thinking: "unsigned", signature: "" }, + { type: "thinking", thinking: "signed", signature: "opaque" }, + ], + }), + ]), + ) + }), +) + +it.effect("ZAI applies configured options, request options, and final body overlays in order", () => + LLMClient.generate( + LLM.request({ + model: ZAI.configure({ + apiKey: "fixture", + baseURL: "https://gateway.example/custom", + providerOptions: { thinking: { type: "enabled", clear_thinking: true }, reasoningEffort: "high" }, + }).chat("glm-5.3"), + prompt: "Hello", + providerOptions: { thinking: { clear_thinking: false }, reasoningEffort: "low" }, + http: { body: { reasoning_effort: "max", extension: true } }, + }), + ).pipe( + Effect.provide( + dynamicResponse((input) => + Effect.sync(() => { + expect(input.request.url).toBe("https://gateway.example/custom/chat/completions") + expect(input.request.headers.authorization).toBe("Bearer fixture") + expect(JSON.parse(input.text)).toMatchObject({ + thinking: { type: "enabled", clear_thinking: false }, + reasoning_effort: "max", + extension: true, + }) + return input.respond( + sseEvents({ choices: [{ delta: { content: "Hello" }, finish_reason: "stop" }] }, "[DONE]"), + { headers: { "content-type": "text/event-stream" } }, + ) + }), + ), + ), + ), +) + +it.effect("ZAI Coding Responses uses HTTP with a supplied WebSocket executor", () => + LLMClient.generate( + LLM.request({ model: ZAICodingPlan.configure({ apiKey: "fixture" }).responses("glm-5.3"), prompt: "Hello" }), + { + webSocket: { execute: () => Effect.die("Unexpected WebSocket") }, + }, + ).pipe( + Effect.provide( + dynamicResponse((input) => + Effect.sync(() => { + expect(input.request.url).toBe("https://api.z.ai/api/v1/responses") + return input.respond(sseEvents({ type: "response.completed", response: {} }), { + headers: { "content-type": "text/event-stream" }, + }) + }), + ), + ), + ), +) + +it.effect("ZAI Coding Messages serializes enabled thinking without a token budget", () => + LLMClient.generate( + LLM.request({ + model: ZAICodingPlan.configure({ + apiKey: "fixture", + baseURL: "https://gateway.example/messages/v1", + providerOptions: { thinking: { type: "enabled" }, effort: "max" }, + }).messages("glm-5.3"), + prompt: "Hello", + providerOptions: { effort: "high" }, + }), + ).pipe( + Effect.provide( + dynamicResponse((input) => + Effect.sync(() => { + expect(input.request.url).toBe("https://gateway.example/messages/v1/messages") + expect(input.request.headers.authorization).toBe("Bearer fixture") + expect(input.request.headers["anthropic-version"]).toBe("2023-06-01") + expect(JSON.parse(input.text)).toMatchObject({ + thinking: { type: "enabled" }, + output_config: { effort: "high" }, + }) + return input.respond( + sseEvents( + { + type: "message_start", + message: { + id: "msg_fixture", + role: "assistant", + model: "glm-5.3", + content: [], + usage: { input_tokens: 1, output_tokens: 0 }, + }, + }, + { type: "message_delta", delta: { stop_reason: "end_turn" }, usage: { output_tokens: 1 } }, + { type: "message_stop" }, + ), + { headers: { "content-type": "text/event-stream" } }, + ) + }), + ), + ), + ), +)