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

Set default params for Watsonx chat & text models #260

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

claudiosv
Copy link
Collaborator

As of LiteLLM 1.52.1, model prefix watsonx/ points to the /chat endpoint. See change here. This endpoint has several differences in accepted parameters, and more sane defaults. It supports json_object as a response_format, and the endpoint supports tool calling (future work for PDL). Rather than handle different LiteLLM dependency versions pointing to different APIs, this PR also bumps the minimum LiteLLM version needed. One thing to note, set_default_granite_model_parameters is only called for granite models of course. This means that using Granite, the default will be greedy decoding/temp = 0, and for any other model, the default is temp = 1. That could be a surprising difference in behavior.

pyproject.toml Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just removed the upper bound on LiteLLM per user's request. See the latest in main, including changes to watsonx examples. Please merge that.

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 this pull request may close these issues.

2 participants