Skip to content

Commit a3ba7fc

Browse files
committed
chore(ai): update codegen output
1 parent 7e4b075 commit a3ba7fc

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/resources/ai/models/models.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ export interface ModelListParams extends V4PagePaginationArrayParams {
4040
*/
4141
author?: string;
4242

43+
/**
44+
* Query param: If set, return models in the requested marketplace format instead
45+
* of the default response.
46+
*/
47+
format?: 'openrouter';
48+
4349
/**
4450
* Query param: Filter to hide experimental models
4551
*/

tests/api-resources/ai/models/models.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe('resource models', () => {
2525
const response = await client.ai.models.list({
2626
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
2727
author: 'author',
28+
format: 'openrouter',
2829
hide_experimental: true,
2930
page: 0,
3031
per_page: 0,

0 commit comments

Comments
 (0)