/
opt
/
canhelp
/
node_modules
/
openai
/
resources
/
/opt/canhelp/node_modules/openai/resources
mkdir
upload
Name
Size
Mode
Actions
audio/
-
0755
rm
beta/
-
0755
rm
chat/
-
0755
rm
containers/
-
0755
rm
conversations/
-
0755
rm
evals/
-
0755
rm
fine-tuning/
-
0755
rm
graders/
-
0755
rm
realtime/
-
0755
rm
responses/
-
0755
rm
skills/
-
0755
rm
uploads/
-
0755
rm
vector-stores/
-
0755
rm
webhooks/
-
0755
rm
audio.d.mts
71
0644
edit
dl
rm
audio.d.mts.map
115
0644
edit
dl
rm
audio.d.ts
69
0644
edit
dl
rm
audio.d.ts.map
114
0644
edit
dl
rm
audio.js
306
0644
edit
dl
rm
audio.js.map
139
0644
edit
dl
rm
audio.mjs
156
0644
edit
dl
rm
audio.mjs.map
124
0644
edit
dl
rm
batches.d.mts
9667
0644
edit
dl
rm
batches.d.mts.map
3499
0644
edit
dl
rm
batches.d.ts
9660
0644
edit
dl
rm
batches.d.ts.map
3498
0644
edit
dl
rm
batches.js
1442
0644
edit
dl
rm
batches.js.map
834
0644
edit
dl
rm
batches.mjs
1269
0644
edit
dl
rm
batches.mjs.map
835
0644
edit
dl
rm
beta.d.mts
69
0644
edit
dl
rm
beta.d.mts.map
113
0644
edit
dl
rm
beta.d.ts
67
0644
edit
dl
rm
beta.d.ts.map
112
0644
edit
dl
rm
beta.js
304
0644
edit
dl
rm
beta.js.map
137
0644
edit
dl
rm
beta.mjs
154
0644
edit
dl
rm
beta.mjs.map
122
0644
edit
dl
rm
chat.d.mts
69
0644
edit
dl
rm
chat.d.mts.map
113
0644
edit
dl
rm
chat.d.ts
67
0644
edit
dl
rm
chat.d.ts.map
112
0644
edit
dl
rm
chat.js
304
0644
edit
dl
rm
chat.js.map
137
0644
edit
dl
rm
chat.mjs
154
0644
edit
dl
rm
chat.mjs.map
122
0644
edit
dl
rm
completions.d.mts
13780
0644
edit
dl
rm
completions.d.mts.map
3829
0644
edit
dl
rm
completions.d.ts
13773
0644
edit
dl
rm
completions.d.ts.map
3828
0644
edit
dl
rm
completions.js
670
0644
edit
dl
rm
completions.js.map
385
0644
edit
dl
rm
completions.mjs
526
0644
edit
dl
rm
completions.mjs.map
382
0644
edit
dl
rm
containers.d.mts
81
0644
edit
dl
rm
containers.d.mts.map
125
0644
edit
dl
rm
containers.d.ts
79
0644
edit
dl
rm
containers.d.ts.map
124
0644
edit
dl
rm
containers.js
316
0644
edit
dl
rm
containers.js.map
149
0644
edit
dl
rm
containers.mjs
166
0644
edit
dl
rm
containers.mjs.map
134
0644
edit
dl
rm
conversations.d.mts
87
0644
edit
dl
rm
conversations.d.mts.map
131
0644
edit
dl
rm
conversations.d.ts
85
0644
edit
dl
rm
conversations.d.ts.map
130
0644
edit
dl
rm
conversations.js
322
0644
edit
dl
rm
conversations.js.map
155
0644
edit
dl
rm
conversations.mjs
172
0644
edit
dl
rm
conversations.mjs.map
140
0644
edit
dl
rm
embeddings.d.mts
4248
0644
edit
dl
rm
embeddings.d.mts.map
1444
0644
edit
dl
rm
embeddings.d.ts
4244
0644
edit
dl
rm
embeddings.d.ts.map
1443
0644
edit
dl
rm
embeddings.js
2610
0644
edit
dl
rm
embeddings.js.map
1264
0644
edit
dl
rm
embeddings.mjs
2448
0644
edit
dl
rm
embeddings.mjs.map
1260
0644
edit
dl
rm
evals.d.mts
71
0644
edit
dl
rm
evals.d.mts.map
115
0644
edit
dl
rm
evals.d.ts
69
0644
edit
dl
rm
evals.d.ts.map
114
0644
edit
dl
rm
evals.js
306
0644
edit
dl
rm
evals.js.map
139
0644
edit
dl
rm
evals.mjs
156
0644
edit
dl
rm
evals.mjs.map
124
0644
edit
dl
rm
files.d.mts
6619
0644
edit
dl
rm
files.d.mts.map
2435
0644
edit
dl
rm
files.d.ts
6613
0644
edit
dl
rm
files.d.ts.map
2434
0644
edit
dl
rm
files.js
3770
0644
edit
dl
rm
files.js.map
1919
0644
edit
dl
rm
files.mjs
3577
0644
edit
dl
rm
files.mjs.map
1934
0644
edit
dl
rm
fine-tuning.d.mts
83
0644
edit
dl
rm
fine-tuning.d.mts.map
127
0644
edit
dl
rm
fine-tuning.d.ts
81
0644
edit
dl
rm
fine-tuning.d.ts.map
126
0644
edit
dl
rm
fine-tuning.js
318
0644
edit
dl
rm
fine-tuning.js.map
151
0644
edit
dl
rm
fine-tuning.mjs
168
0644
edit
dl
rm
fine-tuning.mjs.map
136
0644
edit
dl
rm
graders.d.mts
75
0644
edit
dl
rm
graders.d.mts.map
119
0644
edit
dl
rm
graders.d.ts
73
0644
edit
dl
rm
graders.d.ts.map
118
0644
edit
dl
rm
graders.js
310
0644
edit
dl
rm
graders.js.map
143
0644
edit
dl
rm
graders.mjs
160
0644
edit
dl
rm
graders.mjs.map
128
0644
edit
dl
rm
images.d.mts
26175
0644
edit
dl
rm
images.d.mts.map
8416
0644
edit
dl
rm
images.d.ts
26168
0644
edit
dl
rm
images.d.ts.map
8415
0644
edit
dl
rm
images.js
1280
0644
edit
dl
rm
images.js.map
808
0644
edit
dl
rm
images.mjs
1139
0644
edit
dl
rm
images.mjs.map
804
0644
edit
dl
rm
index.d.mts
3967
0644
edit
dl
rm
index.d.mts.map
2454
0644
edit
dl
rm
index.d.ts
3943
0644
edit
dl
rm
index.d.ts.map
2453
0644
edit
dl
rm
index.js
4210
0644
edit
dl
rm
index.js.map
882
0644
edit
dl
rm
index.mjs
1207
0644
edit
dl
rm
index.mjs.map
557
0644
edit
dl
rm
models.d.mts
1779
0644
edit
dl
rm
models.d.mts.map
995
0644
edit
dl
rm
models.d.ts
1774
0644
edit
dl
rm
models.d.ts.map
994
0644
edit
dl
rm
models.js
1280
0644
edit
dl
rm
models.js.map
645
0644
edit
dl
rm
models.mjs
1104
0644
edit
dl
rm
models.mjs.map
645
0644
edit
dl
rm
moderations.d.mts
10303
0644
edit
dl
rm
moderations.d.mts.map
3527
0644
edit
dl
rm
moderations.d.ts
10299
0644
edit
dl
rm
moderations.d.ts.map
3526
0644
edit
dl
rm
moderations.js
757
0644
edit
dl
rm
moderations.js.map
352
0644
edit
dl
rm
moderations.mjs
613
0644
edit
dl
rm
moderations.mjs.map
351
0644
edit
dl
rm
realtime.d.mts
77
0644
edit
dl
rm
realtime.d.mts.map
121
0644
edit
dl
rm
realtime.d.ts
75
0644
edit
dl
rm
realtime.d.ts.map
120
0644
edit
dl
rm
realtime.js
312
0644
edit
dl
rm
realtime.js.map
145
0644
edit
dl
rm
realtime.mjs
162
0644
edit
dl
rm
realtime.mjs.map
130
0644
edit
dl
rm
responses.d.mts
79
0644
edit
dl
rm
responses.d.mts.map
123
0644
edit
dl
rm
responses.d.ts
77
0644
edit
dl
rm
responses.d.ts.map
122
0644
edit
dl
rm
responses.js
314
0644
edit
dl
rm
responses.js.map
147
0644
edit
dl
rm
responses.mjs
164
0644
edit
dl
rm
responses.mjs.map
132
0644
edit
dl
rm
shared.d.mts
12511
0644
edit
dl
rm
shared.d.mts.map
3990
0644
edit
dl
rm
shared.d.ts
12510
0644
edit
dl
rm
shared.d.ts.map
3989
0644
edit
dl
rm
shared.js
198
0644
edit
dl
rm
shared.js.map
126
0644
edit
dl
rm
shared.mjs
133
0644
edit
dl
rm
shared.mjs.map
126
0644
edit
dl
rm
skills.d.mts
73
0644
edit
dl
rm
skills.d.mts.map
117
0644
edit
dl
rm
skills.d.ts
71
0644
edit
dl
rm
skills.d.ts.map
116
0644
edit
dl
rm
skills.js
308
0644
edit
dl
rm
skills.js.map
141
0644
edit
dl
rm
skills.mjs
158
0644
edit
dl
rm
skills.mjs.map
126
0644
edit
dl
rm
uploads.d.mts
75
0644
edit
dl
rm
uploads.d.mts.map
119
0644
edit
dl
rm
uploads.d.ts
73
0644
edit
dl
rm
uploads.d.ts.map
118
0644
edit
dl
rm
uploads.js
310
0644
edit
dl
rm
uploads.js.map
143
0644
edit
dl
rm
uploads.mjs
160
0644
edit
dl
rm
uploads.mjs.map
128
0644
edit
dl
rm
vector-stores.d.mts
87
0644
edit
dl
rm
vector-stores.d.mts.map
131
0644
edit
dl
rm
vector-stores.d.ts
85
0644
edit
dl
rm
vector-stores.d.ts.map
130
0644
edit
dl
rm
vector-stores.js
322
0644
edit
dl
rm
vector-stores.js.map
155
0644
edit
dl
rm
vector-stores.mjs
172
0644
edit
dl
rm
vector-stores.mjs.map
140
0644
edit
dl
rm
videos.d.mts
9152
0644
edit
dl
rm
videos.d.mts.map
4543
0644
edit
dl
rm
videos.d.ts
9146
0644
edit
dl
rm
videos.d.ts.map
4542
0644
edit
dl
rm
videos.js
3194
0644
edit
dl
rm
videos.js.map
2135
0644
edit
dl
rm
videos.mjs
2965
0644
edit
dl
rm
videos.mjs.map
2123
0644
edit
dl
rm
webhooks.d.mts
77
0644
edit
dl
rm
webhooks.d.mts.map
121
0644
edit
dl
rm
webhooks.d.ts
75
0644
edit
dl
rm
webhooks.d.ts.map
120
0644
edit
dl
rm
webhooks.js
312
0644
edit
dl
rm
webhooks.js.map
145
0644
edit
dl
rm
webhooks.mjs
162
0644
edit
dl
rm
webhooks.mjs.map
130
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/openai/resources/moderations.d.mts
(10303B)
import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; /** * Given text and/or image inputs, classifies if those inputs are potentially harmful. */ export declare class Moderations extends APIResource { /** * Classifies if text and/or image inputs are potentially harmful. Learn more in * the [moderation guide](https://platform.openai.com/docs/guides/moderation). */ create(body: ModerationCreateParams, options?: RequestOptions): APIPromise<ModerationCreateResponse>; } export interface Moderation { /** * A list of the categories, and whether they are flagged or not. */ categories: Moderation.Categories; /** * A list of the categories along with the input type(s) that the score applies to. */ category_applied_input_types: Moderation.CategoryAppliedInputTypes; /** * A list of the categories along with their scores as predicted by model. */ category_scores: Moderation.CategoryScores; /** * Whether any of the below categories are flagged. */ flagged: boolean; } export declare namespace Moderation { /** * A list of the categories, and whether they are flagged or not. */ interface Categories { /** * Content that expresses, incites, or promotes harassing language towards any * target. */ harassment: boolean; /** * Harassment content that also includes violence or serious harm towards any * target. */ 'harassment/threatening': boolean; /** * Content that expresses, incites, or promotes hate based on race, gender, * ethnicity, religion, nationality, sexual orientation, disability status, or * caste. Hateful content aimed at non-protected groups (e.g., chess players) is * harassment. */ hate: boolean; /** * Hateful content that also includes violence or serious harm towards the targeted * group based on race, gender, ethnicity, religion, nationality, sexual * orientation, disability status, or caste. */ 'hate/threatening': boolean; /** * Content that includes instructions or advice that facilitate the planning or * execution of wrongdoing, or that gives advice or instruction on how to commit * illicit acts. For example, "how to shoplift" would fit this category. */ illicit: boolean | null; /** * Content that includes instructions or advice that facilitate the planning or * execution of wrongdoing that also includes violence, or that gives advice or * instruction on the procurement of any weapon. */ 'illicit/violent': boolean | null; /** * Content that promotes, encourages, or depicts acts of self-harm, such as * suicide, cutting, and eating disorders. */ 'self-harm': boolean; /** * Content that encourages performing acts of self-harm, such as suicide, cutting, * and eating disorders, or that gives instructions or advice on how to commit such * acts. */ 'self-harm/instructions': boolean; /** * Content where the speaker expresses that they are engaging or intend to engage * in acts of self-harm, such as suicide, cutting, and eating disorders. */ 'self-harm/intent': boolean; /** * Content meant to arouse sexual excitement, such as the description of sexual * activity, or that promotes sexual services (excluding sex education and * wellness). */ sexual: boolean; /** * Sexual content that includes an individual who is under 18 years old. */ 'sexual/minors': boolean; /** * Content that depicts death, violence, or physical injury. */ violence: boolean; /** * Content that depicts death, violence, or physical injury in graphic detail. */ 'violence/graphic': boolean; } /** * A list of the categories along with the input type(s) that the score applies to. */ interface CategoryAppliedInputTypes { /** * The applied input type(s) for the category 'harassment'. */ harassment: Array<'text'>; /** * The applied input type(s) for the category 'harassment/threatening'. */ 'harassment/threatening': Array<'text'>; /** * The applied input type(s) for the category 'hate'. */ hate: Array<'text'>; /** * The applied input type(s) for the category 'hate/threatening'. */ 'hate/threatening': Array<'text'>; /** * The applied input type(s) for the category 'illicit'. */ illicit: Array<'text'>; /** * The applied input type(s) for the category 'illicit/violent'. */ 'illicit/violent': Array<'text'>; /** * The applied input type(s) for the category 'self-harm'. */ 'self-harm': Array<'text' | 'image'>; /** * The applied input type(s) for the category 'self-harm/instructions'. */ 'self-harm/instructions': Array<'text' | 'image'>; /** * The applied input type(s) for the category 'self-harm/intent'. */ 'self-harm/intent': Array<'text' | 'image'>; /** * The applied input type(s) for the category 'sexual'. */ sexual: Array<'text' | 'image'>; /** * The applied input type(s) for the category 'sexual/minors'. */ 'sexual/minors': Array<'text'>; /** * The applied input type(s) for the category 'violence'. */ violence: Array<'text' | 'image'>; /** * The applied input type(s) for the category 'violence/graphic'. */ 'violence/graphic': Array<'text' | 'image'>; } /** * A list of the categories along with their scores as predicted by model. */ interface CategoryScores { /** * The score for the category 'harassment'. */ harassment: number; /** * The score for the category 'harassment/threatening'. */ 'harassment/threatening': number; /** * The score for the category 'hate'. */ hate: number; /** * The score for the category 'hate/threatening'. */ 'hate/threatening': number; /** * The score for the category 'illicit'. */ illicit: number; /** * The score for the category 'illicit/violent'. */ 'illicit/violent': number; /** * The score for the category 'self-harm'. */ 'self-harm': number; /** * The score for the category 'self-harm/instructions'. */ 'self-harm/instructions': number; /** * The score for the category 'self-harm/intent'. */ 'self-harm/intent': number; /** * The score for the category 'sexual'. */ sexual: number; /** * The score for the category 'sexual/minors'. */ 'sexual/minors': number; /** * The score for the category 'violence'. */ violence: number; /** * The score for the category 'violence/graphic'. */ 'violence/graphic': number; } } /** * An object describing an image to classify. */ export interface ModerationImageURLInput { /** * Contains either an image URL or a data URL for a base64 encoded image. */ image_url: ModerationImageURLInput.ImageURL; /** * Always `image_url`. */ type: 'image_url'; } export declare namespace ModerationImageURLInput { /** * Contains either an image URL or a data URL for a base64 encoded image. */ interface ImageURL { /** * Either a URL of the image or the base64 encoded image data. */ url: string; } } export type ModerationModel = 'omni-moderation-latest' | 'omni-moderation-2024-09-26' | 'text-moderation-latest' | 'text-moderation-stable'; /** * An object describing an image to classify. */ export type ModerationMultiModalInput = ModerationImageURLInput | ModerationTextInput; /** * An object describing text to classify. */ export interface ModerationTextInput { /** * A string of text to classify. */ text: string; /** * Always `text`. */ type: 'text'; } /** * Represents if a given text input is potentially harmful. */ export interface ModerationCreateResponse { /** * The unique identifier for the moderation request. */ id: string; /** * The model used to generate the moderation results. */ model: string; /** * A list of moderation objects. */ results: Array<Moderation>; } export interface ModerationCreateParams { /** * Input (or inputs) to classify. Can be a single string, an array of strings, or * an array of multi-modal input objects similar to other models. */ input: string | Array<string> | Array<ModerationMultiModalInput>; /** * The content moderation model you would like to use. Learn more in * [the moderation guide](https://platform.openai.com/docs/guides/moderation), and * learn about available models * [here](https://platform.openai.com/docs/models#moderation). */ model?: (string & {}) | ModerationModel; } export declare namespace Moderations { export { type Moderation as Moderation, type ModerationImageURLInput as ModerationImageURLInput, type ModerationModel as ModerationModel, type ModerationMultiModalInput as ModerationMultiModalInput, type ModerationTextInput as ModerationTextInput, type ModerationCreateResponse as ModerationCreateResponse, type ModerationCreateParams as ModerationCreateParams, }; } //# sourceMappingURL=moderations.d.mts.map
Save
cmd:
run