fix: correct LongCat API base URL path

This commit is contained in:
Ivan
2026-03-25 18:14:19 +03:00
parent 948513ef5f
commit 58df1c06ee
2 changed files with 2 additions and 5 deletions

View File

@@ -655,7 +655,7 @@ export async function validateProviderApiKey({ provider, apiKey, providerSpecifi
// LongCat AI — does not expose /v1/models; validate via chat completions directly (#592)
longcat: async ({ apiKey }: any) => {
try {
const res = await fetch("https://longcat.chat/api/v1/chat/completions", {
const res = await fetch("https://api.longcat.chat/openai/v1/chat/completions", {
method: "POST",
headers: buildBearerHeaders(apiKey),
body: JSON.stringify({