Skip to content

fix: GPT-4 used with wrong API endpoint#201

Open
saurabhhhcodes wants to merge 3 commits into
AditixAnand:mainfrom
saurabhhhcodes:fix/openai-wrong-endpoint
Open

fix: GPT-4 used with wrong API endpoint#201
saurabhhhcodes wants to merge 3 commits into
AditixAnand:mainfrom
saurabhhhcodes:fix/openai-wrong-endpoint

Conversation

@saurabhhhcodes

Copy link
Copy Markdown

GPT-4 and all modern GPT models only work with /v1/chat/completions using the messages array format, not the legacy /v1/completions endpoint with prompt. This API call always failed at runtime.

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.

1 participant