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

🐛 set supportsCompletions based on useLegacyCompletionsEndpoint model setting #1151

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

bufferoverflow
Copy link
Contributor

Closes #1132

Description

For self-hosted OpenAI compatible endpoints /v1/completions is used instead of /v1/chat/completions. With this PR the setting useLegacyCompletionsEndpoint is considered as well so people can control the endpoint to be used.

Checklist

  • The base branch of this PR is preview, rather than main

@sestinj
Copy link
Contributor

sestinj commented Apr 18, 2024

@bufferoverflow I'm going to make the one change that we need to default to setting this value to undefined at the top of the OpenAI class, but otherwise this is a nice clean solution

@sestinj sestinj merged commit 78dd9af into continuedev:preview Apr 18, 2024
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