Function getTokensFromResponse

  • Parse the first text choice from an OpenAI API response. It may be stored on result.choices[0].text or now, result.choices[0].message for Chat.

    Parameters

    • response: any

    Returns string

Generated using TypeDoc