Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
feat(Bing): add shopping personas
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard-Weiss committed Mar 1, 2024
1 parent c323acc commit 0bfad9b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/BingAIClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default class BingAIClient {
createdAt: Date.now(),
};

// TODO: limit token usage
// Should add limit for token usage
const previousCachedMessages = this.constructor.getMessagesForConversation(conversation.messages, parentMessageId)
.map(conversationMessage => ({
text: conversationMessage.message,
Expand Down Expand Up @@ -521,6 +521,12 @@ export default class BingAIClient {
case 'fitness':
personaString = 'flux_fitness_helper_v14';
break;
case 'shopping':
personaString = 'ai_persona_personal_shopper_gpt_v3';
break;
case 'shopping_copilot':
personaString = 'flux_shopping_copilot_naturalv1_sahara_reasonv2';
break;
case 'copilot':
personaString = 'fluxcopilot';
break;
Expand Down

0 comments on commit 0bfad9b

Please sign in to comment.