• This function takes arguments for an openai llm chat completion (either structured or unstructured) and and passes them to the Tidyscripts openai endpoints for completion If response_format is included in the arugments then the structured_completion beta endpoint is used Otherwise the standard chat endpoint is used

    Parameters

    • args: any

      Args to pass to openai chat endpoint

    Returns Promise<any>