Skip to content

Commit

Permalink
gai: Remove some logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
patniemeyer committed Dec 10, 2024
1 parent 59b8a45 commit 01465d0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions gai-frontend/lib/chat/scripting/extensions/party_mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,20 @@
// Main entry point when the user has hit enter on a new prompt
function onUserPrompt(userPrompt: string): void {
(async () => {
console.log(`Party mode: on user prompt: ${userPrompt}`);
addChatMessage(new ChatMessage(ChatMessageSource.SYSTEM, 'Extension: Party mode invoked', {}));
addChatMessage(new ChatMessage(ChatMessageSource.CLIENT, userPrompt, {}));

console.log("party_mode: chatHistory: ", chatHistory);
// Gather messages of source type 'client' or 'provider', irrespective of the model
const filteredMessages = chatHistory.filter(
(message) =>
message.source === ChatMessageSource.CLIENT ||
message.source === ChatMessageSource.PROVIDER
);
console.log(`party_mode: Filtered messages: ${filteredMessages}`, filteredMessages);

// Send them to all user-selected models
for (const model of userSelectedModels) {
console.log(`party_mode: Sending messages to model: ${model.name}`);
const promise = sendMessagesToModel(filteredMessages, model.id, null);
console.log(`party_mode: promise for model ${model.name}: ${promise}`, promise);
const result = await promise;
await sendMessagesToModel(filteredMessages, model.id, null);
}
})();
}
Expand Down

0 comments on commit 01465d0

Please sign in to comment.