0ptim / JellyChat

🪼 AI chatbot for the DeFiChain ecosystem.
https://defichainwiki.com/jellychat
MIT License
11 stars 2 forks source link

Improve early stopping method #74

Closed 0ptim closed 1 year ago

0ptim commented 1 year ago

Use the early stopping method generate.

https://python.langchain.com/docs/modules/agents/agent_types/openai_multi_functions_agent#configuring-max-iteration-behavior

max_iterations=2,
early_stopping_method="generate",