hadadrjt commited on
Commit
5b754a3
·
1 Parent(s): 5d9ca4f

ai: Fix missing libraries needed for error handling.

Browse files

* httpx
* aiohttp

Silence ...not defined in the logs.

Files changed (1) hide show
  1. src/core/server.py +2 -0
src/core/server.py CHANGED
@@ -16,6 +16,8 @@ from src.utils.reasoning import reasoning_tag_open, reasoning_tag_close # Impor
16
  from src.utils.instruction import set_instructions # Import function to generate system instructions based on mode and time
17
  from src.core.transport.httpx import httpx_transport # Import primary HTTP transport method using httpx for streaming
18
  from src.core.transport.aiohttp import aiohttp_transport # Import fallback HTTP transport method using aiohttp
 
 
19
 
20
  # Define the main asynchronous function to communicate with AI server and stream responses
21
  async def jarvis(
 
16
  from src.utils.instruction import set_instructions # Import function to generate system instructions based on mode and time
17
  from src.core.transport.httpx import httpx_transport # Import primary HTTP transport method using httpx for streaming
18
  from src.core.transport.aiohttp import aiohttp_transport # Import fallback HTTP transport method using aiohttp
19
+ import httpx # Import httpx module for exception handling of HTTP status error
20
+ import aiohttp # Import aiohttp module for exception handling of client response error
21
 
22
  # Define the main asynchronous function to communicate with AI server and stream responses
23
  async def jarvis(