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

オープン
#440 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
179
フォーク
32
平均マージ
1日 3時間
マージ済み PR(30日)
10

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

posit-dev/chatlas のほかの issue

posit-dev/chatlas の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。