viz-gpt icon indicating copy to clipboard operation
viz-gpt copied to clipboard

support openai?

Open rossman22590 opened this issue 2 years ago • 2 comments

possabile?

rossman22590 avatar Jun 16 '23 20:06 rossman22590

I believe so. refer to the code snippet in @/api/vizchat.ts. Setup OPENAI_KEY instead of those for AZURE_OPENAI in .env file

async function getCompletion(messages): Promise<IResponseData> {
    if (preferAzureOpenAI()) {
        return getAzureOpenAICompletion(messages);
    }
    return getOpenAICompletion(messages)
}

rbt-c avatar Jul 10 '23 14:07 rbt-c

Did this work for anyone here? I tried doing so but still throws an error

lukataylo avatar Jul 24 '23 16:07 lukataylo