You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried other models listed here [qwen-max, qwen-turbo, qwen-plus] which are all working fine
I debugged and stepped into the source code and found that this line should be the root cause as for "qwen-long" the api returns "choices" instead of "text" which results in a Nonetype
This issue could potentially be resolved by checking both resp["output"]["text"] and resp["output"]["choices"] for the response. However, it’s unclear if this inconsistency stems from the Tongyi server. The module’s maintainer might be able to provide clarification.
System Info
System Information
------------------
> OS: Darwin
> OS Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000
> Python Version: 3.12.5 (main, Aug 14 2024, 04:32:18) [Clang 18.1.8 ]
Package Information
-------------------
> langchain_core: 0.3.28
> langchain: 0.3.13
> langchain_community: 0.3.13
> langsmith: 0.2.6
> langchain_text_splitters: 0.3.4
Optional packages not installed
-------------------------------
> langserve
Other Dependencies
------------------
> aiohttp: 3.11.11
> async-timeout: Installed. No version info available.
> dataclasses-json: 0.6.7
> httpx: 0.28.1
> httpx-sse: 0.4.0
> jsonpatch: 1.33
> langsmith-pyo3: Installed. No version info available.
> numpy: 2.2.1
> orjson: 3.10.12
> packaging: 24.2
> pydantic: 2.10.4
> pydantic-settings: 2.7.0
> PyYAML: 6.0.2
> requests: 2.32.3
> requests-toolbelt: 1.0.0
> SQLAlchemy: 2.0.36
> tenacity: 9.0.0
> typing-extensions: 4.12.2
> zstandard: Installed. No version info available.
The text was updated successfully, but these errors were encountered:
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I tried other models listed here [qwen-max, qwen-turbo, qwen-plus] which are all working fine
I debugged and stepped into the source code and found that this line should be the root cause as for "qwen-long" the api returns "choices" instead of "text" which results in a Nonetype
you can debug and replicate it like
This issue could potentially be resolved by checking both resp["output"]["text"] and resp["output"]["choices"] for the response. However, it’s unclear if this inconsistency stems from the Tongyi server. The module’s maintainer might be able to provide clarification.
System Info
The text was updated successfully, but these errors were encountered: