Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An API to get the model used by the current chat #299

Closed
atheriel opened this issue Feb 4, 2025 · 1 comment · Fixed by #305
Closed

An API to get the model used by the current chat #299

atheriel opened this issue Feb 4, 2025 · 1 comment · Fixed by #305
Milestone

Comments

@atheriel
Copy link
Collaborator

atheriel commented Feb 4, 2025

@edgararuiz asked me for a way to get the model from the current chat so that ellmer can be more easily used as a backend by chattr. I think a simple

chat$get_model()

would be sufficient. And it seems easier than exposing the whole provider (discussed in #202).

@hadley
Copy link
Member

hadley commented Feb 5, 2025

Out of interest, why does chattr need the model name?

@hadley hadley added this to the 0.1.1 milestone Feb 5, 2025
hadley added a commit that referenced this issue Feb 5, 2025
@hadley hadley closed this as completed in facd2a5 Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants