mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-30 23:28:45 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user