[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-10-09 08:18:17 +00:00
committed by GitHub
parent 9b81d15b0c
commit 8de5001471
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export const aiRouter = createTRPCRouter({
case "gemini": case "gemini":
response = await fetch( response = await fetch(
`${input.apiUrl}/models?key=${encodeURIComponent(input.apiKey)}`, `${input.apiUrl}/models?key=${encodeURIComponent(input.apiKey)}`,
{ headers: {} } { headers: {} },
); );
break; break;
default: default:
@@ -72,8 +72,8 @@ export function selectAIProvider(config: { apiUrl: string; apiKey: string }) {
name: "gemini", name: "gemini",
baseURL: config.apiUrl, baseURL: config.apiUrl,
queryParams: { key: config.apiKey }, queryParams: { key: config.apiKey },
headers:{} headers: {},
}) });
case "custom": case "custom":
return createOpenAICompatible({ return createOpenAICompatible({
name: "custom", name: "custom",