context_key.go 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package constant
  2. type ContextKey string
  3. const (
  4. ContextKeyOriginalModel ContextKey = "original_model"
  5. ContextKeyRequestStartTime ContextKey = "request_start_time"
  6. /* token related keys */
  7. ContextKeyTokenUnlimited ContextKey = "token_unlimited_quota"
  8. ContextKeyTokenKey ContextKey = "token_key"
  9. ContextKeyTokenId ContextKey = "token_id"
  10. ContextKeyTokenGroup ContextKey = "token_group"
  11. ContextKeyTokenSpecificChannelId ContextKey = "specific_channel_id"
  12. ContextKeyTokenModelLimitEnabled ContextKey = "token_model_limit_enabled"
  13. ContextKeyTokenModelLimit ContextKey = "token_model_limit"
  14. /* channel related keys */
  15. ContextKeyChannelId ContextKey = "channel_id"
  16. ContextKeyChannelName ContextKey = "channel_name"
  17. ContextKeyChannelCreateTime ContextKey = "channel_create_time"
  18. ContextKeyChannelBaseUrl ContextKey = "base_url"
  19. ContextKeyChannelType ContextKey = "channel_type"
  20. ContextKeyChannelSetting ContextKey = "channel_setting"
  21. ContextKeyChannelParamOverride ContextKey = "param_override"
  22. ContextKeyChannelOrganization ContextKey = "channel_organization"
  23. ContextKeyChannelAutoBan ContextKey = "auto_ban"
  24. ContextKeyChannelModelMapping ContextKey = "model_mapping"
  25. ContextKeyChannelStatusCodeMapping ContextKey = "status_code_mapping"
  26. ContextKeyChannelIsMultiKey ContextKey = "channel_is_multi_key"
  27. ContextKeyChannelMultiKeyIndex ContextKey = "channel_multi_key_index"
  28. ContextKeyChannelKey ContextKey = "channel_key"
  29. /* user related keys */
  30. ContextKeyUserId ContextKey = "id"
  31. ContextKeyUserSetting ContextKey = "user_setting"
  32. ContextKeyUserQuota ContextKey = "user_quota"
  33. ContextKeyUserStatus ContextKey = "user_status"
  34. ContextKeyUserEmail ContextKey = "user_email"
  35. ContextKeyUserGroup ContextKey = "user_group"
  36. ContextKeyUsingGroup ContextKey = "group"
  37. ContextKeyUserName ContextKey = "username"
  38. )