公众号验证码功能完成 yeah!!!
This commit is contained in:
2
node_modules/openai/src/internal/to-file.ts
generated
vendored
2
node_modules/openai/src/internal/to-file.ts
generated
vendored
@@ -73,7 +73,7 @@ export type ToFileInput =
|
||||
|
||||
/**
|
||||
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
||||
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
||||
* @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
|
||||
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
||||
* @param {Object=} options additional properties
|
||||
* @param {string=} options.type the MIME type of the content
|
||||
|
||||
6
node_modules/openai/src/internal/utils/values.ts
generated
vendored
6
node_modules/openai/src/internal/utils/values.ts
generated
vendored
@@ -76,21 +76,21 @@ export const coerceBoolean = (value: unknown): boolean => {
|
||||
};
|
||||
|
||||
export const maybeCoerceInteger = (value: unknown): number | undefined => {
|
||||
if (value === undefined) {
|
||||
if (value == null) {
|
||||
return undefined;
|
||||
}
|
||||
return coerceInteger(value);
|
||||
};
|
||||
|
||||
export const maybeCoerceFloat = (value: unknown): number | undefined => {
|
||||
if (value === undefined) {
|
||||
if (value == null) {
|
||||
return undefined;
|
||||
}
|
||||
return coerceFloat(value);
|
||||
};
|
||||
|
||||
export const maybeCoerceBoolean = (value: unknown): boolean | undefined => {
|
||||
if (value === undefined) {
|
||||
if (value == null) {
|
||||
return undefined;
|
||||
}
|
||||
return coerceBoolean(value);
|
||||
|
||||
Reference in New Issue
Block a user