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

Update route.ts #78

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Update route.ts #78

wants to merge 2 commits into from

Conversation

zsinba
Copy link

@zsinba zsinba commented Jan 20, 2024

https://platform.openai.com/docs/guides/vision
The official documentation has been updated. The original port failed.

https://platform.openai.com/docs/guides/vision
The official documentation has been updated. The original port failed.
],
};

let json = null;
try {
const resp = await fetch("https://api.openai.com/v1/chat/completions", {
const resp = await fetch(`${process.env.OPENAI_BASE_URL}/v1/chat/completions`, {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change in the env is missing otherwise it will not work

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

Successfully merging this pull request may close these issues.

2 participants