Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support openai? #12

Open
rossman22590 opened this issue Jun 16, 2023 · 2 comments
Open

support openai? #12

rossman22590 opened this issue Jun 16, 2023 · 2 comments

Comments

@rossman22590
Copy link

possabile?

@rbt-c
Copy link

rbt-c commented Jul 10, 2023

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

@lukataylo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants