Open mfeller2000 opened 3 weeks ago
I noticed that there is no langchain-databricks, and that the Databricks model is sourced from langchain_community
, whereas other Chat models have all migrated to their own libraries (e.g. langchain-groq, langchain-huggingface)
Update: This may be an endpoint issue on the Databricks side. After trying a different Databricks endpoint (Llama 3), the stream works fine. But trying with an external model (like GPT-4) will cause the above mentioned error. Invoking works fine though.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I am trying to stream the response from the ChatDatabricks but this simply fails because it cannot find the 'content' key in the chunks. Also, the example code in the documentation does not work.
System Info
langchain==0.2.3 langchain-community==0.2.4 langchain-core==0.2.5 langchain-openai==0.1.8 langchain-text-splitters==0.2.1