Skip to content

openai and httpx internal logger surfacing into chat #909

@leseb

Description

@leseb

This only started recently but the chat is clutered with libraries INFO messages, such as:

$ ilab chat
INFO 2024-04-18 16:16:01,898 _base_client.py:1040 Retrying request to /models in 0.807423 seconds
INFO 2024-04-18 16:16:02,708 _base_client.py:1040 Retrying request to /models in 1.716736 seconds
╭──────────────────────────────────────────────────── system ─────────────────────────────────────────────────────╮
│ Welcome to Chat CLI w/ MERLINITE-7B-Q4_K_M (type /h for help)                                                   │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
>>> hello                                                                                              [S][default]
INFO 2024-04-18 16:16:10,953 _client.py:1026 HTTP Request: POST http://localhost:53408/v1/chat/completions "HTTP/1.1 200 OK"
╭────────────────────────────────────────────── merlinite-7b-Q4_K_M ──────────────────────────────────────────────╮
╭────────────────────────────────────────────── merlinite-7b-Q4_K_M ──────────────────────────────────────────────╮
│ Hello! I'm glad to see you reaching out. I'm here to help answer                                                │
╰───────────────────────────────────────────────────────────────────────────────────────── elapsed 3.109 seconds ─╯
>>>     

See the INFO lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions