feat(server): update search model (#10475)

fix AF-2283
This commit is contained in:
darkskygit
2025-02-27 07:24:53 +00:00
parent 7c8ba13aad
commit 1fd3d618be
2 changed files with 3 additions and 3 deletions

View File

@@ -982,7 +982,7 @@ When referencing information from the provided documents in your response:
},
{
name: 'Search With AFFiNE AI',
model: 'sonar',
model: 'sonar-reasoning-pro',
messages: [],
},
// use for believer plan

View File

@@ -187,7 +187,7 @@ export class PerplexityProvider implements CopilotTextToTextProvider {
async generateText(
messages: PromptMessage[],
model: string = 'llama-3.1-sonar-small-128k-online',
model: string = 'sonar',
options: CopilotChatOptions = {}
): Promise<string> {
await this.checkParams({ messages, model, options });
@@ -237,7 +237,7 @@ export class PerplexityProvider implements CopilotTextToTextProvider {
async *generateTextStream(
messages: PromptMessage[],
model: string = 'llama-3.1-sonar-small-128k-online',
model: string = 'sonar',
options: CopilotChatOptions = {}
): AsyncIterable<string> {
await this.checkParams({ messages, model, options });