2da36c7667Optimizing the code, requests. exceptions. ConnectionError should be written in the post request instead of reading from the iterator. If the post request is unsuccessful, it will not be executed to the iterator step.
kainstan
2023-06-06 16:10:54 +08:00
0e1de5a184Optimize the code to make it more readable, catch other exceptions, and avoid response contentless reading exceptions
kainstan
2023-06-06 10:57:52 +08:00
344579fa79Every time the function is called, if the list parameter is not explicitly passed, the same default list will be used. This leads to the sharing of the same list object between function calls, resulting in a cumulative effect.
kainstan
2023-06-06 10:31:28 +08:00
6d7ee17dbdAdd zh_ Langchain into dependent files
kainstan
2023-06-06 09:37:04 +08:00
0a83ba91e9Add langchain & For safety reasons, try not to use compilation and installation packages from unknown sources or make changes/ Docs/graphic 3.32.2 py3 none any. whl is graphic>=3.33.1
kainstan
2023-06-06 09:22:50 +08:00
ffd7363c4cneed more detailed and comprehensive exception information, it is usually recommended to use the exception object e. Stack trace information can be used as a supplement to understand the context and call relationship of the exception occurrence
kainstan
2023-06-06 09:13:13 +08:00
b538d31b13Str is a built-in type and cannot be used directly as a variable name
kainstan
2023-06-06 09:07:53 +08:00
543a8b98e9Local variable 'result' might be referenced before assignment, add else result
kainstan
2023-06-06 08:41:55 +08:00
55c6e9c59aSpecify the proxy input type and use the get method to obtain dictionary data to avoid exceptions. Change the timeout to 30 seconds to avoid failures caused by network fluctuations. Obtain abnormal parameters and display them to the front-end for easy troubleshooting
kainstan
2023-06-06 08:37:37 +08:00
0fc8f740d0Fix PEP 8: E302 expected 2 blank lines, found 1 & PEP 8: E303 too many blank lines (4)
kainstan
2023-06-06 08:29:26 +08:00
a75ae327e7Make it comply with the PEP8 standard and improve PEP 8: E401 multiple imports on one line and PEP 8: E701 multiple statements on one line (colon)
kainstan
2023-06-06 08:23:56 +08:00