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] Failed to calculate metrics due to exception: unsupported operand type(s) for +: 'int' and 'dict'. #3910

Open
orasik opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@orasik
Copy link

orasik commented Jan 8, 2025

Describe the bug
Failed to calculate metrics due to exception: unsupported operand type(s) for +: 'int' and 'dict'

This happens when using Azure OpenAI connection in a Python code.

This error is affecting grouping calls in Application Insights in Azure, and we are unable to see the flow of the request.

How To Reproduce the bug

  1. Create a Python code and make sure it uses an OpenAI connection that is defined in the flow.
  2. Make a request to the LLM.
  3. Check logs to see the error.

Expected behavior
No warnings.

Running Information(please complete the following information):

  • Promptflow Package Version using pf -v: 1.17.0
  • Operating System: Mac OS 15.2 (24C101)
  • Python Version using python --version: 3.10.15
@orasik orasik added the bug Something isn't working label Jan 8, 2025
@orasik
Copy link
Author

orasik commented Jan 8, 2025

I have raised a PR #3911

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant