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

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
ai, backend

調査の方向性

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.

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

説明

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.
主要言語
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 を短くまとめたダイジェスト。