1
0
mirror of synced 2026-08-05 23:36:55 +00:00

FEATURE: AI Bot Gemini support. (#402)

It also corrects the syntax around tool support, which was wrong.

Gemini doesn't want us to include messages about previous tool invocations, so I had to shuffle around some code to send the response it generated from those invocations instead. For this, I created the "multi_turn" context, which bundles all the context involved in the interaction.
This commit is contained in:
Roman Rizzi
2024-01-04 18:15:34 -03:00
committed by GitHub
parent aa56baad37
commit 971e03bdf2
20 changed files with 191 additions and 130 deletions
@@ -12,7 +12,7 @@ import copyConversation from "../discourse/lib/copy-conversation";
const AUTO_COPY_THRESHOLD = 4;
function isGPTBot(user) {
return user && [-110, -111, -112, -113, -114].includes(user.id);
return user && [-110, -111, -112, -113, -114, -115].includes(user.id);
}
function attachHeaderIcon(api) {