-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CM-8208] Added debug mode to comet_llm #66
Conversation
src/comet_llm/config.py
Outdated
@@ -56,6 +59,10 @@ def api_key() -> Optional[str]: | |||
return api_key # type: ignore | |||
|
|||
|
|||
def logging_level() -> Optional[str]: | |||
return _COMET_ML_CONFIG["comet_llm.logging_level"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you need to add # type: ignore
to avoid lint error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not an Optional[str], its my bad
src/comet_llm/config.py
Outdated
CONFIG_MAP_EXTENSION = {"comet.disable": {"type": int, "default": 0}} | ||
CONFIG_MAP_EXTENSION = { | ||
"comet.disable": {"type": int, "default": 0}, | ||
"comet_llm.logging_level": {"type": str, "default": "INFO"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We decided to use the same name convention as we use in comet-ml, so no need to create comet_llm.logging_level
, let's just reuse comet.logging.console
.
No description provided.