[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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,