OoriData / Toolio

AI API implementation for Mac which supports tool-calling & other structured LLM response generation (e.g. conform to JSON schema)
88 stars 4 forks source link

Load failed in TypingMind and big-AGI #24

Open vlbosch opened 2 weeks ago

vlbosch commented 2 weeks ago

I tried to run some models with Toolio in server mode. I'm running the server in DEBUG to see all the logs. When prompting a model in both TypingMind and big-AGI, I get "Load failed" instead of the output of the model. However, in the debug logs I can see the model replied or even called a function.

In TypingMind, when turning off streaming, it correctly shows that it's waiting for a response. As soon as the response should come in, it reports the Load Failed error. When I enable streaming, it immediately throws an error: "ERROR: Exception in ASGI application Traceback (most recent call last): File "/opt/homebrew/Caskroom/miniconda/base/envs/toolio/lib/python3.12/site-packages/starlette/responses.py", line 257, in call await wrap(partial(self.listen_for_disconnect, receive)) File "/opt/homebrew/Caskroom/miniconda/base/envs/toolio/lib/python3.12/site-packages/starlette/responses.py", line 253, in wrap await func() File "/opt/homebrew/Caskroom/miniconda/base/envs/toolio/lib/python3.12/site-packages/starlette/responses.py", line 230, in listen_for_disconnect message = await receive() ^^^^^^^^^^^^^^^ File "/opt/homebrew/Caskroom/miniconda/base/envs/toolio/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 534, in receive await self.message_event.wait() File "/opt/homebrew/Caskroom/miniconda/base/envs/toolio/lib/python3.12/asyncio/locks.py", line 212, in wait await fut asyncio.exceptions.CancelledError: Cancelled by cancel scope ba497f530

During handling of the above exception, another exception occurred:

Please let me know if I can do anything to help triage this issue.

vlbosch commented 2 weeks ago

In addition, big-AGI reports the following error: "[Service Issue] Openai: fetch failed - SocketError: other side closed · {"name":"SocketError","code":"UND_ERR_SOCKET","socket":"

uogbuji commented 2 weeks ago

Hi, I'm familiar with neither TypingMind nor big-AGI. Are you able to reproduce this error with a simple cURL, by any chance?

If not, can you provide minimal but complete instructions to reproduce? Need to know what to install (and how, depending on if it's just a simple pip requirement). Then what, in detail, is done to trigger the traceback?

Also, are you using Toolio 0.5.0? Have you ttried installing the main branch? There have been some fixes since the last release.