Skip to content
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

Merged
merged 7 commits into from
Sep 26, 2023

Conversation

jynx10
Copy link
Contributor

@jynx10 jynx10 commented Sep 12, 2023

No description provided.

@jynx10 jynx10 requested a review from yaricom September 12, 2023 12:03
@@ -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"]
Copy link
Member

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

Copy link
Contributor Author

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/logging.py Show resolved Hide resolved
@jynx10 jynx10 requested a review from yaricom September 14, 2023 10:15
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"},
Copy link
Collaborator

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.

@alexkuzmik alexkuzmik merged commit f4d3f3f into main Sep 26, 2023
13 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.

None yet

3 participants