From 509ed516856884d661d5cdc167a17c72e282d816 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Thu, 23 Jul 2026 16:41:49 +0200 Subject: [PATCH] Debug logs --- cloud/tools/aichat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cloud/tools/aichat.py b/cloud/tools/aichat.py index 4deda78..7e10db5 100644 --- a/cloud/tools/aichat.py +++ b/cloud/tools/aichat.py @@ -10,6 +10,10 @@ AI_MODEL_THINK = os.getenv("OPENAI_MODEL_THINK", "True").lower() in ("true", "1" OPENAPI_TOKEN = os.getenv("OPENAI_API_TOKEN", None) OPENAPI_ENDPOINT = "/api/generate" +print(f"Using API Host: {API_HOST}") +print(f"Using API Model: {AI_MODEL}") +print(f"Using API Model Think: {AI_MODEL_THINK}") +print(f"Using API Token: {'Yes' if OPENAPI_TOKEN else 'No'} {OPENAPI_TOKEN[:5] + '...' if OPENAPI_TOKEN else ''}") def call_api(body: dict, endpoint: str = OPENAPI_ENDPOINT) -> str: """Call the API with the given endpoint and body dict."""