fix(internal_user_endpoints.py): increase default page size for /user/daily/activity

This commit is contained in:
Krrish Dholakia 2025-04-09 15:36:57 -07:00
parent 3484100aed
commit 7e1dcb0ada
3 changed files with 8 additions and 10 deletions

View file

@ -2409,25 +2409,26 @@
"max_tokens": 4096, "max_tokens": 4096,
"max_input_tokens": 131072, "max_input_tokens": 131072,
"max_output_tokens": 4096, "max_output_tokens": 4096,
"input_cost_per_token": 0, "input_cost_per_token": 0.000000075,
"output_cost_per_token": 0, "output_cost_per_token": 0.0000003,
"litellm_provider": "azure_ai", "litellm_provider": "azure_ai",
"mode": "chat", "mode": "chat",
"supports_function_calling": true, "supports_function_calling": true,
"source": "https://learn.microsoft.com/en-us/azure/ai-foundry/concepts/models-featured#microsoft" "source": "https://techcommunity.microsoft.com/blog/Azure-AI-Services-blog/announcing-new-phi-pricing-empowering-your-business-with-small-language-models/4395112"
}, },
"azure_ai/Phi-4-multimodal-instruct": { "azure_ai/Phi-4-multimodal-instruct": {
"max_tokens": 4096, "max_tokens": 4096,
"max_input_tokens": 131072, "max_input_tokens": 131072,
"max_output_tokens": 4096, "max_output_tokens": 4096,
"input_cost_per_token": 0, "input_cost_per_token": 0.00000008,
"output_cost_per_token": 0, "input_cost_per_audio_token": 0.000004,
"output_cost_per_token": 0.00032,
"litellm_provider": "azure_ai", "litellm_provider": "azure_ai",
"mode": "chat", "mode": "chat",
"supports_audio_input": true, "supports_audio_input": true,
"supports_function_calling": true, "supports_function_calling": true,
"supports_vision": true, "supports_vision": true,
"source": "https://learn.microsoft.com/en-us/azure/ai-foundry/concepts/models-featured#microsoft" "source": "https://techcommunity.microsoft.com/blog/Azure-AI-Services-blog/announcing-new-phi-pricing-empowering-your-business-with-small-language-models/4395112"
}, },
"azure_ai/Phi-4": { "azure_ai/Phi-4": {
"max_tokens": 16384, "max_tokens": 16384,

View file

@ -51,9 +51,6 @@ def decrypt_value_helper(value: str):
# if it's not str - do not decrypt it, return the value # if it's not str - do not decrypt it, return the value
return value return value
except Exception as e: except Exception as e:
import traceback
traceback.print_stack()
verbose_proxy_logger.error( verbose_proxy_logger.error(
f"Error decrypting value, Did your master_key/salt key change recently? \nError: {str(e)}\nSet permanent salt key - https://docs.litellm.ai/docs/proxy/prod#5-set-litellm-salt-key" f"Error decrypting value, Did your master_key/salt key change recently? \nError: {str(e)}\nSet permanent salt key - https://docs.litellm.ai/docs/proxy/prod#5-set-litellm-salt-key"
) )

View file

@ -1434,7 +1434,7 @@ async def get_user_daily_activity(
default=1, description="Page number for pagination", ge=1 default=1, description="Page number for pagination", ge=1
), ),
page_size: int = fastapi.Query( page_size: int = fastapi.Query(
default=50, description="Items per page", ge=1, le=100 default=50, description="Items per page", ge=1, le=1000
), ),
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
) -> SpendAnalyticsPaginatedResponse: ) -> SpendAnalyticsPaginatedResponse: