Port ellmer's Model class: separate model configuration from Provider

Đang mở
#502 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
ai, backend

Hướng nghiên cứu

Read the provider implementations and locate where each currently stores model and kwargs; the issue says this refactor touches every provider. Compare the design with ellmer 0.5.0 and account for the deprecation cycle, including how Chat will use the new Model object. Done means model configuration is separated from provider endpoint details across all providers.

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

Mô tả

ellmer 0.5.0 introduced a Model class that separates model configuration (name, parameters, extra arguments) from the Provider class, which now only captures API endpoint details (tidyverse/ellmer#1098). Chat gained (), and provider@model, provider@params, and provider@extra_args were deprecated in favor of the Model object.

This is the largest remaining unported ellmer 0.5.0 feature. It's architectural rather than user-facing, but it keeps the two projects aligned and simplifies provider implementations.

chatlas considerations:

  • chatlas providers currently own model and kwargs directly, so this is a deprecation-cycle refactor touching every provider.
  • #469 (expose Provider.base_url for the resolved request endpoint) is a small step in the same direction and could land first.
  • The other remaining ellmer ports are tracked in #425 (tool_context()), #413 (request hooks), #394 (rounds), and #395 (price updating) — all independent of this one.
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.