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

/completions is marked as Legacy and not every llm provider support it #3971

Open
2 tasks done
chenyuanrun opened this issue Feb 5, 2025 · 0 comments
Open
2 tasks done
Assignees
Labels
area:configuration Relates to configuration options kind:enhancement Indicates a new feature request, imrovement, or extension "needs-triage"

Comments

@chenyuanrun
Copy link

Validations

  • I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • I'm not able to find an open issue that requests the same enhancement

Problem

/completions is marked as Legacy and not every llm provider support it, as I known, volcengine(from bytedance), vultr and alibaba cloud do not support /completions endpoint.

https://platform.openai.com/docs/api-reference/completions

Solution

Use /chat/completions for completions: https://platform.openai.com/docs/api-reference/chat/create

Change all completionNonStream/completionStream to chatCompletionNonStream/chatCompletionStream, or just route completionNonStream/completionStream to chatCompletionNonStream/chatCompletionStream in packages/openai-adapters/src/apis/OpenAI.ts

@dosubot dosubot bot added area:configuration Relates to configuration options kind:enhancement Indicates a new feature request, imrovement, or extension labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:configuration Relates to configuration options kind:enhancement Indicates a new feature request, imrovement, or extension "needs-triage"
Projects
None yet
Development

No branches or pull requests

2 participants