fix: add model field to SiliconFlow usage
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
This commit is contained in:
parent
f8a9ae224e
commit
908ffc7041
@ -33,7 +33,7 @@ export class SiliconFlowProvider implements AiProvider {
|
|||||||
const choice = data.choices?.[0];
|
const choice = data.choices?.[0];
|
||||||
return {
|
return {
|
||||||
rawText: choice?.message?.content || '',
|
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,
|
latencyMs: Date.now() - start,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user