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

[Bug] Activate function calling on OpenAI and Anthropic models available on OpenRouter #4953

Closed
nils010485 opened this issue Dec 10, 2024 · 4 comments
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@nils010485
Copy link

nils010485 commented Dec 10, 2024

Edit: Change feature request to bug.

🥰 Feature Description

Hello,
Currently, when using OpenAI or Anthropic directly as a provider, the models like

  • ChatGPT-4o,
  • ChatGPT-4o-mini,
  • Claude 3.5 Haiku
    Are marked as compatible with function calls.

However, when accessing these same models through the OpenRouter.ai provider, they are not marked as supporting function calls. This discrepancy means that while these models appear function-call compatible on their native platforms, they seem to lose this designation when routed through OpenRouter.ai.

Have a nice day,

🧐 Proposed Solution

Mark them as function call compatible (knowing that sonnet3.5 does not have this issue and is marked as function-compatible on both platforms).

📝 Additional Information

No response

@nils010485 nils010485 added the 🌠 Feature Request New feature or request | 特性与建议 label Dec 10, 2024
@lobehubbot
Copy link
Member

👀 @nils010485

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@nils010485
Copy link
Author

Update: Same issue on Gemini Flash 1.5 (function calling is working on Google as a provider but not on OpenRouter).
A possible alternative would be to let us manually decide which model is compatible with the functions (this prevents being stuck in cases like this...)

@nils010485 nils010485 changed the title [Request] Activate function calling on OpenAI and Anthropic models available on OpenRouter [Bug] Activate function calling on OpenAI and Anthropic models available on OpenRouter Dec 26, 2024
@nils010485
Copy link
Author

Fixed in the last version thanks !

@lobehubbot
Copy link
Member

@nils010485

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

No branches or pull requests

2 participants