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

fix: only us function calling for supported models #27

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

manucorporat
Copy link
Contributor

No description provided.

@steve8708
Copy link
Contributor

boom this is great

@steve8708 steve8708 merged commit 866f27a into main Jun 11, 2024
2 checks passed
@@ -59,7 +77,7 @@ export const getFileSuggestion = async function (
`,
};
const { MODEL: model } = await getConfig();
if (useOllama(model)) {
if (useOllama(model) || !supportsFunctionCalling(model)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we even need useOllama() anymore with this?

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.

3 participants