Function createModeration

  • Sends a Create Moderation request to the OpenAI API.

    Parameters

    • moderationRequestParams: CreateModerationRequest

      The Create Moderation parameters.

    • options: {
          headers?: Record<string, string>;
          proxy?: { host: string; port?: number | undefined; protocol?: "http" | "https" | undefined; auth?: { username: string; password: string; } | undefined; };
      }

      Options to pass for the HTTP request.

      • Optional headers?: Record<string, string>
      • Optional proxy?: { host: string; port?: number | undefined; protocol?: "http" | "https" | undefined; auth?: { username: string; password: string; } | undefined; }

    Returns Promise<CreateModerationResponse>

    The CreateModerationResponse from the OpenAI API.

Generated using TypeDoc