Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: xinference-chat-stream-response (#991)
takatostbd3a9b2f8d25
diff --git a/api/core/third_party/langchain/llms/xinference_llm.py b/api/core/third_party/langchain/llms/xinference_llm.pyindex dda3659d8eb..1a01ee55b40 100644--- a/api/core/third_party/langchain/llms/xinference_llm.py+++ b/api/core/third_party/langchain/llms/xinference_llm.py@@ -123,7 +123,12 @@ class XinferenceLLM(Xinference):if choices:choice = choices[0]if isinstance(choice, dict):- token = choice.get("text", "")+ if 'text' in choice:+ token = choice.get("text", "")+ elif 'delta' in choice and 'content' in choice['delta']:+ token = choice.get('delta').get('content')+ else:+ continuelog_probs = choice.get("logprobs")if run_manager:run_manager.on_llm_new_token(