Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
INFO: Started server process [69633]
INFO: Waiting for application startup.
12:03:25 [faigate] INFO Loaded config with 14 providers
12:03:25 [faigate] INFO βœ“ anthropic-haiku β†’ claude-haiku-3-5 (default)
12:03:25 [faigate] INFO βœ“ anthropic-sonnet β†’ claude-sonnet-4-6 (mid)
12:03:25 [faigate] INFO βœ“ anthropic-claude β†’ claude-opus-4-6 (mid)
12:03:25 [faigate] INFO βœ“ blackbox-free β†’ blackboxai/x-ai/grok-code-fast-1 (fallback)
12:03:25 [faigate] INFO βœ“ deepseek-chat β†’ deepseek-chat (default)
12:03:25 [faigate] INFO βœ“ deepseek-reasoner β†’ deepseek-reasoner (reasoning)
12:03:25 [faigate] INFO βœ“ gemini-flash β†’ gemini-3-flash (mid)
12:03:25 [faigate] INFO βœ“ gemini-flash-lite β†’ gemini-3-flash-lite (cheap)
12:03:25 [faigate] INFO βœ“ gemini-pro-high β†’ gemini-3.1-pro (mid)
12:03:25 [faigate] INFO βœ“ gemini-pro-low β†’ gemini-3.1-pro (mid)
12:03:25 [faigate] INFO βœ“ kilocode β†’ z-ai/glm-5:free (fallback)
12:03:25 [faigate] INFO βœ“ openai-gpt4o β†’ gpt-4o (mid)
12:03:25 [faigate] INFO βœ“ openai-images β†’ gpt-image-1 (specialty)
12:03:25 [faigate] INFO βœ“ openrouter-fallback β†’ openrouter/auto (fallback)
ERROR: Traceback (most recent call last):
File "/opt/homebrew/lib/python3.14/site-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/opt/homebrew/Cellar/python@3.14/3.14.3_1/Frameworks/Python.framework/Versions/3.14/lib/python3.14/contextlib.py", line 214, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/andrelange/Documents/repositories/github/faigate/faigate/main.py", line 2252, in lifespan
_metrics.init()
~~~~~~~~~~~~~^^
File "/Users/andrelange/Documents/repositories/github/faigate/faigate/metrics.py", line 121, in init
self._conn = sqlite3.connect(self._db_path, check_same_thread=False)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: unable to open database file

