Skip to content

Conversation

@peterj
Copy link
Collaborator

@peterj peterj commented Nov 20, 2025

This addresses #1112 , but it doesn't fix it since the fix is to use a model that supports function calling. However, we'll now show a message if the model doesn't support function calling.

Copilot AI review requested due to automatic review settings November 20, 2025 00:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds improved error messaging to help users understand when their model doesn't support function calling, addressing issue #1112. When certain error patterns are detected (JSONDecodeError, unterminated strings, or API connection errors), the system now provides a user-friendly message explaining the problem and suggesting solutions.

  • Detects function calling compatibility errors through pattern matching in exception messages
  • Replaces cryptic error messages with actionable guidance for users
  • Maintains backward compatibility by only replacing messages when specific patterns are detected

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

EItanya
EItanya previously approved these changes Nov 24, 2025
Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
@EItanya EItanya merged commit b2c6f6c into main Nov 25, 2025
16 checks passed
@EItanya EItanya deleted the peterj/funccallmsgh branch November 25, 2025 15:51
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