This website requires JavaScript.
Explore
Help
Register
Sign In
pham
/
tokens-reef
Watch
2
Star
0
Fork
0
You've already forked tokens-reef
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
fe211fc5631e3fc3dc2eb59418eaa4658223f47d
tokens-reef
/
backend
/
internal
/
service
History
…
..
openai_ws_v2
…
prompts
…
account_anthropic_passthrough_test.go
…
account_base_url_test.go
…
account_billing_rate_multiplier_test.go
…
account_credentials_persistence.go
…
account_expiry_service.go
…
account_group.go
…
account_intercept_warmup_test.go
…
account_load_factor_test.go
…
account_openai_passthrough_test.go
…
account_pool_mode_test.go
…
account_quota_reset_test.go
…
account_rpm_test.go
…
account_service_delete_test.go
…
account_service.go
…
account_test_service_gemini_test.go
…
account_test_service_openai_test.go
…
account_test_service.go
…
account_usage_service_test.go
…
account_usage_service.go
…
account_wildcard_test.go
…
account.go
…
admin_service_apikey_test.go
…
admin_service_bulk_update_test.go
fix: use i18n for mixed-channel warning messages and improve bulk pre-check
2026-03-01 14:39:07 +08:00
admin_service_clear_error_test.go
…
admin_service_create_user_test.go
…
admin_service_delete_test.go
…
admin_service_group_rate_test.go
…
admin_service_group_test.go
…
admin_service_list_users_test.go
…
admin_service_overages_test.go
…
admin_service_proxy_quality_test.go
…
admin_service_search_test.go
…
admin_service_update_balance_test.go
…
admin_service.go
…
announcement_service.go
…
announcement_targeting_test.go
…
announcement.go
…
anthropic_session_test.go
…
anthropic_session.go
…
antigravity_credits_overages_test.go
…
antigravity_credits_overages.go
…
antigravity_gateway_service_test.go
…
antigravity_gateway_service.go
…
antigravity_image_test.go
…
antigravity_internal500_penalty_test.go
…
antigravity_internal500_penalty.go
…
antigravity_model_mapping_test.go
…
antigravity_oauth_service_test.go
…
antigravity_oauth_service.go
…
antigravity_privacy_service_test.go
…
antigravity_privacy_service.go
…
antigravity_quota_fetcher_test.go
…
antigravity_quota_fetcher.go
…
antigravity_quota_scope.go
…
antigravity_rate_limit_test.go
…
antigravity_single_account_retry_test.go
…
antigravity_smart_retry_test.go
…
antigravity_subscription_service.go
…
antigravity_thinking_test.go
…
antigravity_token_provider_test.go
…
antigravity_token_provider.go
…
antigravity_token_refresher.go
…
api_key_auth_cache_impl.go
…
api_key_auth_cache_invalidate.go
…
api_key_auth_cache.go
…
api_key_rate_limit_test.go
…
api_key_service_cache_test.go
…
api_key_service_delete_test.go
…
api_key_service_quota_test.go
…
api_key_service_touch_last_used_test.go
…
api_key_service.go
…
api_key.go
…
auth_cache_invalidation_test.go
fix(认证): 订阅兑换失效认证缓存
2026-01-10 23:14:20 +08:00
auth_service_pending_oauth_test.go
…
auth_service_register_test.go
…
auth_service_turnstile_register_test.go
…
auth_service.go
…
backup_service_test.go
…
backup_service.go
…
bedrock_request_test.go
sub2api: add bedrock support
2026-03-13 17:00:16 +08:00
bedrock_request.go
sub2api: add bedrock support
2026-03-13 17:00:16 +08:00
bedrock_signer_test.go
…
bedrock_signer.go
…
bedrock_stream_test.go
…
bedrock_stream.go
…
billing_cache_port.go
…
billing_cache_service_singleflight_test.go
…
billing_cache_service_test.go
…
billing_cache_service.go
…
billing_service_image_test.go
…
billing_service_test.go
…
billing_service.go
…
channel_service_test.go
…
channel_service.go
…
channel_test.go
…
channel.go
…
claude_code_detection_test.go
…
claude_code_validator_test.go
…
claude_code_validator.go
…
claude_token_provider_test.go
…
claude_token_provider.go
…
concurrency_service_test.go
…
concurrency_service.go
…
crs_sync_helpers_test.go
…
crs_sync_service.go
…
dashboard_aggregation_service_test.go
…
dashboard_aggregation_service.go
…
dashboard_service_test.go
…
dashboard_service.go
…
data_management_grpc_test.go
…
data_management_grpc.go
…
data_management_service_test.go
…
data_management_service.go
…
deferred_service.go
…
digest_session_store_test.go
…
digest_session_store.go
…
domain_constants.go
…
email_queue_service.go
…
email_service.go
…
error_passthrough_runtime_test.go
…
error_passthrough_runtime.go
…
error_passthrough_service_test.go
…
error_passthrough_service.go
…
error_policy_integration_test.go
…
error_policy_test.go
…
force_cache_billing_test.go
…
gateway_account_selection_test.go
…
gateway_anthropic_apikey_passthrough_benchmark_test.go
…
gateway_anthropic_apikey_passthrough_test.go
…
gateway_beta_test.go
…
gateway_billing_header_test.go
…
gateway_billing_header.go
…
gateway_body_order_test.go
…
gateway_cached_tokens_test.go
…
gateway_channel_restriction_fallback_test.go
…
gateway_channel_restriction_test.go
…
gateway_debug_env_test.go
feat: 网关请求头 wire casing 保持、转发行为开关、调试日志增强及 accept-encoding 恢复
2026-03-26 11:17:25 +08:00
gateway_forward_as_chat_completions_test.go
…
gateway_forward_as_chat_completions.go
…
gateway_forward_as_responses_test.go
…
gateway_forward_as_responses.go
…
gateway_group_isolation_test.go
…
gateway_hotpath_optimization_test.go
…
gateway_multiplatform_test.go
…
gateway_oauth_metadata_test.go
…
gateway_prompt_test.go
…
gateway_record_usage_test.go
…
gateway_request_test.go
…
gateway_request.go
…
gateway_sanitize_test.go
…
gateway_service_antigravity_whitelist_test.go
…
gateway_service_bedrock_beta_test.go
…
gateway_service_bedrock_model_support_test.go
…
gateway_service_benchmark_test.go
…
gateway_service_selection_failure_stats_test.go
…
gateway_service_streaming_test.go
…
gateway_service.go
…
gateway_streaming_test.go
…
gateway_waiting_queue_test.go
…
gemini_error_policy_test.go
…
gemini_messages_compat_service_test.go
…
gemini_messages_compat_service.go
…
gemini_multiplatform_test.go
…
gemini_native_signature_cleaner_test.go
…
gemini_native_signature_cleaner.go
…
gemini_oauth_service_test.go
…
gemini_oauth_service.go
…
gemini_oauth.go
…
gemini_quota.go
…
gemini_session_integration_test.go
…
gemini_session_test.go
…
gemini_session.go
…
gemini_token_cache.go
…
gemini_token_provider.go
…
gemini_token_refresher.go
…
geminicli_codeassist.go
…
generate_session_hash_test.go
…
group_capacity_service.go
…
group_service.go
…
group_test.go
…
group.go
…
header_util.go
…
http_upstream_port.go
…
idempotency_cleanup_service_test.go
…
idempotency_cleanup_service.go
…
idempotency_observability.go
…
idempotency_test.go
…
idempotency.go
…
identity_service_order_test.go
…
identity_service.go
…
internal500_counter.go
…
metadata_userid_test.go
…
metadata_userid.go
…
model_pricing_resolver_test.go
…
model_pricing_resolver.go
…
model_rate_limit_test.go
…
model_rate_limit.go
…
oauth_refresh_api_test.go
…
oauth_refresh_api.go
…
oauth_service_test.go
…
oauth_service.go
…
openai_account_scheduler_benchmark_test.go
…
openai_account_scheduler_test.go
…
openai_account_scheduler.go
…
openai_channel_restriction_test.go
…
openai_client_restriction_detector_test.go
…
openai_client_restriction_detector.go
…
openai_client_transport_test.go
…
openai_client_transport.go
…
openai_codex_transform_test.go
…
openai_codex_transform.go
…
openai_compat_model_test.go
…
openai_compat_model.go
…
openai_compat_prompt_cache_key_test.go
…
openai_compat_prompt_cache_key.go
…
openai_content_session_seed_test.go
…
openai_content_session_seed.go
…
openai_gateway_chat_completions.go
…
openai_gateway_messages.go
…
openai_gateway_record_usage_test.go
…
openai_gateway_service_codex_cli_only_test.go
…
openai_gateway_service_codex_snapshot_test.go
…
openai_gateway_service_hotpath_test.go
…
openai_gateway_service_session_isolation_test.go
…
openai_gateway_service_test.go
…
openai_gateway_service_tool_correction_test.go
…
openai_gateway_service.go
…
openai_json_optimization_benchmark_test.go
…
openai_model_mapping_test.go
fix(openai): do not normalize API token based accounts
2026-04-07 11:27:57 +03:00
openai_model_mapping.go
refactor: remove resolveOpenAIUpstreamModel, use normalizeCodexModel directly
2026-04-04 14:07:19 +08:00
openai_oauth_passthrough_test.go
…
openai_oauth_service_auth_url_test.go
…
openai_oauth_service_refresh_test.go
…
openai_oauth_service_state_test.go
…
openai_oauth_service.go
…
openai_previous_response_id_test.go
…
openai_previous_response_id.go
…
openai_privacy_retry_test.go
…
openai_privacy_service.go
…
openai_sticky_compat_test.go
…
openai_sticky_compat.go
…
openai_token_provider_test.go
…
openai_token_provider.go
…
openai_tool_continuation_test.go
…
openai_tool_continuation.go
…
openai_tool_corrector_test.go
…
openai_tool_corrector.go
…
openai_ws_account_sticky_test.go
…
openai_ws_client_test.go
…
openai_ws_client.go
…
openai_ws_fallback_test.go
…
openai_ws_forwarder_benchmark_test.go
…
openai_ws_forwarder_hotpath_optimization_test.go
…
openai_ws_forwarder_ingress_session_test.go
…
openai_ws_forwarder_ingress_test.go
…
openai_ws_forwarder_retry_payload_test.go
…
openai_ws_forwarder_success_test.go
…
openai_ws_forwarder.go
…
openai_ws_pool_benchmark_test.go
…
openai_ws_pool_test.go
…
openai_ws_pool.go
…
openai_ws_protocol_forward_test.go
…
openai_ws_protocol_resolver_test.go
…
openai_ws_protocol_resolver.go
…
openai_ws_ratelimit_signal_test.go
…
openai_ws_state_store_test.go
…
openai_ws_state_store.go
…
openai_ws_v2_passthrough_adapter.go
…
ops_account_availability.go
…
ops_advisory_lock.go
…
ops_aggregation_service.go
…
ops_alert_evaluator_service_test.go
…
ops_alert_evaluator_service.go
…
ops_alert_models.go
…
ops_alerts.go
…
ops_cleanup_service.go
…
ops_concurrency.go
…
ops_dashboard_models.go
feat(运维监控): 增强监控功能和健康评分系统
2026-01-10 01:38:47 +08:00
ops_dashboard.go
…
ops_errors.go
…
ops_health_score_test.go
…
ops_health_score.go
…
ops_histograms.go
…
ops_log_runtime_test.go
…
ops_log_runtime.go
…
ops_metrics_collector.go
…
ops_models.go
…
ops_openai_token_stats_models.go
…
ops_openai_token_stats_test.go
…
ops_openai_token_stats.go
…
ops_port.go
…
ops_query_mode_test.go
…
ops_query_mode.go
…
ops_realtime_models.go
…
ops_realtime_traffic_models.go
…
ops_realtime_traffic.go
…
ops_realtime.go
…
ops_repo_mock_test.go
…
ops_request_details.go
…
ops_retry_context_test.go
…
ops_retry.go
…
ops_scheduled_report_service.go
…
ops_service_batch_test.go
…
ops_service_prepare_queue_test.go
…
ops_service_redaction_test.go
…
ops_service.go
…
ops_settings_advanced_test.go
…
ops_settings_models.go
…
ops_settings.go
…
ops_system_log_service_test.go
…
ops_system_log_service.go
…
ops_system_log_sink_test.go
…
ops_system_log_sink.go
…
ops_trend_models.go
…
ops_trends.go
…
ops_upstream_context_test.go
…
ops_upstream_context.go
…
ops_window_stats.go
feat(service): 实现运维监控业务逻辑层
2026-01-09 20:53:44 +08:00
overload_cooldown_test.go
…
parse_integral_number_unit.go
…
pricing_service_test.go
…
pricing_service.go
…
promo_code_repository.go
…
promo_code.go
…
promo_service.go
…
proxy_latency_cache.go
…
proxy_service.go
…
proxy_test.go
…
proxy.go
…
quota_fetcher.go
…
ratelimit_service_401_db_fallback_test.go
…
ratelimit_service_401_test.go
…
ratelimit_service_anthropic_test.go
…
ratelimit_service_clear_test.go
…
ratelimit_service_openai_test.go
…
ratelimit_service.go
…
ratelimit_session_window_test.go
…
redeem_code.go
…
redeem_service.go
…
refresh_policy.go
feat: unified OAuth token refresh API with distributed locking
2026-03-16 01:31:54 +08:00
refresh_token_cache.go
…
registration_email_policy_test.go
…
registration_email_policy.go
…
request_metadata_test.go
…
request_metadata.go
…
response_header_filter.go
…
rpm_cache.go
…
scheduled_test_port.go
…
scheduled_test_runner_service.go
…
scheduled_test_service.go
…
scheduler_cache.go
feat(scheduler): 引入调度快照缓存与 outbox 回放
2026-01-12 14:19:06 +08:00
scheduler_events.go
…
scheduler_layered_filter_test.go
…
scheduler_outbox.go
…
scheduler_shuffle_test.go
…
scheduler_snapshot_hydration_test.go
…
scheduler_snapshot_service.go
…
session_limit_cache.go
…
setting_service_backend_mode_test.go
…
setting_service_public_test.go
…
setting_service_update_test.go
feat(registration): add email domain whitelist policy
2026-03-04 13:54:18 +08:00
setting_service.go
feat: sync billing header cc_version with User-Agent and add opt-in CCH signing
2026-04-08 16:11:19 +08:00
setting.go
refactor: 调整项目结构为单向依赖
2025-12-26 16:45:40 +08:00
settings_view.go
…
sse_scanner_buffer_pool_test.go
…
sse_scanner_buffer_pool.go
…
sticky_session_test.go
…
subscription_assign_idempotency_test.go
…
subscription_calculate_progress_test.go
…
subscription_expiry_service.go
…
subscription_maintenance_queue_test.go
…
subscription_maintenance_queue.go
…
subscription_reset_quota_test.go
…
subscription_service.go
…
system_operation_lock_service_test.go
…
system_operation_lock_service.go
…
temp_unsched_test.go
…
temp_unsched.go
…
testhelpers_test.go
…
timing_wheel_service_test.go
…
timing_wheel_service.go
…
tls_fingerprint_profile_service.go
…
token_cache_invalidator_test.go
…
token_cache_invalidator.go
…
token_cache_key_test.go
…
token_cache_key.go
…
token_refresh_service_test.go
fix: avoid temp unsched when refresh token is missing
2026-03-30 00:21:51 +08:00
token_refresh_service.go
revert: completely remove all Sora functionality
2026-04-05 17:11:01 +08:00
token_refresher_test.go
…
token_refresher.go
…
totp_service.go
…
turnstile_service.go
…
update_service.go
…
upstream_response_limit_test.go
…
upstream_response_limit.go
…
usage_billing.go
…
usage_cleanup_service_test.go
…
usage_cleanup_service.go
…
usage_cleanup.go
…
usage_log_create_result.go
…
usage_log_helpers.go
…
usage_log_test.go
…
usage_log.go
…
usage_record_worker_pool_test.go
…
usage_record_worker_pool.go
…
usage_service.go
…
user_attribute_service.go
…
user_attribute.go
…
user_group_rate_resolver_test.go
…
user_group_rate_resolver.go
…
user_group_rate.go
…
user_msg_queue_service.go
…
user_service_test.go
…
user_service.go
…
user_subscription_port.go
…
user_subscription.go
…
user.go
…
wire_test.go
…
wire.go
…