ERROR: Application startup failed. Exiting.
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
INFO: Started server process [72277]
INFO: Waiting for application startup.
12:04:53 [faigate] INFO Loaded config with 14 providers
12:04:53 [faigate] INFO βœ“ anthropic-haiku β†’ claude-haiku-3-5 (default)
12:04:53 [faigate] INFO βœ“ anthropic-sonnet β†’ claude-sonnet-4-6 (mid)
12:04:53 [faigate] INFO βœ“ anthropic-claude β†’ claude-opus-4-6 (mid)
12:04:53 [faigate] INFO βœ“ blackbox-free β†’ blackboxai/x-ai/grok-code-fast-1 (fallback)
12:04:53 [faigate] INFO βœ“ deepseek-chat β†’ deepseek-chat (default)
12:04:53 [faigate] INFO βœ“ deepseek-reasoner β†’ deepseek-reasoner (reasoning)
12:04:53 [faigate] INFO βœ“ gemini-flash β†’ gemini-3-flash (mid)
12:04:53 [faigate] INFO βœ“ gemini-flash-lite β†’ gemini-3-flash-lite (cheap)
12:04:53 [faigate] INFO βœ“ gemini-pro-high β†’ gemini-3.1-pro (mid)
12:04:53 [faigate] INFO βœ“ gemini-pro-low β†’ gemini-3.1-pro (mid)
12:04:53 [faigate] INFO βœ“ kilocode β†’ z-ai/glm-5:free (fallback)
12:04:53 [faigate] INFO βœ“ openai-gpt4o β†’ gpt-4o (mid)
12:04:53 [faigate] INFO βœ“ openai-images β†’ gpt-image-1 (specialty)
12:04:53 [faigate] INFO βœ“ openrouter-fallback β†’ openrouter/auto (fallback)
12:04:53 [faigate.metrics] INFO Metrics DB ready: /Users/andrelange/.local/share/faigate/faigate.db
12:04:54 [httpx] INFO HTTP Request: GET https://docs.blackbox.ai/llms.txt "HTTP/1.1 200 OK"
12:04:54 [httpx] INFO HTTP Request: GET https://docs.blackbox.ai/api-reference/models/chat-pricing "HTTP/1.1 200 OK"
12:04:54 [httpx] INFO HTTP Request: GET https://kilo.ai/docs/gateway/models-and-providers "HTTP/1.1 200 OK"
12:04:55 [httpx] INFO HTTP Request: GET https://kilo.ai/docs/gateway/usage-and-billing "HTTP/1.1 200 OK"
12:04:55 [httpx] INFO HTTP Request: GET https://platform.openai.com/docs/models "HTTP/1.1 403 Forbidden"
12:04:55 [httpx] INFO HTTP Request: GET https://api.blackbox.ai/v1/models "HTTP/1.1 401 Unauthorized"
12:04:56 [httpx] INFO HTTP Request: GET https://api.blackbox.ai/models "HTTP/1.1 401 Unauthorized"
12:04:56 [httpx] INFO HTTP Request: GET https://api.openai.com/v1/models "HTTP/1.1 401 Unauthorized"
12:04:56 [httpx] INFO HTTP Request: GET https://api.openai.com/v1/models "HTTP/1.1 401 Unauthorized"
12:04:56 [httpx] INFO HTTP Request: GET https://api.openai.com/v1/models "HTTP/1.1 401 Unauthorized"
12:04:57 [httpx] INFO HTTP Request: GET https://api.openai.com/v1/models "HTTP/1.1 401 Unauthorized"
12:04:57 [faigate] INFO Provider source refresh completed: 4/5 source endpoints succeeded (startup)
12:04:57 [faigate] INFO fusionAIze Gate ready on 127.0.0.1:8092
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8092 (Press CTRL+C to quit)
INFO: 127.0.0.1:61351 - "POST /api/route HTTP/1.1" 200 OK
INFO: 127.0.0.1:61356 - "GET /api/traces?limit=1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:61361 - "POST /api/route HTTP/1.1" 200 OK
12:06:00 [faigate] INFO Route: gemini-flash-lite [heuristic/simple-query] 1.2ms
12:06:00 [httpx] INFO HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-lite:generateContent?key=${GEMINI_API_KEY} "HTTP/1.1 400 Bad Request"
12:06:00 [faigate] WARNING Provider gemini-flash-lite failed: {
"error": {
"code": 400,
"message": "API key not valid. Please pass a valid API key.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/googl, trying next...
12:06:00 [httpx] INFO HTTP Request: POST https://api.deepseek.com/v1/chat/completions "HTTP/1.1 401 Unauthorized"
12:06:00 [faigate] WARNING Provider deepseek-chat failed: {"error":{"message":"Authentication Fails, Your api key: ****KEY} is invalid","type":"authentication_error","param":null,"code":"invalid_request_error"}}, trying next...
12:06:00 [httpx] INFO HTTP Request: POST https://api.anthropic.com/v1/chat/completions "HTTP/1.1 401 Unauthorized"
12:06:00 [faigate] WARNING Provider anthropic-haiku failed: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}, trying next...
12:06:01 [httpx] INFO HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash:generateContent?key=${GEMINI_API_KEY} "HTTP/1.1 400 Bad Request"
12:06:01 [faigate] WARNING Provider gemini-flash failed: {
"error": {
"code": 400,
"message": "API key not valid. Please pass a valid API key.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/googl, trying next...
12:06:01 [httpx] INFO HTTP Request: POST https://api.deepseek.com/v1/chat/completions "HTTP/1.1 401 Unauthorized"
12:06:01 [faigate] WARNING Provider deepseek-reasoner failed: {"error":{"message":"Authentication Fails, Your api key: ****KEY} is invalid","type":"authentication_error","param":null,"code":"invalid_request_error"}}, trying next...
12:06:01 [httpx] INFO HTTP Request: POST https://api.anthropic.com/v1/chat/completions "HTTP/1.1 401 Unauthorized"
12:06:01 [faigate] WARNING Provider anthropic-sonnet failed: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}, trying next...
12:06:01 [httpx] INFO HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-pro:generateContent?key=${GEMINI_API_KEY} "HTTP/1.1 400 Bad Request"
12:06:01 [faigate] WARNING Provider gemini-pro-high failed: {
"error": {
"code": 400,
"message": "API key not valid. Please pass a valid API key.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/googl, trying next...
12:06:01 [httpx] INFO HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 401 Unauthorized"
12:06:01 [faigate] WARNING Provider openai-gpt4o failed: {
"error": {
"message": "Incorrect API key provided: ${OPENAI*****KEY}. You can find your API key at https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error", trying next...
12:06:02 [httpx] INFO HTTP Request: POST https://openrouter.ai/api/v1/chat/completions "HTTP/1.1 401 Unauthorized"
12:06:02 [faigate] WARNING Provider openrouter-fallback failed: {"error":{"message":"Missing Authentication header","code":401}}, trying next...
12:06:02 [httpx] INFO HTTP Request: POST https://api.anthropic.com/v1/chat/completions "HTTP/1.1 401 Unauthorized"
12:06:02 [faigate] WARNING Provider anthropic-claude failed: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}, trying next...
12:06:02 [httpx] INFO HTTP Request: POST https://api.kilo.ai/api/gateway/chat/completions "HTTP/1.1 404 Not Found"
12:06:02 [faigate] WARNING Provider kilocode failed: {"error":"The free period of this model ended. Please use kilo-auto/balanced for affordable inference or kilo-auto/free for limited free inference.","message":"The free period of this model ended. Ple, trying next...
12:06:02 [httpx] INFO HTTP Request: POST https://api.blackbox.ai/chat/completions "HTTP/1.1 401 Unauthorized"
12:06:02 [faigate] WARNING Provider blackbox-free failed: {"error":{"message":"Authentication Error, LiteLLM Virtual Key expected. Received=${BLACKBOX_API_KEY}, expected to start with 'sk-'.","type":"auth_error","param":"None","code":"401"}}, trying next...
INFO: 127.0.0.1:61367 - "POST /v1/chat/completions HTTP/1.1" 401 Unauthorized
INFO: 127.0.0.1:61388 - "POST /api/route HTTP/1.1" 200 OK
INFO: 127.0.0.1:61401 - "GET /api/traces?limit=1 HTTP/1.1" 200 OK
INFO: Shutting down
INFO: Waiting for application shutdown.
12:08:21 [faigate] INFO fusionAIze Gate shut down
INFO: Application shutdown complete.
INFO: Finished server process [72277]
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
INFO: Started server process [80392]
INFO: Waiting for application startup.
12:08:31 [faigate] INFO Loaded config with 14 providers
12:08:31 [faigate] INFO βœ“ anthropic-haiku β†’ claude-haiku-3-5 (default)
12:08:31 [faigate] INFO βœ“ anthropic-sonnet β†’ claude-sonnet-4-6 (mid)
12:08:31 [faigate] INFO βœ“ anthropic-claude β†’ claude-opus-4-6 (mid)
12:08:31 [faigate] INFO βœ“ blackbox-free β†’ blackboxai/x-ai/grok-code-fast-1 (fallback)
12:08:31 [faigate] INFO βœ“ deepseek-chat β†’ deepseek-chat (default)
12:08:31 [faigate] INFO βœ“ deepseek-reasoner β†’ deepseek-reasoner (reasoning)
12:08:31 [faigate] INFO βœ“ gemini-flash β†’ gemini-3-flash (mid)
12:08:31 [faigate] INFO βœ“ gemini-flash-lite β†’ gemini-3-flash-lite (cheap)
12:08:31 [faigate] INFO βœ“ gemini-pro-high β†’ gemini-3.1-pro (mid)
12:08:31 [faigate] INFO βœ“ gemini-pro-low β†’ gemini-3.1-pro (mid)
12:08:31 [faigate] INFO βœ“ kilocode β†’ z-ai/glm-5:free (fallback)
12:08:31 [faigate] INFO βœ“ openai-gpt4o β†’ gpt-4o (mid)
12:08:31 [faigate] INFO βœ“ openai-images β†’ gpt-image-1 (specialty)
12:08:31 [faigate] INFO βœ“ openrouter-fallback β†’ openrouter/auto (fallback)
12:08:31 [faigate.metrics] INFO Metrics DB ready: ./faigate.db
12:08:31 [httpx] INFO HTTP Request: GET https://docs.blackbox.ai/llms.txt "HTTP/1.1 200 OK"
12:08:31 [httpx] INFO HTTP Request: GET https://docs.blackbox.ai/api-reference/models/chat-pricing "HTTP/1.1 200 OK"
12:08:31 [httpx] INFO HTTP Request: GET https://kilo.ai/docs/gateway/models-and-providers "HTTP/1.1 200 OK"
12:08:32 [httpx] INFO HTTP Request: GET https://kilo.ai/docs/gateway/usage-and-billing "HTTP/1.1 200 OK"
12:08:32 [httpx] INFO HTTP Request: GET https://platform.openai.com/docs/models "HTTP/1.1 403 Forbidden"
12:08:32 [httpx] INFO HTTP Request: GET https://api.blackbox.ai/v1/models "HTTP/1.1 401 Unauthorized"
12:08:33 [httpx] INFO HTTP Request: GET https://api.blackbox.ai/models "HTTP/1.1 401 Unauthorized"
12:08:33 [httpx] INFO HTTP Request: GET https://api.openai.com/v1/models "HTTP/1.1 401 Unauthorized"
12:08:33 [httpx] INFO HTTP Request: GET https://api.openai.com/v1/models "HTTP/1.1 401 Unauthorized"
12:08:33 [httpx] INFO HTTP Request: GET https://api.openai.com/v1/models "HTTP/1.1 401 Unauthorized"
12:08:34 [httpx] INFO HTTP Request: GET https://api.openai.com/v1/models "HTTP/1.1 401 Unauthorized"
12:08:34 [faigate] INFO Provider source refresh completed: 4/5 source endpoints succeeded (startup)
12:08:34 [faigate] INFO fusionAIze Gate ready on 127.0.0.1:8092
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8092 (Press CTRL+C to quit)
INFO: 127.0.0.1:61521 - "GET /api/traces?limit=1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:61533 - "POST /api/route HTTP/1.1" 200 OK
INFO: 127.0.0.1:61539 - "POST /api/route HTTP/1.1" 200 OK
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
INFO: Started server process [17852]
INFO: Waiting for application startup.
11:35:44 [faigate] INFO Loaded config with 14 providers
11:35:44 [faigate] INFO βœ“ anthropic-haiku β†’ claude-haiku-3-5 (default)
11:35:44 [faigate] INFO βœ“ anthropic-sonnet β†’ claude-sonnet-4-6 (mid)
11:35:44 [faigate] INFO βœ“ anthropic-claude β†’ claude-opus-4-6 (mid)
11:35:44 [faigate] INFO βœ“ blackbox-free β†’ blackboxai/x-ai/grok-code-fast-1 (fallback)
11:35:44 [faigate] INFO βœ“ deepseek-chat β†’ deepseek-chat (default)
11:35:44 [faigate] INFO βœ“ deepseek-reasoner β†’ deepseek-reasoner (reasoning)
11:35:44 [faigate] INFO βœ“ gemini-flash β†’ gemini-3-flash (mid)
11:35:44 [faigate] INFO βœ“ gemini-flash-lite β†’ gemini-3-flash-lite (cheap)
11:35:44 [faigate] INFO βœ“ gemini-pro-high β†’ gemini-3.1-pro (mid)
11:35:44 [faigate] INFO βœ“ gemini-pro-low β†’ gemini-3.1-pro (mid)
11:35:44 [faigate] INFO βœ“ kilocode β†’ z-ai/glm-5:free (fallback)
11:35:44 [faigate] INFO βœ“ openai-gpt4o β†’ gpt-4o (mid)
11:35:44 [faigate] INFO βœ“ openai-images β†’ gpt-image-1 (specialty)
11:35:44 [faigate] INFO βœ“ openrouter-fallback β†’ openrouter/auto (fallback)
11:35:44 [faigate] WARNING Provider source catalog startup refresh skipped: [Errno 13] Permission denied: '/private/var/lib/faigate'
11:35:44 [faigate] INFO fusionAIze Gate ready on 127.0.0.1:8092
INFO: Application startup complete.
ERROR: [Errno 48] error while attempting to bind on address ('127.0.0.1', 8092): address already in use
INFO: Waiting for application shutdown.
11:35:44 [faigate] INFO fusionAIze Gate shut down
INFO: Application shutdown complete.
Loading
Loading