-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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]: Message role always = assistant #5621
Labels
bug
Something isn't working
Comments
This is not a bug. The role of the llm response message is always If you see a counterexample, please share it @yiyangnlp |
If you do:
The role of msg is always "assistant" Is this expected? |
BTW, this makes Bedrock not work with Message. I had to use Dict instead of Message |
Oh! i see what you mean - you're trying to use the Message object yourself |
krrishdholakia
added a commit
that referenced
this issue
Sep 10, 2024
krrishdholakia
added a commit
that referenced
this issue
Sep 11, 2024
* fix(cost_calculator.py): move to debug for noisy warning message on cost calculation error Fixes #5610 * fix(databricks/cost_calculator.py): Handles model name issues for databricks models * fix(main.py): fix stream chunk builder for multiple tool calls Fixes #5591 * fix: correctly set user_alias when passed in Fixes #5612 * fix(types/utils.py): allow passing role for message object #5621 * fix(litellm_logging.py): Fix langfuse logging across multiple projects Fixes issue where langfuse logger was re-using the old logging object * feat(proxy/_types.py): support adding key-based tags for tag-based routing Enable tag based routing at key-level * fix(proxy/_types.py): fix inheritance * test(test_key_generate_prisma.py): fix test * test: fix test * fix(litellm_logging.py): return used callback object
I now ran into this error that is related:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
This line of code:
litellm/litellm/types/utils.py
Line 328 in b1ecfe0
Should be "role": role
Relevant log output
No response
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: