Merge pull request #1572 from RooVetGit/fix_openrouter_generation_check

Use baseURL in OpenRouter generation check
This commit is contained in:
Matt Rubens 2025-03-11 12:00:37 -04:00 • committed by GitHub
commit 99258e4a9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,7 +162,7 @@ export class OpenRouterHandler extends BaseProvider implements SingleCompletionH
await delay(200) // FIXME: necessary delay to ensure generation endpoint is ready
try {
const response = await axios.get(`https://openrouter.ai/api/v1/generation?id=${genId}`, {
const response = await axios.get(`${this.client.baseURL}/generation?id=${genId}`, {
headers: {
Authorization: `Bearer ${this.options.openRouterApiKey}`,
},