feat(litellm-client): add models field to team create/update requests #248
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
phoenix-oss/quarkus-commons!248
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/135-team-models-field"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of phoenix/tenant-maas#135
Summary
Adds an optional
modelsfield (LiteLLM model access-group names) to the LiteLLM team DTOs so the osb-maas broker can scope a team to specific model access groups on team create and team update — the mechanism the tenant-maas reservation feature uses: team-owning plans sendmodels: ["shared-models"], and a reservation grants the dedicated group by unioning the reservation plan's groups onto the team via/team/update.CreateTeamRequest: canonical constructor gainsList<String> models(last component); all pre-existing signatures retained as conveniences delegating withmodels = null.UpdateTeamRequest: canonical constructor gainsList<String> models; ALL pre-existing signatures retained (including the 6-arg convenience), delegating withmodels = null.@JsonInclude(NON_NULL)keepsmodelsabsent from the JSON when null — unchanged payload for callers that do not set it.UpdateKeyRequestexplicit-null serialization change was reverted (per-key limits are not part of this feature; the commit is preserved in history as3fa7f63+ revert9f81ed3).Tests
CreateTeamRequestTest(4) andUpdateTeamRequestTest(6) followingGenerateKeyRequestTestconventions:modelsserializes as a snake_case list when set, is absent when null, and all pre-existing constructor payloads are unchanged../mvnw -pl quarkus-litellm-client -am verify— BUILD SUCCESS, 14 tests green.Compatibility
Backwards-compatible addition; no behavior change for consumers that do not set
models.feat(litellm-client): add models field to team create/update requeststo WIP: feat(litellm-client): add models field to team create/update requestsWIP: feat(litellm-client): add models field to team create/update requeststo feat(litellm-client): add models field to team create/update requestsView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.