Open onoyu1012 opened 4 months ago
I tried to reproduce this issue using the same code as in the example but i was not able to. I am getting fully response without any error.
@onoyu1012 Could you please update langchain_ibm
version and try again run your code?
llm.invoke(query)
output:
IBM(アイ・ビー・エム)は、アメリカ合衆国にある情報技術企業です。1911年に設立され、世界中の多くの国に事業を展開しています。IBMは、コンピューター、ソフトウェア、サービスなどの情報技術関連の製品やサービスを提供しています。彼らは、クラウドコンピューティング、人工知能、データ分析、セキュリティなど、最新のITテクノロジーについて深い知識を持っています。IBMは、企業や政府機関などの客先でも活用されている、高度なIT技術を開発し、提供しています。彼らは、創造的な解決策やイノベーションに貢献することを目指しています。
pip list | grep langchain
langchain 0.1.17
langchain-community 0.0.37
langchain-core 0.1.52
langchain-ibm 0.1.5
python version
Python 3.10.13
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I'm trying to output Japanese by streaming using LangChain and watsonx.ai. I'm hoping that Japanese will be output via streaming. However, the characters are garbled and errors occur. I tried streaming Japanese using Langchain and OpenAI with the following Python script. It was successful.
System Info
"pip freeze | grep langchain"
platform (windows/WSL)
python version