Function converse

  • Sends a request to the ChatGPT API to get a response body.

    Returns

    The response body from the ChatGPT API

    Parameters

    • token: string

      The ChatGPT token

    • content: string

      The content of the message

    • Optional conversation_id: string

      The conversation id (optional)

    • Optional parent_id: string

      The parent id (optional)

    • backend: string = CHATGPT_BACKEND

      The ChatGPT backend (optional)

    • timeout: number = CHATGPT_TIMEOUT

      The timeout (optional)

    Returns Promise<NodeJS.ReadableStream>

Generated using TypeDoc