mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 05:07:06 +08:00
@@ -982,7 +982,7 @@ When referencing information from the provided documents in your response:
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Search With AFFiNE AI',
|
name: 'Search With AFFiNE AI',
|
||||||
model: 'sonar',
|
model: 'sonar-reasoning-pro',
|
||||||
messages: [],
|
messages: [],
|
||||||
},
|
},
|
||||||
// use for believer plan
|
// use for believer plan
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ export class PerplexityProvider implements CopilotTextToTextProvider {
|
|||||||
|
|
||||||
async generateText(
|
async generateText(
|
||||||
messages: PromptMessage[],
|
messages: PromptMessage[],
|
||||||
model: string = 'llama-3.1-sonar-small-128k-online',
|
model: string = 'sonar',
|
||||||
options: CopilotChatOptions = {}
|
options: CopilotChatOptions = {}
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
await this.checkParams({ messages, model, options });
|
await this.checkParams({ messages, model, options });
|
||||||
@@ -237,7 +237,7 @@ export class PerplexityProvider implements CopilotTextToTextProvider {
|
|||||||
|
|
||||||
async *generateTextStream(
|
async *generateTextStream(
|
||||||
messages: PromptMessage[],
|
messages: PromptMessage[],
|
||||||
model: string = 'llama-3.1-sonar-small-128k-online',
|
model: string = 'sonar',
|
||||||
options: CopilotChatOptions = {}
|
options: CopilotChatOptions = {}
|
||||||
): AsyncIterable<string> {
|
): AsyncIterable<string> {
|
||||||
await this.checkParams({ messages, model, options });
|
await this.checkParams({ messages, model, options });
|
||||||
|
|||||||
Reference in New Issue
Block a user