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

Aperta
#440 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Python
Stelle
179
Fork
32
Merge medio
1g 3h
PR unite (30g)
10

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/chatlas

Tutte le issue di posit-dev/chatlas

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.