Closed dyb5784 closed 1 year ago
IYH Fixed it by adding as suggested in previosu timeout issue Models(default=Ollama((.., timeout=3600) to model instantiation
I'd only added the timeout option to the GGML class, so the timeout=3600 here would be ignored...maybe it was coincidence that Ollama just didn't timeout the second time?
Regardless, I will add the timeout option to Ollama as well in the next update
IYH Thank you for your quick and informative reply. Indeed it must have been a coincidence because I was not able to vitiate the timeouts when I tried later on again once or twice (also bc it time out much before an hour) .. Headscratcher resolved :D Thanks for planning to add to ollama, appreciate!
Of course! Update is now ready, example usage: Ollama(timeout=3600, model="codellama", ...)
(this would give an hour timeout, 60 seconds * 60 minutes = 3600. You'll be able to do this on any of the LLM classes now as well if you end up switching
Works thank you v much!
Describe the bug TimeoutError() using local llama2-uncensored To Reproduce Steps to reproduce the behavior:
Environment
Logs TimeoutError() View Traceback Traceback (most recent call last):
File "continuedev\src\continuedev\core\autopilot.py", line 368, in _run_singular_step observation = await step(self.continue_sdk)
File "continuedev\src\continuedev\core\main.py", line 359, in call return await self.run(sdk)
File "continuedev\src\continuedev\plugins\steps\chat.py", line 98, in run async for chunk in generator:
File "continuedev\src\continuedev\libs\llm\ollama.py", line 105, in _stream_chat async with self._client_session.post(
File "aiohttp\client.py", line 1141, in aenter
File "aiohttp\client.py", line 560, in _request
File "aiohttp\client_reqrep.py", line 894, in start
File "aiohttp\helpers.py", line 721, in exit
asyncio.exceptions.TimeoutError
To get the Continue server logs:
continue.log
and copy the last 100 lines or soTo get the VS Code console logs:
If the problem is related to LLM prompting:
continue_logs.txt
file that opensScreenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.