bisheng-langchain 0.2.0__py3-none-any.whl → 0.2.0rc0__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.
@@ -197,7 +197,11 @@ class ProxyChatLLM(BaseChatModel):
197
197
  response = self.client.post(self.elemai_base_url, json=params)
198
198
  return response.json()
199
199
 
200
- return _completion_with_retry(**kwargs)
200
+ rsp_dict = _completion_with_retry(**kwargs)
201
+ if 200 != rsp_dict.get('status_code'):
202
+ logger.error(f"proxy_llm_error resp={rsp_dict}")
203
+ raise Exception(rsp_dict)
204
+ return rsp_dict
201
205
 
202
206
  def _combine_llm_outputs(self, llm_outputs: List[Optional[dict]]) -> dict:
203
207
  overall_token_usage: dict = {}
File without changes
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bisheng-langchain
3
- Version: 0.2.0
3
+ Version: 0.2.0rc0
4
4
  Summary: bisheng langchain modules
5
5
  Home-page: https://github.com/dataelement/bisheng
6
6
  Author: DataElem
7
7
  Author-email: contact@dataelem.com
8
8
  License: Apache 2.0
9
- Platform: UNKNOWN
10
9
  Classifier: Programming Language :: Python :: 3
11
10
  Classifier: Programming Language :: Python :: 3.6
12
11
  Classifier: Programming Language :: Python :: 3.7
@@ -20,8 +19,8 @@ Requires-Dist: langchain
20
19
  Requires-Dist: zhipuai
21
20
  Requires-Dist: websocket-client
22
21
  Requires-Dist: elasticsearch
23
- Requires-Dist: opencv-python ==4.5.5.64
24
- Requires-Dist: Pillow ==9.5.0
22
+ Requires-Dist: opencv-python (==4.5.5.64)
23
+ Requires-Dist: Pillow (==9.5.0)
25
24
  Requires-Dist: bisheng-pyautogen
26
25
 
27
26
  ## What is bisheng-langchain?
@@ -65,5 +64,3 @@ check out [bisheng-langchain Dev Docs](https://dataelem.feishu.cn/wiki/Xaq8wKQjk
65
64
  bisheng-langchain adopts dependencies from the following:
66
65
 
67
66
  - Thanks to [langchain](https://github.com/langchain-ai/langchain) for the main framework.
68
-
69
-
@@ -18,7 +18,7 @@ bisheng_langchain/chains/router/rule_router.py,sha256=QWLKqJ9ZCQb9E3oh6pd0C6YZRh
18
18
  bisheng_langchain/chat_models/__init__.py,sha256=FBNhc-zwFtPmWdNlt0QgzgOx2hVT-He1yOzgKZEBYQE,463
19
19
  bisheng_langchain/chat_models/host_llm.py,sha256=UV-u3XaIQsw1Qz8XCJuADxWd7m8Xpey5fQdnOtEpIgo,16993
20
20
  bisheng_langchain/chat_models/minimax.py,sha256=VFq1U4Ax1ZPFrsxzxilRE6NXvUH0HEoK1vDq5kXADTU,13963
21
- bisheng_langchain/chat_models/proxy_llm.py,sha256=ZMPImsk5gJWCxBYf131Ho4vln-7NiBeFncd2wMR4X7A,16463
21
+ bisheng_langchain/chat_models/proxy_llm.py,sha256=JdxQq7QJjHwmuZ7QsTaZawkWzDESZohKstiwMoqrPDY,16637
22
22
  bisheng_langchain/chat_models/wenxin.py,sha256=GRhFFqToVpYwbHz9NQrH4lvVlOQ_9rtQEl6uikgNH_w,13793
23
23
  bisheng_langchain/chat_models/xunfeiai.py,sha256=GP30oqpbb8UAxrkJ2l0anDq67Q40CUNulg9nu7PtQZc,14019
24
24
  bisheng_langchain/chat_models/zhipuai.py,sha256=v29bsAZoe_5KR2LQVoKE7429U4Qc3FqcZIgAm8p2aX4,14941
@@ -57,8 +57,9 @@ bisheng_langchain/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
57
57
  bisheng_langchain/utils/requests.py,sha256=abZvV6-p3cyJpFtFzcvzCUGRYh17Bjdy2BRElG7zPL4,8397
58
58
  bisheng_langchain/vectorstores/__init__.py,sha256=3xXjqJj_DwgQcQUC1MpPrYYhSKeg4yk67OtzmVAjco0,176
59
59
  bisheng_langchain/vectorstores/elastic_keywords_search.py,sha256=UU3yJoSSH-prBJtoWQR8dYQzrSOLSvVBRdU45QtE7KA,11648
60
+ bisheng_langchain/vectorstores/milvus.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
61
  bisheng_langchain/vectorstores/retriever.py,sha256=wq__1xRN3PfAgU8Kh8Am8iEsUkkVuJnhWTY6GFDAADg,4365
61
- bisheng_langchain-0.2.0.dist-info/METADATA,sha256=hU8h8_h1A5ryJLrYbXxkDC-A7eh8Zo4ZbaOWMdj3DbY,2138
62
- bisheng_langchain-0.2.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
63
- bisheng_langchain-0.2.0.dist-info/top_level.txt,sha256=Z6pPNyCo4ihyr9iqGQbH8sJiC4dAUwA_mAyGRQB5_Fs,18
64
- bisheng_langchain-0.2.0.dist-info/RECORD,,
62
+ bisheng_langchain-0.2.0rc0.dist-info/METADATA,sha256=6KiZWWBaZ9hv4pkDlbXM-62q5gA65O3onYng4EHl4Ek,2125
63
+ bisheng_langchain-0.2.0rc0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
64
+ bisheng_langchain-0.2.0rc0.dist-info/top_level.txt,sha256=Z6pPNyCo4ihyr9iqGQbH8sJiC4dAUwA_mAyGRQB5_Fs,18
65
+ bisheng_langchain-0.2.0rc0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.38.4)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5