[JUNE 25] Permanent failover to Flash model for OAuth users after persistent 429 errors (#1376)

Co-authored-by: Scott Densmore <scottdensmore@mac.com>
This commit is contained in:
Bryan Morgan
2025-06-24 18:48:55 -04:00
committed by GitHub
parent 4bf18da2b0
commit e356949d3f
16 changed files with 837 additions and 12 deletions

View File

@@ -171,7 +171,7 @@ export const useSlashCommandProcessor = (
[addMessage],
);
const savedChatTags = async function () {
const savedChatTags = useCallback(async () => {
const geminiDir = config?.getProjectTempDir();
if (!geminiDir) {
return [];
@@ -186,7 +186,7 @@ export const useSlashCommandProcessor = (
} catch (_err) {
return [];
}
};
}, [config]);
const slashCommands: SlashCommand[] = useMemo(() => {
const commands: SlashCommand[] = [
@@ -992,6 +992,7 @@ Add any other context about the problem here.
addMemoryAction,
addMessage,
toggleCorgiMode,
savedChatTags,
config,
showToolDescriptions,
session,