Skip to content

fix(gemini): remove unsupported HARM_CATEGORY_CIVIC_INTEGRITY and fix setTimeout type mismatch#3177

Open
letr1n1ty wants to merge 1 commit into
lbjlaq:mainfrom
letr1n1ty:fix/gemini-safety-settings
Open

fix(gemini): remove unsupported HARM_CATEGORY_CIVIC_INTEGRITY and fix setTimeout type mismatch#3177
letr1n1ty wants to merge 1 commit into
lbjlaq:mainfrom
letr1n1ty:fix/gemini-safety-settings

Conversation

@letr1n1ty

Copy link
Copy Markdown

Description

  1. Remove HARM_CATEGORY_CIVIC_INTEGRITY: This safety category is not supported by standard Gemini models (such as gemini-2.5-flash or newer models in stable endpoints) and causes 400 INVALID_ARGUMENT errors. Removed this category from the default safety settings configuration in OpenAI, Claude mappers and handlers.
  2. Fix setTimeout type mismatch: Added window. prefix to setTimeout in ProxyMonitor.tsx to align the TypeScript return type to number, which resolves front-end compilation failures in npm run build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant