bug: `mellea.plugins.builtin_debug.generation.log_generation_post_call` shows model as unknown

Đang mở Phù hợp với người mới
#1,864 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 3 ngày

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ollama, python

Hướng nghiên cứu

Bắt đầu từ logger post-call được nêu trong issue, mellea.plugins.builtin_debug.generation.log_generation_post_call, và so sánh dữ liệu nó nhận được với log_generation_pre_call và cấu hình trong docs/docs/how-to/debug-with-plugins.md. Tái hiện bằng đoạn mã được cung cấp với Ollama granite4.2:3b và dùng MELLEA_LOGS_LEVEL=DEBUG. Hoàn thành khi dòng post-call của một gen_id cụ thể in ra cùng tên model với dòng pre-call, còn đầu ra độ trễ và token hiện có vẫn giữ nguyên.

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

Mô tả

bug
What happened?

Executing an example based on docs/docs/how-to/debug-with-plugins.md has the post-call emitting model=unknown while the pre-call correctly identified the model.

== 13:35:46-DEBUG ======
[📤 GEN-PRE-CALL gen_id=bb276b72-c8bc-433f-9543-ce393dd92a8d] model=granite4.2:3b | prompt=Write an email inviting interns to an office party at 3:30pm.
=== 13:36:03-DEBUG ======
[📥 GEN-POST-CALL gen_id=bb276b72-c8bc-433f-9543-ce393dd92a8d] model=unknown | latency=17348ms | tokens=(31+478=509) | response=Subject: Invitation: Office Party – 3:30 pm Today  Dear Interns,  We’re excited to invite you to ...
What did you expect to happen?

Both the pre-call and post-call should correctly emit the model.

How can we reproduce it?
# after:
# export MELLEA_LOGS_LEVEL=DEBUG
# execute:
# python 1.py
$ cat 1.py
from mellea.plugins.builtin_debug.generation import (
    log_generation_pre_call,
    log_generation_post_call,
)
from mellea.plugins import register

register([
    log_generation_pre_call,
    log_generation_post_call,
])

import mellea

with mellea.start_session() as m:
    email = m.instruct("Write an email inviting interns to an office party at 3:30pm.")
    print(str(email))
Mellea version
(coding in `main`)
python -c "import mellea; print(mellea.__version__)"
0.8.0
Any environmental details we need to know?

Ubuntu 26.04.1 LTS
Python 3.14.4
Ollama
granite4.2:3b

Anything else we need to know?

Arose from discussion of #1862

Relevant log output

Ngôn ngữ chính
Python
Star
1.8k
Fork
161
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
45

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

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 generative-computing/mellea

Tất cả issue của generative-computing/mellea

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.