mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 00:33:37 +08:00
24 lines
754 B
TypeScript
24 lines
754 B
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { z } from 'zod'
|
|
|
|
/**
|
|
* Model usage information.
|
|
*/
|
|
export const zUsage = z.object({
|
|
prompt_tokens: z.number().int().optional(),
|
|
prompt_unit_price: z.string().optional(),
|
|
prompt_price_unit: z.string().optional(),
|
|
prompt_price: z.string().optional(),
|
|
completion_tokens: z.number().int().optional(),
|
|
completion_unit_price: z.string().optional(),
|
|
completion_price_unit: z.string().optional(),
|
|
completion_price: z.string().optional(),
|
|
total_tokens: z.number().int().optional(),
|
|
total_price: z.string().optional(),
|
|
currency: z.string().optional(),
|
|
latency: z.number().optional(),
|
|
}).describe('Model usage information.')
|
|
|
|
export type UsageZodType = z.infer<typeof zUsage>
|