mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix: add password field to new_user docstring for API docs validation
The documentation CI test (test_api_docs.py) validates that every field on NewUserRequest is documented in the new_user() docstring. Adding password to the docstring so the check passes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ff8c1153dd
commit
b88726a07e
1 changed files with 1 additions and 0 deletions
|
|
@ -395,6 +395,7 @@ async def new_user(
|
|||
- object_permission: Optional[LiteLLM_ObjectPermissionBase] - internal user-specific object permission. Example - {"vector_stores": ["vector_store_1", "vector_store_2"]}. IF null or {} then no object permission.
|
||||
- prompts: Optional[List[str]] - List of allowed prompts for the user. If specified, the user will only be able to use these specific prompts.
|
||||
- organizations: List[str] - List of organization id's the user is a member of
|
||||
- password: Optional[str] - Password for the user (minimum 8 characters). Stored as a scrypt hash; never returned in responses.
|
||||
Returns:
|
||||
- key: (str) The generated api key for the user
|
||||
- expires: (datetime) Datetime object for when key expires.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue