mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-12-02 01:38:14 +00:00
feat(intents): update intent prompt
This commit is contained in:
@@ -18,10 +18,12 @@ class IntentRegistry {
|
||||
}
|
||||
|
||||
static getDescriptions(config: { sources: SearchSources[] }): string {
|
||||
const availableintnets = this.getAvailableIntents(config);
|
||||
const availableintents = this.getAvailableIntents(config);
|
||||
|
||||
return availableintnets
|
||||
.map((intent) => `${intent.name}: ${intent.description}`)
|
||||
return availableintents
|
||||
.map(
|
||||
(intent) => `-------\n\n###${intent.name}: ${intent.description}\n\n`,
|
||||
)
|
||||
.join('\n\n');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user