refactor(search): remove the Gemini search backend
The user asked to drop it: nobody had the Gemini CLI login or a key set up, and Exa then Wikipedia cover the voice use. webSearch is now live Chrome, Exa, Brave (opt-in), Wikipedia. Removes the CLI/REST backends, the GEMINI_* settings, the Docker login mount and checks, and updates the specs and docs/llm_contexts.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,7 +26,7 @@ export interface TextResult {
|
||||
|
||||
/** Full voice turn: WAV in -> {transcript, reply, reply audio}. ``broadcasting``
|
||||
* is the current live screen-share state so the brain routes search (Chrome
|
||||
* while live, Gemini when off). */
|
||||
* while live, the normal search when off). */
|
||||
export async function converse(wav: Buffer, broadcasting?: boolean): Promise<ConverseResult> {
|
||||
const qs = broadcasting === undefined ? "" : `?broadcasting=${broadcasting ? "1" : "0"}`;
|
||||
const res = await fetch(`${config.bridgeUrl}/converse${qs}`, {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* The screen broadcast is coupled to the voice session: it auto-starts when the
|
||||
* assistant joins a voice channel (screen-share mode default), reports its live
|
||||
* state to the brain each turn (search routes Chrome while live / Gemini when
|
||||
* state to the brain each turn (search routes Chrome while live / normal search when
|
||||
* off), and the brain can toggle it by voice ("방송 켜줘 / 꺼줘"). This logic
|
||||
* used to live only in the normal-bot join handler, so the userbot path (the
|
||||
* only mode that can actually Go Live) never started a broadcast. Keeping it
|
||||
|
||||
@@ -74,7 +74,7 @@ async function handleJoin(i: ChatInputCommandInteraction) {
|
||||
|
||||
// Screen-share mode (STREAM_BROWSER=true): the broadcast is coupled to the
|
||||
// voice session. Auto-start it on join, report its live state to the brain
|
||||
// each turn (search routes Chrome while live / Gemini when off), and let the
|
||||
// each turn (search routes Chrome while live / normal search when off), and let the
|
||||
// brain toggle it via voice ("방송 켜줘 / 꺼줘"). In voice-only mode
|
||||
// (STREAM_BROWSER=false) none of this runs and the broadcast stays off.
|
||||
await maybeCoupleBroadcast(session, { guildId: i.guildId!, voiceChannelId: channel.id });
|
||||
|
||||
@@ -99,7 +99,7 @@ export class VoiceSession {
|
||||
ttsEndMs?: number;
|
||||
}) => void;
|
||||
/** Live screen-share state, sent with each turn so the brain routes search
|
||||
* (Chrome while broadcasting, Gemini when off). */
|
||||
* (Chrome while broadcasting, the normal search when off). */
|
||||
getBroadcasting?: () => boolean;
|
||||
/** Apply a broadcast directive the brain requested (start/stop the stream). */
|
||||
onBroadcastAction?: (action: "start" | "stop") => void | Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user