context_key.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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. ContextKeyTokenAllowIps ContextKey = "allow_ips"
  12. ContextKeyTokenSpecificChannelId ContextKey = "specific_channel_id"
  13. ContextKeyTokenModelLimitEnabled ContextKey = "token_model_limit_enabled"
  14. ContextKeyTokenModelLimit ContextKey = "token_model_limit"
  15. /* channel related keys */
  16. ContextKeyBaseUrl ContextKey = "base_url"
  17. ContextKeyChannelType ContextKey = "channel_type"
  18. ContextKeyChannelId ContextKey = "channel_id"
  19. ContextKeyChannelSetting ContextKey = "channel_setting"
  20. ContextKeyParamOverride ContextKey = "param_override"
  21. /* user related keys */
  22. ContextKeyUserId ContextKey = "id"
  23. ContextKeyUserSetting ContextKey = "user_setting"
  24. ContextKeyUserQuota ContextKey = "user_quota"
  25. ContextKeyUserStatus ContextKey = "user_status"
  26. ContextKeyUserEmail ContextKey = "user_email"
  27. ContextKeyUserGroup ContextKey = "user_group"
  28. ContextKeyUsingGroup ContextKey = "group"
  29. ContextKeyUserName ContextKey = "username"
  30. )