-
Notifications
You must be signed in to change notification settings - Fork 3k
add llamastack support #6154
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
base: main
Are you sure you want to change the base?
add llamastack support #6154
Conversation
❌ Deploy Preview for continuedev failed. Why did it fail? →
|
All contributors have signed the CLA ✍️ ✅ |
@@ -71,9 +71,15 @@ export const DeepseekConfigSchema = OpenAIConfigSchema.extend({ | |||
}); | |||
export type DeepseekConfig = z.infer<typeof DeepseekConfigSchema>; | |||
|
|||
export const LlamastackConfigSchema = OpenAIConfigSchema.extend({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type incompatibility in schema inheritance: LlamastackConfigSchema extends OpenAIConfigSchema but tries to override the provider field with 'llamastack' which is not included in the parent schema's provider union. This violates Zod's schema extension rules and will cause type errors. To fix this, either add 'llamastack' to the provider union in OpenAIConfigSchema (lines 40-66) or create a different base schema for Llamastack that doesn't extend OpenAIConfigSchema.
React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)
😱 Found 1 issue. Time to roll up your sleeves! 😱 |
I have read the CLA Document and I hereby sign the CLA |
Description
Add llamastack support to Continue. Most of the functions are just calling the openai compatible endpoints, except the completion endpoint for AutoComplete are customized as openai did not have completion anymore.
Checklist
Screenshots
Tested and passing 7 tests, the failing one is due to model problem.
