Chat.app() logs GET /favicon.ico 404 Not Found and provides no way to configure a favicon

Đang mở
#440 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
frontend

Hướng nghiên cứu

Start by reading the implementation of Chat.app() and how it serves the chat interface. The issue leaves the intended solution open: a default favicon, a configuration option, or documentation for avoiding the 404. Done means the chosen approach addresses the /favicon.ico request without cluttering logs, with behavior covered by an appropriate test or documentation.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

ai-triage:done Priority: Low

When launching a chat app via Chat.app(), the browser automatically requests /favicon.ico. Since chatlas does not serve any favicon and app() exposes no parameter to configure one, the server logs a 404 Not Found for every page load:

INFO:     127.0.0.1:11212 - "GET /favicon.ico HTTP/1.1" 404 Not Found

This is harmless for the chat functionality, but it clutters the logs and cannot be suppressed or fixed through the public API.

Reproduce

import chatlas as ctl

image_url = "https://www.python.org/static/img/python-logo.png"
base_url = ""

chat = ctl.ChatOpenAICompletions(
    model="qwen3.8-27b",         
    api_key=_KEY,
    base_url=base_url,            
    system_prompt="You are a helpful assistant.",
)


chat.app()

Open the app in a browser. The terminal running the app will show the 404 log line.

Screeshot:
Image

Expected behavior
Either:

Chat.app() serves a default favicon (even a tiny placeholder), or

Chat.app() accepts a parameter to specify a custom favicon or static file directory, or

The documentation explains how to avoid the 404 (e.g. by ignoring it or by building a custom Shiny app).

Ngôn ngữ chính
Python
Star
179
Fork
32
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của posit-dev/chatlas

Tất cả issue của posit-dev/chatlas

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.