mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 16:37:46 +08:00
fix(ai-formats): clean up cross-format safety rules for Gemini requests
This commit is contained in:
@@ -864,32 +864,27 @@ fn request_extension_key_is_cross_format_safe(
|
|||||||
_,
|
_,
|
||||||
"claude",
|
"claude",
|
||||||
"context_management" | "output_config",
|
"context_management" | "output_config",
|
||||||
)
|
) | (
|
||||||
| (
|
|
||||||
FormatId::ClaudeMessages,
|
FormatId::ClaudeMessages,
|
||||||
FormatId::OpenAiChat | FormatId::GeminiGenerateContent,
|
FormatId::OpenAiChat | FormatId::GeminiGenerateContent,
|
||||||
"openai",
|
"openai",
|
||||||
"web_search_options",
|
"web_search_options",
|
||||||
)
|
) | (
|
||||||
| (
|
|
||||||
FormatId::GeminiGenerateContent,
|
FormatId::GeminiGenerateContent,
|
||||||
_,
|
_,
|
||||||
"gemini",
|
"gemini",
|
||||||
"thinking_config" | "raw_tools" | "raw_tool_config",
|
"thinking_config" | "raw_tools" | "raw_tool_config",
|
||||||
)
|
) | (
|
||||||
| (
|
|
||||||
FormatId::GeminiGenerateContent,
|
FormatId::GeminiGenerateContent,
|
||||||
FormatId::OpenAiChat,
|
FormatId::OpenAiChat,
|
||||||
"gemini",
|
"gemini",
|
||||||
"builtin_tools" | "grounding",
|
"builtin_tools" | "grounding",
|
||||||
)
|
) | (
|
||||||
| (
|
|
||||||
FormatId::GeminiGenerateContent,
|
FormatId::GeminiGenerateContent,
|
||||||
FormatId::GeminiGenerateContent,
|
FormatId::GeminiGenerateContent,
|
||||||
"gemini",
|
"gemini",
|
||||||
_
|
_
|
||||||
)
|
) | (
|
||||||
| (
|
|
||||||
FormatId::GeminiGenerateContent,
|
FormatId::GeminiGenerateContent,
|
||||||
FormatId::OpenAiChat,
|
FormatId::OpenAiChat,
|
||||||
"openai",
|
"openai",
|
||||||
|
|||||||
Reference in New Issue
Block a user