support openai?
rossman22590 opened this issue · comments
possabile?
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