context_key.go 2.4 KB

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