context_key.go 2.3 KB

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