DocsAPI reference

Interface@astack-tech/integrations

DeepseekStreamChunk

Defined in: packages/integrations/src/model-provider/openai-compatible/index.ts:160

Chunk yielded by streamChatCompletion.

Properties

Property Type Description Defined in
content string Text delta. Empty in chunks that carry tool calls or usage. packages/integrations/src/model-provider/openai-compatible/index.ts:164
role "assistant" Always assistant. packages/integrations/src/model-provider/openai-compatible/index.ts:162
tool_calls? DeepseekStreamToolCall[] Tool-call deltas in this chunk. packages/integrations/src/model-provider/openai-compatible/index.ts:166
usage? DeepseekTokenUsage Token usage. Sent once, in the final chunk, when the API reports it. packages/integrations/src/model-provider/openai-compatible/index.ts:168