bisheng-langchain 0.1.9.2__py3-none-any.whl → 0.1.9.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bisheng_langchain/chat_models/host_llm.py +5 -2
- {bisheng_langchain-0.1.9.2.dist-info → bisheng_langchain-0.1.9.4.dist-info}/METADATA +1 -1
- {bisheng_langchain-0.1.9.2.dist-info → bisheng_langchain-0.1.9.4.dist-info}/RECORD +5 -5
- {bisheng_langchain-0.1.9.2.dist-info → bisheng_langchain-0.1.9.4.dist-info}/WHEEL +0 -0
- {bisheng_langchain-0.1.9.2.dist-info → bisheng_langchain-0.1.9.4.dist-info}/top_level.txt +0 -0
@@ -187,8 +187,11 @@ class BaseHostChatLLM(BaseChatModel):
|
|
187
187
|
|
188
188
|
url = f'{self.host_base_url}/{self.model_name}/infer'
|
189
189
|
resp = self.client(url=url, json=params).json()
|
190
|
-
|
191
|
-
|
190
|
+
|
191
|
+
if not resp.get('choices', []):
|
192
|
+
logger.error(f'host_llm_response response={resp}')
|
193
|
+
raise ValueError('empty choices in llm chat result')
|
194
|
+
|
192
195
|
resp['usage'] = {}
|
193
196
|
return resp
|
194
197
|
|
@@ -6,7 +6,7 @@ bisheng_langchain/chains/combine_documents/__init__.py,sha256=47DEQpj8HBSa-_TImW
|
|
6
6
|
bisheng_langchain/chains/combine_documents/stuff.py,sha256=z_E_wfhJrAYWcNVRPomPm5fGRDI3hqoC52wcMzgzxVA,2369
|
7
7
|
bisheng_langchain/chains/question_answering/__init__.py,sha256=RWbSgTQ0IqZhrXkhaJUKzEXurA9NJE7_6P0zLy0IBjs,8636
|
8
8
|
bisheng_langchain/chat_models/__init__.py,sha256=FBNhc-zwFtPmWdNlt0QgzgOx2hVT-He1yOzgKZEBYQE,463
|
9
|
-
bisheng_langchain/chat_models/host_llm.py,sha256=
|
9
|
+
bisheng_langchain/chat_models/host_llm.py,sha256=fKUU2BEcjrVMcLXZazBOf28xjxXDFBRFPPxA0_M2KZM,17020
|
10
10
|
bisheng_langchain/chat_models/minimax.py,sha256=VFq1U4Ax1ZPFrsxzxilRE6NXvUH0HEoK1vDq5kXADTU,13963
|
11
11
|
bisheng_langchain/chat_models/proxy_llm.py,sha256=oIH8sGZTK4bklRaSwvIcPCPtAlPdhxSBZqfp7cNmYWo,16463
|
12
12
|
bisheng_langchain/chat_models/wenxin.py,sha256=GRhFFqToVpYwbHz9NQrH4lvVlOQ_9rtQEl6uikgNH_w,13793
|
@@ -43,7 +43,7 @@ bisheng_langchain/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
43
43
|
bisheng_langchain/utils/requests.py,sha256=6oLXOjJql-tQ32lR3fwS5XI55QQl461mey4g4WWDXhw,8353
|
44
44
|
bisheng_langchain/vectorstores/__init__.py,sha256=K3xQouSGl05Q0ehFCKZafip-35NzCrv8SCANvfxDpKE,96
|
45
45
|
bisheng_langchain/vectorstores/elastic_keywords_search.py,sha256=UU3yJoSSH-prBJtoWQR8dYQzrSOLSvVBRdU45QtE7KA,11648
|
46
|
-
bisheng_langchain-0.1.9.
|
47
|
-
bisheng_langchain-0.1.9.
|
48
|
-
bisheng_langchain-0.1.9.
|
49
|
-
bisheng_langchain-0.1.9.
|
46
|
+
bisheng_langchain-0.1.9.4.dist-info/METADATA,sha256=NmeboMqeQSejJHN7R64exMxeCw0zXFMfsF7WcKiWffA,2129
|
47
|
+
bisheng_langchain-0.1.9.4.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
48
|
+
bisheng_langchain-0.1.9.4.dist-info/top_level.txt,sha256=Z6pPNyCo4ihyr9iqGQbH8sJiC4dAUwA_mAyGRQB5_Fs,18
|
49
|
+
bisheng_langchain-0.1.9.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|