Skip to content

Added debug toggle to try to fix issue #12#14

Merged
Desmond-Dong merged 4 commits into
ha-china:mainfrom
knoop7:main
May 16, 2026
Merged

Added debug toggle to try to fix issue #12#14
Desmond-Dong merged 4 commits into
ha-china:mainfrom
knoop7:main

Conversation

@knoop7

@knoop7 knoop7 commented May 16, 2026

Copy link
Copy Markdown
Contributor
Mac_2026-05-16 09 55 54

#12

KNOOP added 4 commits May 16, 2026 09:46
- Add CONF_DEBUG_LOG constant and RECOMMENDED_DEBUG_LOG default (False)
- Add debug_log: bool field to LLMConfig dataclass
- Add debug_log boolean to conversation schema (non-recommended mode)
- Pass debug_log from subentry options through to provider config
Guard all [AI_HUB_DEBUG] request/response logging in openai, anthropic,
and ollama providers with self.config.debug_log check. When disabled
(default), zero debug overhead. Convert _log_request_payload from
@staticmethod to instance method for config access.
Add English and Chinese translations for the debug_log toggle in
conversation subentry configuration.
@Desmond-Dong Desmond-Dong merged commit 316e2da into ha-china:main May 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants