fix: type cast messages for DeepSeekProvider compatibility
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 12s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 12s
This commit is contained in:
parent
a550ce2e67
commit
34774e5325
@ -63,7 +63,7 @@ export class AdminAiChatService {
|
|||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const result = await this.deepseek.generate({
|
const result = await this.deepseek.generate({
|
||||||
model: 'deepseek-chat',
|
model: 'deepseek-chat',
|
||||||
messages,
|
messages: messages as Array<{ role: 'system' | 'user' | 'assistant'; content: string }>,
|
||||||
temperature: 0.7,
|
temperature: 0.7,
|
||||||
maxTokens: 4096,
|
maxTokens: 4096,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user