You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am based on https://python.langchain.com/docs/modules/model_io/chat/custom_chat_model/
The example rewrites the _call method
Modified model=ChatOpenAI (temperature=0) to local llm model=MyLLM (n=5)
According to the official graph example, it can run normally after writing, but
1、tool cannot be called up
2、Answering messages is also a HumanMessage, not an AiMessage
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am based on https://python.langchain.com/docs/modules/model_io/chat/custom_chat_model/
The example rewrites the _call method
Modified
model=ChatOpenAI (temperature=0)
to local llmmodel=MyLLM (n=5)
According to the official graph example, it can run normally after writing, but
1、tool cannot be called up
2、Answering messages is also a HumanMessage, not an AiMessage
Running results:
smith results:
https://smith.langchain.com/public/215b0a62-a1c2-4b0e-950f-e6c484335ebb/r
请问是否需要修改本地llm返回格式
能否给出一个本地127.0.0.1:xxx/api 的demo
Beta Was this translation helpful? Give feedback.
All reactions