The platform for continuously improving AI agents.
/* tslint:disable */
/* eslint-disable */
/**
* Overbae API
* Backend API for the Overclaw / Overmind platform.
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
ModelCatalogResponse,
} from '../models/index';
import {
ModelCatalogResponseFromJSON,
ModelCatalogResponseToJSON,
} from '../models/index';
/**
*
*/
export class ModelsApi extends runtime.BaseAPI {
/**
* Trimmed OpenRouter model list for the evaluation model picker. Each `id` is the exact `model_name` a run target should use. On upstream failure `upstream_available` is false and `models` is empty.
* Browse the OpenRouter model catalog
*/
async modelsCatalogRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ModelCatalogResponse>> {
const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {};
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("ClerkBearerAuth", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
if (this.configuration && this.configuration.apiKey) {
headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication
}
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("BearerAuth", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
let urlPath = `/api/models/catalog/`;
const response = await this.request({
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => ModelCatalogResponseFromJSON(jsonValue));
}
/**
* Trimmed OpenRouter model list for the evaluation model picker. Each `id` is the exact `model_name` a run target should use. On upstream failure `upstream_available` is false and `models` is empty.
* Browse the OpenRouter model catalog
*/
async modelsCatalogRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ModelCatalogResponse> {
const response = await this.modelsCatalogRetrieveRaw(initOverrides);
return await response.value();
}
}