Fix requesty model listing (#7378)

* Fix requesty model listing

* Delete .changeset/spotty-queens-crash.md

---------

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
This commit is contained in:
Daniel Trugman 2025-08-25 01:12:43 +01:00 committed by GitHub
parent 8367b1ac92
commit 0c481a3cf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@ export async function getRequestyModels(baseUrl?: string, apiKey?: string): Prom
}
const resolvedBaseUrl = toRequestyServiceUrl(baseUrl)
const modelsUrl = new URL("models", resolvedBaseUrl)
const modelsUrl = new URL("v1/models", resolvedBaseUrl)
const response = await axios.get(modelsUrl.toString(), { headers })
const rawModels = response.data.data