ObservedObserver / viz-gpt

Make contextual data visualization with Chat Interface from tabular datasets. AI data visualization.

Home Page:https://vizgpt.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support openai?

rossman22590 opened this issue · comments

possabile?

commented

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)
}

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