()
| 534 | } |
| 535 | |
| 536 | public async fetchModel() { |
| 537 | const [models, endpoints] = await Promise.all([ |
| 538 | getModels({ provider: "openrouter" }), |
| 539 | getModelEndpoints({ |
| 540 | router: "openrouter", |
| 541 | modelId: this.options.openRouterModelId, |
| 542 | endpoint: this.options.openRouterSpecificProvider, |
| 543 | }), |
| 544 | ]) |
| 545 | |
| 546 | this.models = models |
| 547 | this.endpoints = endpoints |
| 548 | |
| 549 | return this.getModel() |
| 550 | } |
| 551 | |
| 552 | override getModel() { |
| 553 | const id = this.options.openRouterModelId ?? openRouterDefaultModelId |
no test coverage detected