context_key.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. ContextKeyChannelOtherSetting ContextKey = "channel_other_setting"
  22. ContextKeyChannelParamOverride ContextKey = "param_override"
  23. ContextKeyChannelOrganization ContextKey = "channel_organization"
  24. ContextKeyChannelAutoBan ContextKey = "auto_ban"
  25. ContextKeyChannelModelMapping ContextKey = "model_mapping"
  26. ContextKeyChannelStatusCodeMapping ContextKey = "status_code_mapping"
  27. ContextKeyChannelIsMultiKey ContextKey = "channel_is_multi_key"
  28. ContextKeyChannelMultiKeyIndex ContextKey = "channel_multi_key_index"
  29. ContextKeyChannelKey ContextKey = "channel_key"
  30. /* user related keys */
  31. ContextKeyUserId ContextKey = "id"
  32. ContextKeyUserSetting ContextKey = "user_setting"
  33. ContextKeyUserQuota ContextKey = "user_quota"
  34. ContextKeyUserStatus ContextKey = "user_status"
  35. ContextKeyUserEmail ContextKey = "user_email"
  36. ContextKeyUserGroup ContextKey = "user_group"
  37. ContextKeyUsingGroup ContextKey = "group"
  38. ContextKeyUserName ContextKey = "username"
  39. ContextKeySystemPromptOverride ContextKey = "system_prompt_override"
  40. )