MCPcopy Create free account

hub / github.com/canarybyte/veridrop / functions

Functions825 in github.com/canarybyte/veridrop

↓ 3 callersFunction_protocol_from_model
(model: str)
web/server.py:67
↓ 3 callersFunction_random_id
Generate a unique identifier like ALPHA-3F8D-2C91 — short enough to fit naturally in a sentence, long enough to never collide with normal text
src/relay_detector/core/long_context.py:384
↓ 3 callersFunction_responses_payload
(**overrides)
tests/test_openai_protocol_templates.py:12
↓ 3 callersFunction_sanitize_body
Strip body fields the target model is known to reject. Tolerates the common dot-vs-hyphen typo (e.g. user types `claude-opus-4.7`) by normaliz
src/relay_detector/protocols/anthropic/client.py:44
↓ 3 callersFunction_sanitize_body
(body: dict[str, Any])
src/relay_detector/protocols/openai/client.py:37
↓ 3 callersFunction_skip_tier
( target_tokens: int, needles_total: int, reason: str, *, error: str | None = None, in
src/relay_detector/protocols/anthropic/detectors/long_context.py:121
↓ 3 callersFunction_usage_arithmetic_ok
(usage: dict[str, Any])
src/relay_detector/protocols/openai/detectors/token_billing.py:212
↓ 3 callersFunction_usage_ints
(usage: dict[str, Any])
src/relay_detector/protocols/openai/detectors/token_billing.py:488
↓ 3 callersMethodaclose
(self)
src/relay_detector/protocols/gemini/client.py:85
↓ 3 callersMethodaclose
(self)
src/relay_detector/protocols/openai/client.py:76
↓ 3 callersFunctionbuild_question
The retrieval prompt appended after the haystack. Uses an explicit "report each on its own line" structure so we can parse model output relia
src/relay_detector/core/long_context.py:250
↓ 3 callersFunctionchoose_endpoint
( requested: str, endpoints: list[str], model_id: str )
scripts/bai_api_probe.py:187
↓ 3 callersFunctioncollect_openai_official_baseline
Run official OpenAI probes and return a JSON-serializable report.
src/relay_detector/protocols/openai/baseline.py:187
↓ 3 callersMethodcount_tokens
POST /v1/messages/count_tokens. Anthropic's count endpoint estimates input tokens for the same request shape used by Messages. Relays
src/relay_detector/protocols/anthropic/client.py:143
↓ 3 callersFunctionescapeHtml
(s)
web/static/app.js:285
↓ 3 callersFunctionextract_openai_features
Extract stable protocol fingerprints from one raw response.
src/relay_detector/protocols/openai/baseline.py:294
↓ 3 callersFunctionmake_client
(base_url: str, api_key: str, timeout: float)
src/relay_detector/protocols/anthropic/__init__.py:59
↓ 3 callersFunctionmodel_choices
()
src/relay_detector/protocols/gemini/__init__.py:25
↓ 3 callersFunctionmodels_match
Bidirectional prefix match (alias <-> snapshot tolerance), with dot-vs-hyphen normalization.
src/relay_detector/protocols/anthropic/config.py:180
↓ 3 callersFunctionnormalize_openai_base_url
(base_url: str)
src/relay_detector/protocols/openai/client.py:30
↓ 3 callersFunctionrx_match
(pattern: str)
src/relay_detector/protocols/anthropic/detectors/behavioral_signature.py:101
↓ 3 callersMethodto_dict
(self)
src/relay_detector/protocols/openai/protocol_templates.py:122
↓ 3 callersFunctionusage
(resp: dict[str, Any])
src/relay_detector/protocols/gemini/detectors/utils.py:43
↓ 3 callersFunctionvalidate_openai_payload
Validate a raw OpenAI response payload against a wire API template.
src/relay_detector/protocols/openai/protocol_templates.py:158
↓ 2 callersMethod_absorb_response_usage
(self, response: dict[str, Any])
src/relay_detector/protocols/gemini/client.py:218
↓ 2 callersMethod_absorb_response_usage
(self, response: dict[str, Any])
src/relay_detector/protocols/openai/client.py:221
↓ 2 callersFunction_behavioral_signature
(sig_id: str)
tests/test_active_detectors.py:215
↓ 2 callersMethod_broadcast
( self, request: dict[str, Any], response: dict[str, Any], headers: httpx.Head
src/relay_detector/protocols/gemini/client.py:205
↓ 2 callersMethod_broadcast
( self, request: dict[str, Any], response: dict[str, Any], headers: httpx.Head
src/relay_detector/protocols/anthropic/client.py:300
↓ 2 callersFunction_capture_cfg
Drop-in for _run_anthropic/_run_openai/_run_gemini that captures the passed-in ExecutionConfig and returns a minimal valid outcome shape.
tests/test_jobs_long_context.py:35
↓ 2 callersFunction_check_eq
( value: Any, expected: Any, path: str, issues: list[ProtocolIssue], )
src/relay_detector/protocols/openai/protocol_templates.py:331
↓ 2 callersFunction_check_json_object_string
( value: str, path: str, issues: list[ProtocolIssue], )
src/relay_detector/protocols/openai/protocol_templates.py:896
↓ 2 callersFunction_check_model
( value: Any, request_model: str | None, path: str, issues: list[ProtocolIssue], )
src/relay_detector/protocols/openai/protocol_templates.py:368
↓ 2 callersFunction_check_top_level
( payload: dict[str, Any], template: ProtocolTemplate, issues: list[ProtocolIssue], )
src/relay_detector/protocols/openai/protocol_templates.py:281
↓ 2 callersFunction_check_usage
( usage: Any, required: tuple[str, ...], path: str, issues: list[ProtocolIssue], )
src/relay_detector/protocols/openai/protocol_templates.py:399
↓ 2 callersFunction_client_ip
Resolve the originating client IP. uvicorn is started with --proxy-headers --forwarded-allow-ips=* so by the time FastAPI sees the request, r
web/server.py:260
↓ 2 callersFunction_collect_stream
(client, body: dict[str, Any])
src/relay_detector/protocols/gemini/detectors/integrity.py:121
↓ 2 callersFunction_collect_stream
(client, *, model: str, body: dict[str, Any])
src/relay_detector/protocols/openai/detectors/integrity.py:100
↓ 2 callersFunction_collect_stream_usage
(client, body: dict[str, Any])
src/relay_detector/protocols/openai/detectors/token_billing.py:185
↓ 2 callersFunction_compare_reference
( short_usage: dict[str, Any], long_usage: dict[str, Any], stream_usage: dict[str, Any], refer
src/relay_detector/protocols/openai/detectors/token_billing.py:396
↓ 2 callersFunction_completion_sane
completion_tokens must not exceed the request cap. For thinking models (e.g. Gemini 3) the field includes reasoning tokens and can fill the e
src/relay_detector/protocols/gemini/detectors/token_usage.py:178
↓ 2 callersFunction_completion_sane
(usage: dict[str, Any])
src/relay_detector/protocols/openai/detectors/token_billing.py:224
↓ 2 callersFunction_extract_domain
Strip protocol + path, keep host. example: https://api.x.com/v1 → api.x.com.
web/leaderboard.py:164
↓ 2 callersFunction_finish_reason
(resp: dict)
src/relay_detector/protocols/openai/detectors/function_calling.py:121
↓ 2 callersFunction_in_completion_range
(value: int | None, range_info: Any)
src/relay_detector/protocols/openai/detectors/token_billing.py:474
↓ 2 callersFunction_index_results
(report: dict[str, Any])
src/relay_detector/protocols/anthropic/comparator.py:119
↓ 2 callersFunction_is_json_object
(value: str)
src/relay_detector/protocols/openai/baseline.py:511
↓ 2 callersFunction_join_text
(content)
src/relay_detector/protocols/anthropic/detectors/knowledge.py:174
↓ 2 callersFunction_join_text_blocks
(content: Any)
src/relay_detector/protocols/anthropic/detectors/token_usage.py:205
↓ 2 callersFunction_load_pdf_b64
()
src/relay_detector/protocols/anthropic/detectors/pdf.py:31
↓ 2 callersFunction_load_report
(path: Path)
web/leaderboard.py:187
↓ 2 callersFunction_load_signatures
()
src/relay_detector/protocols/anthropic/detectors/behavioral_signature.py:28
↓ 2 callersFunction_message_text
(resp: dict[str, Any])
src/relay_detector/protocols/openai/detectors/token_billing.py:203
↓ 2 callersFunction_normalize_text
(value: str)
src/relay_detector/protocols/gemini/detectors/integrity.py:164
↓ 2 callersFunction_normalize_text
(value: str)
src/relay_detector/protocols/openai/detectors/integrity.py:158
↓ 2 callersFunction_output_sane
(usage: dict[str, Any])
src/relay_detector/protocols/anthropic/detectors/token_usage.py:217
↓ 2 callersFunction_parse_sse
Minimal SSE parser. Each event is a block of lines terminated by blank line. We only care about `event:` and `data:` lines. `data:` may span mult
src/relay_detector/protocols/anthropic/client.py:192
↓ 2 callersFunction_parse_timestamp
(ts: Any)
web/leaderboard.py:177
↓ 2 callersFunction_probe_schema
()
src/relay_detector/protocols/openai/baseline.py:458
↓ 2 callersMethod_probe_tier
( self, client, model: str, target_tokens: int, seed: str, ctx
src/relay_detector/protocols/anthropic/detectors/long_context.py:299
↓ 2 callersFunction_prompt_text
(body: dict[str, Any])
tests/test_gemini_phase3.py:116
↓ 2 callersFunction_python_files
(path: Path)
tests/test_protocol_isolation.py:11
↓ 2 callersFunction_reference_path
()
src/relay_detector/protocols/openai/detectors/token_billing.py:504
↓ 2 callersFunction_requires_precise_count
(target_tokens: int, ctx_limit: int)
src/relay_detector/protocols/anthropic/detectors/long_context.py:81
↓ 2 callersFunction_responses_payload
(**overrides)
tests/test_openai_baseline.py:19
↓ 2 callersFunction_score
(issues: list[ProtocolIssue])
src/relay_detector/protocols/openai/protocol_templates.py:934
↓ 2 callersFunction_stage_reports
Helper: spec is list of (domain, [score1, score2, ...]).
tests/test_leaderboard_ranking.py:19
↓ 2 callersFunction_stream_chunks
( text: str = "pong", *, model: str = "gemini-2.5-flash", prompt_tokens: int = 8, completi
tests/test_gemini_phase3.py:70
↓ 2 callersFunction_stream_usage_compatible
Return whether stream usage looks compatible with a non-stream probe. For reasoning-capable models, the same short prompt can spend a different
src/relay_detector/protocols/openai/detectors/token_billing.py:242
↓ 2 callersFunction_template_lastmod
Date string from a template's mtime, or '' if missing/unreadable.
web/server.py:689
↓ 2 callersMethod_trigger_backoff
(self, retry_after: float)
src/relay_detector/protocols/gemini/client.py:188
↓ 2 callersMethod_trigger_backoff
(self, retry_after: float)
src/relay_detector/protocols/anthropic/client.py:282
↓ 2 callersMethod_trigger_backoff
(self, retry_after: float)
src/relay_detector/protocols/openai/client.py:191
↓ 2 callersFunction_usage
(resp: dict[str, Any])
src/relay_detector/protocols/anthropic/detectors/token_usage.py:200
↓ 2 callersFunction_usage_ints
(usage: dict[str, Any])
src/relay_detector/protocols/openai/detectors/token_parity.py:96
↓ 2 callersMethod_wait_for_backoff
(self)
src/relay_detector/protocols/gemini/client.py:181
↓ 2 callersMethod_wait_for_backoff
(self)
src/relay_detector/protocols/anthropic/client.py:274
↓ 2 callersMethod_wait_for_backoff
(self)
src/relay_detector/protocols/openai/client.py:184
↓ 2 callersFunction_weather_parameters
()
src/relay_detector/protocols/openai/baseline.py:470
↓ 2 callersMethod_with_retry
( self, op: Callable[[], Awaitable[ tuple[dict[str, Any], dict[str, Any], httpx.He
src/relay_detector/protocols/anthropic/client.py:464
↓ 2 callersMethodapplies_to
Return False to skip this detector for the given model.
src/relay_detector/core/detectors_base.py:30
↓ 2 callersFunctionbuild_all
()
src/relay_detector/protocols/gemini/detectors/__init__.py:13
↓ 2 callersFunctionbuild_detectors
(mode: Mode | None = None)
src/relay_detector/protocols/openai/__init__.py:64
↓ 2 callersFunctionbuild_openai_baseline_probes
Build low-cost probes that exercise official OpenAI wire features.
src/relay_detector/protocols/openai/baseline.py:52
↓ 2 callersMethodchat_completions_create
(self, **kwargs)
tests/test_long_context.py:257
↓ 2 callersFunctionclear_cache
Test helper.
web/probe.py:363
↓ 2 callersFunctiondefault_base_url
Suggested base URL placeholder for the Gemini submission form.
src/relay_detector/protocols/gemini/__init__.py:64
↓ 2 callersFunctionfilter
(q)
web/static/app.js:54
↓ 2 callersFunctionload_report
(path: Path)
src/relay_detector/protocols/anthropic/comparator.py:89
↓ 2 callersMethodmessages_stream
Streaming variant. Note: streaming requests still respect the semaphore, but retry logic only applies to the initial connect — once e
src/relay_detector/protocols/anthropic/client.py:345
↓ 2 callersFunctionreset
Test helper — wipe all buckets.
web/ratelimit.py:47
↓ 2 callersFunctionsetPillHtml
(level, html)
web/static/app.js:256
↓ 2 callersFunctionsetSubmitEnabled
(ok, reason)
web/static/app.js:262
↓ 2 callersMethodto_dict
(self)
src/relay_detector/core/comparator_framework.py:44
↓ 1 callersMethod__init__
( self, base_url: str = DEFAULT_GEMINI_OPENAI_BASE_URL, api_key: str | None = None,
src/relay_detector/protocols/gemini/client.py:64
↓ 1 callersMethod__init__
( self, base_url: str, api_key: str, timeout: float = DEFAULT_TIMEOUT,
src/relay_detector/protocols/anthropic/client.py:86
↓ 1 callersMethod_absorb_response_usage
(self, response: dict[str, Any])
src/relay_detector/protocols/anthropic/client.py:314
↓ 1 callersMethod_absorb_stream_event
Update per-stream local usage from an event. message_start carries true input_tokens; message_delta carries cumulative output_tokens
src/relay_detector/protocols/anthropic/client.py:438
↓ 1 callersFunction_adaptive_effort_for_model
(model: str)
src/relay_detector/protocols/anthropic/detectors/thinking_signature.py:49
↓ 1 callersFunction_add_chat_features
(features: dict[str, Any], payload: dict[str, Any])
src/relay_detector/protocols/openai/baseline.py:393
← previousnext →101–200 of 825, ranked by callers