Skip to content

Conversation

leseb
Copy link
Contributor

@leseb leseb commented Apr 19, 2024

Lately, more INFO messages have appeared in the chat, so let's set the log level to ERROR only on the openai and http clients.

Without this change:

$ ilab chat
INFO 2024-04-16 11:49:33,283 _base_client.py:1040 Retrying request to /models in 0.911925 seconds
INFO 2024-04-16 11:49:34,197 _base_client.py:1040 Retrying request to /models in 1.571945 seconds

A more granular control over the log levels for various libraries will be implemented in a follow-up PR. That enhancement is tracked in #905.

Resolves: #909
Signed-off-by: Sébastien Han seb@redhat.com

@github-actions github-actions bot added the testing Relates to testing label Apr 19, 2024
@leseb
Copy link
Contributor Author

leseb commented Apr 19, 2024

Previous reviews can be found at #872

Lately, more INFO messages have appeared in the chat, so let's set the
log level to ERROR only on the openai and http clients.

Without this change:

```
$ ilab chat
INFO 2024-04-16 11:49:33,283 _base_client.py:1040 Retrying request to /models in 0.911925 seconds
INFO 2024-04-16 11:49:34,197 _base_client.py:1040 Retrying request to /models in 1.571945 seconds
```

A more granular control over the log levels for various libraries will
be implemented in a follow-up PR. That enhancement is tracked in
instructlab#905.

Signed-off-by: Sébastien Han <seb@redhat.com>
@alimaredia alimaredia merged commit 7abe354 into instructlab:main Apr 25, 2024
@leseb leseb deleted the fix-log-level branch April 25, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Relates to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openai and httpx internal logger surfacing into chat
3 participants