Skip to content

Conversation

@davecrunch
Copy link

@davecrunch davecrunch commented Dec 5, 2025

Description

Fixes issue where Deepseek's ToolMessage field does not accept array input. Created workaround by converting array inputs into strings. Adjusted relevant test cases.

Files modified:

libs/partners/deepseek/langchain_deepseek/chatmodels.py
libs/partners/deepseek/tests/unit_tests/test_chat_models.py

Fixes #33965

Used Cursor for assistance

@github-actions github-actions bot added integration Related to a provider partner package integration deepseek fix and removed fix labels Dec 5, 2025
@davecrunch davecrunch marked this pull request as ready for review December 5, 2025 21:56
@davecrunch
Copy link
Author

Hi, I'm running into this issue in the CI where the deepseek api key is not set. I'm not sure where this issue came up, I don't think it's introduced through my commits. Would appreciate some guidance on this, thank you! @mdrxy @ccurme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepseek fix integration Related to a provider partner package integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some models' ToolMessage content fields do not support arrays.

1 participant