-
Notifications
You must be signed in to change notification settings - Fork 901
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] Getting unsupported operand type(s) for +: 'dict' and 'dict' when running chat-with-wikipedia flow #3834
Comments
I also tried setting the tracing to |
Looks like I had the same, or at least a similar, issue. See #3850 |
it seems that same issue. command : .venv\Scripts\python.exe -m promptflow._cli._pf.entry flow test --flow c:\Users\leepete\Documents\3.AI-Data\Development\1.2AOAIFeatures\jake-promptflow\flows\semantic_kernel_agent_qna --user-agent "prompt-flow-extension/1.20.2 (win32; x64) VSCode/1.96.0" |
Earlier I used get this as warning, now it changed to error. Any fixes?? |
# Description In the latest version of OpenAI some keys have tokens that are not ints. This is causing TypeErrors like `TypeError: unsupported operand type(s) for +: 'int' and 'dict'` This aims to handle None types and Dicts better in tracing. Should resolve bug #3834 # All Promptflow Contribution checklist: - [X] **The pull request does not introduce [breaking changes].** - [X] **CHANGELOG is updated for new features, bug fixes or other significant changes.** - [X] **I have read the [contribution guidelines](https://github.com/microsoft/promptflow/blob/main/CONTRIBUTING.md).** - [X] **I confirm that all new dependencies are compatible with the MIT license.** - [X] **Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: [suggested workflow](../CONTRIBUTING.md#suggested-workflow).** ## General Guidelines and Best Practices - [X] Title of the pull request is clear and informative. - [X] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). ### Testing Guidelines - [X] Pull request includes test coverage for the included changes.
{ Python 3.10.15 Error: |
in environment_variables:
PF_DISABLE_TRACING: true
environment:
python_requirements_txt: requirements.txt |
That gets it to run but I do need the tracing |
I dunno any other fix and this bug exists for months |
I worked it around by not using tracing on deployed endpoints I added additional loggers in python files |
https://microsoft.github.io/promptflow/reference/changelog/promptflow-tracing.html shows that this issue was fixed in Where is this release available? |
Use the below code in Managed Online Deployment Yaml to disable tracing in v1.16.2 Promptflow for quick fix.
|
I'm using gpt-4o, also sees this issue. It happens when I am running multiple "Python" Promptflow block each with AsyncAzureOpenai client calling the chat completion API. Suspect it is some conflict between Promptflow Tracing and the internal thread pooling handling when gathering multiple OpenAI async calls at the same time. Disabling Tracing in environment_variables:
PF_DISABLE_TRACING: true |
Describe the bug
When running
chat-with-wikipedia
flow, I'm encountering the following error:How To Reproduce the bug
Steps to reproduce the behavior, how frequent can you experience the bug:
Open in GitHub Codespaces
option to use the pre-built environmentexamples/flows/chat/chat-with-wikipedia
flow, usingRun it with standard mode
option/usr/local/bin/python3 -m promptflow._cli._pf.entry flow test --flow /workspaces/promptflow/examples/flows/chat/chat-with-wikipedia --user-agent "prompt-flow-extension/1.20.2 (linux; x64) VSCode/1.94.2"
Expected behavior
I am expecting the flow to run without any errors
Screenshots
I'm attaching two screenshots to show the error
Running Information(please complete the following information):
pf -v
: [e.g. 0.0.102309906]Debian GNU/Linux 11 (bullseye)
python --version
:Python 3.9.20
Additional context
This is my first time using GitHub Codespaces as well as Prompt flow, so if there's some additional initialization/config that I had to run, please let me know
The text was updated successfully, but these errors were encountered: