fix: add model field to SiliconFlow usage
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s

This commit is contained in:
WangDL 2026-05-23 09:39:27 +08:00
parent f8a9ae224e
commit 908ffc7041

View File

@ -33,7 +33,7 @@ export class SiliconFlowProvider implements AiProvider {
const choice = data.choices?.[0];
return {
rawText: choice?.message?.content || '',
usage: { inputTokens: data.usage?.prompt_tokens || 0, outputTokens: data.usage?.completion_tokens || 0 },
usage: { model: input.model, inputTokens: data.usage?.prompt_tokens || 0, outputTokens: data.usage?.completion_tokens || 0 },
latencyMs: Date.now() - start,
};
}