commit
This commit is contained in:
parent
c997a4f034
commit
4afa276479
26 changed files with 1437 additions and 204 deletions
9
node_modules/openai/base.ts
generated
vendored
9
node_modules/openai/base.ts
generated
vendored
|
@ -4,7 +4,7 @@
|
|||
* OpenAI API
|
||||
* APIs for sampling from and fine-tuning language models
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
@ -13,10 +13,11 @@
|
|||
*/
|
||||
|
||||
|
||||
import { Configuration } from "./configuration";
|
||||
import type { Configuration } from './configuration';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
import globalAxios from 'axios';
|
||||
|
||||
export const BASE_PATH = "https://api.openai.com/v1".replace(/\/+$/, "");
|
||||
|
||||
|
@ -64,8 +65,8 @@ export class BaseAPI {
|
|||
* @extends {Error}
|
||||
*/
|
||||
export class RequiredError extends Error {
|
||||
name: "RequiredError" = "RequiredError";
|
||||
constructor(public field: string, msg?: string) {
|
||||
super(msg);
|
||||
this.name = "RequiredError"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue