WilliamChen-luckbob

Results 9 comments of WilliamChen-luckbob

same issue in 24.2.5 I have tried all the modes of drawio and also switched the theme mode of my windows. The output images are in such an unfriendly form,...

> 已经解决了,运行openai_api.py之后,采用langchain的ChatOpenAI调用: `llm_chatglm2 = ChatOpenAI( openai_api_base="http://localhost:8000/v1", openai_api_key="none", streaming=True, temperature=0.7 )` 能让Chatglm无缝对接langchain的ChatModel,可以配合ChatPromptTemplate一起使用。 > > language model直接from langchain.llms import ChatGLM即可 弱弱的问一下,这个的实现方式就是url和出参入参和openai一致,然后只是openai_api_base指向自己部署的chatglm服务,实际上通过http通信实现的吧?

可以的,就是要自己改一改,我们目前是集成的Zuul网关,也是基于此自己改的轮子,原生的开源代码没有直接拆箱即用的。如果你要degrade, system两个维度的流控功能,如图所示,你还得自己参考流控的demo对应的修改控制台代码。原生只有一个流控demo。 ![image](https://user-images.githubusercontent.com/58684828/202612002-7a21da49-c033-495c-ad32-f197c180cce5.png)

主要是去dashboard模块中对应按需修改controller包下中的DegradeController和SystemController,然后还有自定义一下rule包,添加你对应的规则加载publisher和provider,照着demo抄就行了,然后再在客户端这边对应做一套Nacos的监听机制,控制台和客户端就可以实现实时通信了。

> The Request parser is unlikely to be removed, so I would continue to use it - I do in my projects. The warning was put in when the library...

By throwing : com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token There is no way to input complex JSON string which has more than 1 nested level Jackson...

> Do you mean, input in the form of JOSN string, and then we automatically parse it into the form of K-V? @CalvinKirs Nope, sorry that English is not my...

I have figured it out by creating my own runId and then using this runId as key to put the complex JSON string parameters in redis. And then pass this...