mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
@@ -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
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user