unit-mesh / auto-dev

🧙‍AutoDev: The AI-powered coding wizard(AI 驱动编程助手) with multilingual support 🌐, auto code generation 🏗️, and a helpful bug-slaying assistant 🐞! Customizable prompts 🎨 and a magic Auto Dev/Testing/Document/Agent feature 🧪 included! 🚀
https://ide.unitmesh.cc/
Mozilla Public License 2.0
2.72k stars 314 forks source link

Can I Change timeout of the LLM? #106

Closed jason-webcomm closed 5 months ago

jason-webcomm commented 5 months ago

Can I Change timeout of the LLM? The default timeout is 60. But my server is slow to generate code review & document. Is it possible to change the timeout?

phodal commented 5 months ago

the Default timeout is 600s:

https://github.com/unit-mesh/auto-dev/blob/91acc81947ca73ab0cb5c87cd8d0acc3383a5138/src/main/kotlin/cc/unitmesh/devti/llms/LLMProvider.kt#L9-L29

https://github.com/unit-mesh/auto-dev/blob/91acc81947ca73ab0cb5c87cd8d0acc3383a5138/src/main/kotlin/cc/unitmesh/devti/llms/custom/CustomLLMProvider.kt#L30

current you cannot config for this, maybe can try to PR.