公众号验证码功能完成 yeah!!!
This commit is contained in:
26
node_modules/openai/client.d.ts
generated
vendored
26
node_modules/openai/client.d.ts
generated
vendored
@@ -8,13 +8,14 @@ import { type ConversationCursorPageParams, ConversationCursorPageResponse, type
|
||||
import * as Uploads from "./core/uploads.js";
|
||||
import * as API from "./resources/index.js";
|
||||
import { APIPromise } from "./core/api-promise.js";
|
||||
import { Batch, BatchCreateParams, BatchError, BatchListParams, BatchRequestCounts, Batches, BatchesPage } from "./resources/batches.js";
|
||||
import { Batch, BatchCreateParams, BatchError, BatchListParams, BatchRequestCounts, BatchUsage, Batches, BatchesPage } from "./resources/batches.js";
|
||||
import { Completion, CompletionChoice, CompletionCreateParams, CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming, CompletionUsage, Completions } from "./resources/completions.js";
|
||||
import { CreateEmbeddingResponse, Embedding, EmbeddingCreateParams, EmbeddingModel, Embeddings } from "./resources/embeddings.js";
|
||||
import { FileContent, FileCreateParams, FileDeleted, FileListParams, FileObject, FileObjectsPage, FilePurpose, Files } from "./resources/files.js";
|
||||
import { Image, ImageCreateVariationParams, ImageEditCompletedEvent, ImageEditParams, ImageEditParamsNonStreaming, ImageEditParamsStreaming, ImageEditPartialImageEvent, ImageEditStreamEvent, ImageGenCompletedEvent, ImageGenPartialImageEvent, ImageGenStreamEvent, ImageGenerateParams, ImageGenerateParamsNonStreaming, ImageGenerateParamsStreaming, ImageModel, Images, ImagesResponse } from "./resources/images.js";
|
||||
import { Model, ModelDeleted, Models, ModelsPage } from "./resources/models.js";
|
||||
import { Moderation, ModerationCreateParams, ModerationCreateResponse, ModerationImageURLInput, ModerationModel, ModerationMultiModalInput, ModerationTextInput, Moderations } from "./resources/moderations.js";
|
||||
import { Video, VideoCreateError, VideoCreateParams, VideoDeleteResponse, VideoDownloadContentParams, VideoListParams, VideoModel, VideoRemixParams, VideoSeconds, VideoSize, Videos, VideosPage } from "./resources/videos.js";
|
||||
import { Webhooks } from "./resources/webhooks.js";
|
||||
import { Audio, AudioModel, AudioResponseFormat } from "./resources/audio/audio.js";
|
||||
import { Beta } from "./resources/beta/beta.js";
|
||||
@@ -24,6 +25,7 @@ import { Conversations } from "./resources/conversations/conversations.js";
|
||||
import { EvalCreateParams, EvalCreateResponse, EvalCustomDataSourceConfig, EvalDeleteResponse, EvalListParams, EvalListResponse, EvalListResponsesPage, EvalRetrieveResponse, EvalStoredCompletionsDataSourceConfig, EvalUpdateParams, EvalUpdateResponse, Evals } from "./resources/evals/evals.js";
|
||||
import { FineTuning } from "./resources/fine-tuning/fine-tuning.js";
|
||||
import { Graders } from "./resources/graders/graders.js";
|
||||
import { Realtime } from "./resources/realtime/realtime.js";
|
||||
import { Responses } from "./resources/responses/responses.js";
|
||||
import { Upload, UploadCompleteParams, UploadCreateParams, Uploads as UploadsAPIUploads } from "./resources/uploads/uploads.js";
|
||||
import { AutoFileChunkingStrategyParam, FileChunkingStrategy, FileChunkingStrategyParam, OtherFileChunkingStrategyObject, StaticFileChunkingStrategy, StaticFileChunkingStrategyObject, StaticFileChunkingStrategyObjectParam, VectorStore, VectorStoreCreateParams, VectorStoreDeleted, VectorStoreListParams, VectorStoreSearchParams, VectorStoreSearchResponse, VectorStoreSearchResponsesPage, VectorStoreUpdateParams, VectorStores, VectorStoresPage } from "./resources/vector-stores/vector-stores.js";
|
||||
@@ -32,11 +34,20 @@ import { type Fetch } from "./internal/builtin-types.js";
|
||||
import { HeadersLike, NullableHeaders } from "./internal/headers.js";
|
||||
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
|
||||
import { type LogLevel, type Logger } from "./internal/utils/log.js";
|
||||
export type ApiKeySetter = () => Promise<string>;
|
||||
export interface ClientOptions {
|
||||
/**
|
||||
* Defaults to process.env['OPENAI_API_KEY'].
|
||||
* API key used for authentication.
|
||||
*
|
||||
* - Accepts either a static string or an async function that resolves to a string.
|
||||
* - Defaults to process.env['OPENAI_API_KEY'].
|
||||
* - When a function is provided, it is invoked before each request so you can rotate
|
||||
* or refresh credentials at runtime.
|
||||
* - The function must return a non-empty string; otherwise an OpenAIError is thrown.
|
||||
* - If the function throws, the error is wrapped in an OpenAIError with the original
|
||||
* error available as `cause`.
|
||||
*/
|
||||
apiKey?: string | undefined;
|
||||
apiKey?: string | ApiKeySetter | undefined;
|
||||
/**
|
||||
* Defaults to process.env['OPENAI_ORG_ID'].
|
||||
*/
|
||||
@@ -132,7 +143,7 @@ export declare class OpenAI {
|
||||
fetchOptions: MergedRequestInit | undefined;
|
||||
private fetch;
|
||||
protected idempotencyHeader?: string;
|
||||
private _options;
|
||||
protected _options: ClientOptions;
|
||||
/**
|
||||
* API Client for interfacing with the OpenAI API.
|
||||
*
|
||||
@@ -161,6 +172,7 @@ export declare class OpenAI {
|
||||
private getUserAgent;
|
||||
protected defaultIdempotencyKey(): string;
|
||||
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
||||
_callApiKey(): Promise<boolean>;
|
||||
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
||||
/**
|
||||
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
||||
@@ -232,9 +244,11 @@ export declare class OpenAI {
|
||||
batches: API.Batches;
|
||||
uploads: API.Uploads;
|
||||
responses: API.Responses;
|
||||
realtime: API.Realtime;
|
||||
conversations: API.Conversations;
|
||||
evals: API.Evals;
|
||||
containers: API.Containers;
|
||||
videos: API.Videos;
|
||||
}
|
||||
export declare namespace OpenAI {
|
||||
export type RequestOptions = Opts.RequestOptions;
|
||||
@@ -257,12 +271,14 @@ export declare namespace OpenAI {
|
||||
export { VectorStores as VectorStores, type AutoFileChunkingStrategyParam as AutoFileChunkingStrategyParam, type FileChunkingStrategy as FileChunkingStrategy, type FileChunkingStrategyParam as FileChunkingStrategyParam, type OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject, type StaticFileChunkingStrategy as StaticFileChunkingStrategy, type StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject, type StaticFileChunkingStrategyObjectParam as StaticFileChunkingStrategyObjectParam, type VectorStore as VectorStore, type VectorStoreDeleted as VectorStoreDeleted, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresPage as VectorStoresPage, type VectorStoreSearchResponsesPage as VectorStoreSearchResponsesPage, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
||||
export { Webhooks as Webhooks };
|
||||
export { Beta as Beta };
|
||||
export { Batches as Batches, type Batch as Batch, type BatchError as BatchError, type BatchRequestCounts as BatchRequestCounts, type BatchesPage as BatchesPage, type BatchCreateParams as BatchCreateParams, type BatchListParams as BatchListParams, };
|
||||
export { Batches as Batches, type Batch as Batch, type BatchError as BatchError, type BatchRequestCounts as BatchRequestCounts, type BatchUsage as BatchUsage, type BatchesPage as BatchesPage, type BatchCreateParams as BatchCreateParams, type BatchListParams as BatchListParams, };
|
||||
export { UploadsAPIUploads as Uploads, type Upload as Upload, type UploadCreateParams as UploadCreateParams, type UploadCompleteParams as UploadCompleteParams, };
|
||||
export { Responses as Responses };
|
||||
export { Realtime as Realtime };
|
||||
export { Conversations as Conversations };
|
||||
export { Evals as Evals, type EvalCustomDataSourceConfig as EvalCustomDataSourceConfig, type EvalStoredCompletionsDataSourceConfig as EvalStoredCompletionsDataSourceConfig, type EvalCreateResponse as EvalCreateResponse, type EvalRetrieveResponse as EvalRetrieveResponse, type EvalUpdateResponse as EvalUpdateResponse, type EvalListResponse as EvalListResponse, type EvalDeleteResponse as EvalDeleteResponse, type EvalListResponsesPage as EvalListResponsesPage, type EvalCreateParams as EvalCreateParams, type EvalUpdateParams as EvalUpdateParams, type EvalListParams as EvalListParams, };
|
||||
export { Containers as Containers, type ContainerCreateResponse as ContainerCreateResponse, type ContainerRetrieveResponse as ContainerRetrieveResponse, type ContainerListResponse as ContainerListResponse, type ContainerListResponsesPage as ContainerListResponsesPage, type ContainerCreateParams as ContainerCreateParams, type ContainerListParams as ContainerListParams, };
|
||||
export { Videos as Videos, type Video as Video, type VideoCreateError as VideoCreateError, type VideoModel as VideoModel, type VideoSeconds as VideoSeconds, type VideoSize as VideoSize, type VideoDeleteResponse as VideoDeleteResponse, type VideosPage as VideosPage, type VideoCreateParams as VideoCreateParams, type VideoListParams as VideoListParams, type VideoDownloadContentParams as VideoDownloadContentParams, type VideoRemixParams as VideoRemixParams, };
|
||||
export type AllModels = API.AllModels;
|
||||
export type ChatModel = API.ChatModel;
|
||||
export type ComparisonFilter = API.ComparisonFilter;
|
||||
|
||||
Reference in New Issue
Block a user