DocsAPI reference

Interface@astack-tech/integrations

DeepseekTokenUsage

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

Token usage reported by the API.

Properties

Property Type Description Defined in
completion_tokens number Tokens in the generated reply. packages/integrations/src/model-provider/openai-compatible/index.ts:115
prompt_cache_hit_tokens? number Prompt tokens served from the provider's context cache (reported by DeepSeek). packages/integrations/src/model-provider/openai-compatible/index.ts:119
prompt_cache_miss_tokens? number Prompt tokens not served from the cache. packages/integrations/src/model-provider/openai-compatible/index.ts:121
prompt_tokens number Tokens in the request. packages/integrations/src/model-provider/openai-compatible/index.ts:117
total_tokens number Sum of prompt and completion tokens. packages/integrations/src/model-provider/openai-compatible/index.ts:123