公众号验证码功能完成 yeah!!!
This commit is contained in:
73
node_modules/openai/resources/batches.d.mts
generated
vendored
73
node_modules/openai/resources/batches.d.mts
generated
vendored
@@ -97,6 +97,14 @@ export interface Batch {
|
||||
* a maximum length of 512 characters.
|
||||
*/
|
||||
metadata?: Shared.Metadata | null;
|
||||
/**
|
||||
* Model ID used to process the batch, like `gpt-5-2025-08-07`. OpenAI offers a
|
||||
* wide range of models with different capabilities, performance characteristics,
|
||||
* and price points. Refer to the
|
||||
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
||||
* available models.
|
||||
*/
|
||||
model?: string;
|
||||
/**
|
||||
* The ID of the file containing the outputs of successfully executed requests.
|
||||
*/
|
||||
@@ -105,6 +113,12 @@ export interface Batch {
|
||||
* The request counts for different statuses within the batch.
|
||||
*/
|
||||
request_counts?: BatchRequestCounts;
|
||||
/**
|
||||
* Represents token usage details including input tokens, output tokens, a
|
||||
* breakdown of output tokens, and the total tokens used. Only populated on batches
|
||||
* created after September 7, 2025.
|
||||
*/
|
||||
usage?: BatchUsage;
|
||||
}
|
||||
export declare namespace Batch {
|
||||
interface Errors {
|
||||
@@ -150,6 +164,54 @@ export interface BatchRequestCounts {
|
||||
*/
|
||||
total: number;
|
||||
}
|
||||
/**
|
||||
* Represents token usage details including input tokens, output tokens, a
|
||||
* breakdown of output tokens, and the total tokens used. Only populated on batches
|
||||
* created after September 7, 2025.
|
||||
*/
|
||||
export interface BatchUsage {
|
||||
/**
|
||||
* The number of input tokens.
|
||||
*/
|
||||
input_tokens: number;
|
||||
/**
|
||||
* A detailed breakdown of the input tokens.
|
||||
*/
|
||||
input_tokens_details: BatchUsage.InputTokensDetails;
|
||||
/**
|
||||
* The number of output tokens.
|
||||
*/
|
||||
output_tokens: number;
|
||||
/**
|
||||
* A detailed breakdown of the output tokens.
|
||||
*/
|
||||
output_tokens_details: BatchUsage.OutputTokensDetails;
|
||||
/**
|
||||
* The total number of tokens used.
|
||||
*/
|
||||
total_tokens: number;
|
||||
}
|
||||
export declare namespace BatchUsage {
|
||||
/**
|
||||
* A detailed breakdown of the input tokens.
|
||||
*/
|
||||
interface InputTokensDetails {
|
||||
/**
|
||||
* The number of tokens that were retrieved from the cache.
|
||||
* [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching).
|
||||
*/
|
||||
cached_tokens: number;
|
||||
}
|
||||
/**
|
||||
* A detailed breakdown of the output tokens.
|
||||
*/
|
||||
interface OutputTokensDetails {
|
||||
/**
|
||||
* The number of reasoning tokens.
|
||||
*/
|
||||
reasoning_tokens: number;
|
||||
}
|
||||
}
|
||||
export interface BatchCreateParams {
|
||||
/**
|
||||
* The time frame within which the batch should be processed. Currently only `24h`
|
||||
@@ -158,11 +220,12 @@ export interface BatchCreateParams {
|
||||
completion_window: '24h';
|
||||
/**
|
||||
* The endpoint to be used for all requests in the batch. Currently
|
||||
* `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions`
|
||||
* are supported. Note that `/v1/embeddings` batches are also restricted to a
|
||||
* maximum of 50,000 embedding inputs across all requests in the batch.
|
||||
* `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
|
||||
* and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
|
||||
* restricted to a maximum of 50,000 embedding inputs across all requests in the
|
||||
* batch.
|
||||
*/
|
||||
endpoint: '/v1/responses' | '/v1/chat/completions' | '/v1/embeddings' | '/v1/completions';
|
||||
endpoint: '/v1/responses' | '/v1/chat/completions' | '/v1/embeddings' | '/v1/completions' | '/v1/moderations';
|
||||
/**
|
||||
* The ID of an uploaded file that contains requests for the new batch.
|
||||
*
|
||||
@@ -212,6 +275,6 @@ export declare namespace BatchCreateParams {
|
||||
export interface BatchListParams extends CursorPageParams {
|
||||
}
|
||||
export declare namespace Batches {
|
||||
export { 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 { 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, };
|
||||
}
|
||||
//# sourceMappingURL=batches.d.mts.map
|
||||
Reference in New Issue
Block a user