MCPcopy Create free account

hub / github.com/canarybyte/veridrop / functions

Functions825 in github.com/canarybyte/veridrop

↓ 1 callersFunction_run_openai
( base_url: str, api_key: str, model: str, cfg: ExecutionConfig, )
web/jobs.py:309
↓ 1 callersFunction_run_openai_baseline
( *, base_url: str, api_key: str, model: str, wire_api: str, probe_set: str, timeo
src/relay_detector/cli.py:787
↓ 1 callersFunction_run_ping
( base_url: str, api_key: str, model: str, timeout: float )
src/relay_detector/cli.py:112
↓ 1 callersFunction_run_probe
( client: OpenAIBaselineClient, probe: OpenAIProbe, *, request_model: str, )
src/relay_detector/protocols/openai/baseline.py:221
↓ 1 callersFunction_safe_int
(v)
src/relay_detector/protocols/anthropic/detectors/consistency.py:97
↓ 1 callersFunction_safe_int
(value)
src/relay_detector/protocols/openai/detectors/model_consistency.py:73
↓ 1 callersFunction_score_usage
( usage: dict[str, Any], baseline: dict[str, int], )
src/relay_detector/protocols/openai/detectors/token_parity.py:106
↓ 1 callersMethod_select_detectors
(self, model: str)
src/relay_detector/core/runner.py:59
↓ 1 callersFunction_seo_meta_for_report
Compute SEO title + description from a finished report. Each `/r/{job_id}` is a permanent landing page; without per-report meta, every report
web/server.py:566
↓ 1 callersFunction_shape_score
Score a single Chat Completions response 0–100 and list any issues.
src/relay_detector/protocols/gemini/detectors/protocol.py:91
↓ 1 callersFunction_sort_by_preference
Stable sort: items matching a preferred alias by index in that list, everything else after, original relative order preserved. Rationale: the
web/probe.py:306
↓ 1 callersFunction_status_label
(status: str, score: float)
web/image_report.py:93
↓ 1 callersFunction_stream_usage_close
(non_stream: dict[str, Any], stream: dict[str, Any])
src/relay_detector/protocols/anthropic/detectors/token_usage.py:229
↓ 1 callersFunction_synthesize_stream_response
Reduce a stream's chunks into one Chat Completions–shaped dict. Top-level id/model/object come from the first chunk. Content is the concatena
src/relay_detector/protocols/gemini/client.py:312
↓ 1 callersMethod_synthesize_stream_response
Reconstruct a non-stream-equivalent dict from streamed events. Used to feed PassiveDetector.observe() for streamed requests. Top-level
src/relay_detector/protocols/anthropic/client.py:415
↓ 1 callersFunction_tier_timeout_s
Per-tier HTTP timeout — see OpenAI variant for full rationale. Same scaling: 120s floor, +1s per 4k tokens. 950k → ~240s.
src/relay_detector/protocols/anthropic/detectors/long_context.py:54
↓ 1 callersFunction_tier_timeout_s
Per-tier HTTP timeout. The default 30s client timeout is too short for big probes — empirically 1M tokens of input take 2–4 minutes upstream d
src/relay_detector/protocols/openai/detectors/long_context.py:51
↓ 1 callersMethod_timed_run
( self, client: Any, model: str )
src/relay_detector/core/detectors_base.py:64
↓ 1 callersFunction_tokens_per_second
(report: dict[str, Any])
web/image_report.py:233
↓ 1 callersFunction_tool_calls
(resp: dict)
src/relay_detector/protocols/openai/detectors/function_calling.py:112
↓ 1 callersFunction_usage_close
(left: dict[str, Any], right: dict[str, Any])
src/relay_detector/protocols/gemini/detectors/integrity.py:168
↓ 1 callersFunction_usage_close
(left: dict[str, Any], right: dict[str, Any])
src/relay_detector/protocols/gemini/detectors/token_usage.py:190
↓ 1 callersFunction_usage_close
(left: dict[str, Any], right: dict[str, Any])
src/relay_detector/protocols/openai/detectors/integrity.py:162
↓ 1 callersFunction_verdict_caption
Mirrors result.html so JPG export and HTML report agree. verdict is the source of truth. scorer.effective_verdict() may downgrade a high-scor
web/image_report.py:115
↓ 1 callersFunction_verdict_color
(score: float, verdict: str)
web/image_report.py:105
↓ 1 callersMethod_with_retry
( self, op: Callable[[], Awaitable[tuple[dict[str, Any], dict[str, Any], httpx.Headers, int]]]
src/relay_detector/protocols/gemini/client.py:268
↓ 1 callersMethod_with_retry
( self, op: Callable[[], Awaitable[tuple[dict[str, Any], dict[str, Any], httpx.Headers, int]]]
src/relay_detector/protocols/openai/client.py:260
↓ 1 callersFunction_within_token_target
( counted_tokens: int, desired_tokens: int, count_budget: int )
src/relay_detector/protocols/anthropic/detectors/long_context.py:101
↓ 1 callersFunction_write_reference_cache
(cache: dict[str, Any])
src/relay_detector/protocols/openai/detectors/token_billing.py:524
↓ 1 callersMethodaclose
(self)
src/relay_detector/protocols/anthropic/client.py:109
↓ 1 callersFunctionaggregate
Scan all report JSONs, return (sorted relay stats, summary metrics). Sort: 1. Ranked relays (≥ 2 detections) first, by overall_median desc
web/leaderboard.py:194
↓ 1 callersFunctionbindHandoff
()
web/static/app.js:269
↓ 1 callersFunctionbuild
(out_path: Path)
scripts/build_test_pdf.py:24
↓ 1 callersFunctionbuild_all
Return one fresh instance of every implemented detector.
src/relay_detector/protocols/anthropic/detectors/__init__.py:23
↓ 1 callersFunctionbuild_all
()
src/relay_detector/protocols/openai/detectors/__init__.py:14
↓ 1 callersFunctionbuild_headers
(api_key: str, auth: str)
scripts/bai_api_probe.py:117
↓ 1 callersFunctioncall_anthropic_messages
( client: httpx.Client, base_url: str, headers: dict[str, str], model: str, prompt: str,
scripts/bai_api_probe.py:248
↓ 1 callersFunctioncall_model
( *, client: httpx.Client, base_url: str, headers: dict[str, str], endpoint: str, mode
scripts/bai_api_probe.py:202
↓ 1 callersFunctioncall_openai_chat
( client: httpx.Client, base_url: str, headers: dict[str, str], model: str, prompt: str,
scripts/bai_api_probe.py:219
↓ 1 callersMethodchat_completions_create
( self, **body: Any )
src/relay_detector/protocols/openai/baseline.py:39
↓ 1 callersMethodcount_tokens
(self, **body)
tests/test_active_detectors.py:418
↓ 1 callersFunctioncurrentProtocol
()
web/static/app.js:337
↓ 1 callersFunctiondefault_model
()
src/relay_detector/protocols/openai/__init__.py:22
↓ 1 callersFunctionendpointFor
()
web/static/app.js:326
↓ 1 callersFunctionextract_anthropic_text
(data: dict[str, Any])
scripts/bai_api_probe.py:273
↓ 1 callersFunctionfaqpage_jsonld
Build a single FAQPage schema.org JSON-LD covering every entry. Schema spec recommends one FAQPage per page with all Q/A as mainEntity. Multi
web/faq_data.py:428
↓ 1 callersMethodfinalize
Produce the result from accumulated observations.
src/relay_detector/core/detectors_base.py:108
↓ 1 callersFunctionfind_baseline_for
Auto-discover baseline file by model + mode in `baseline_dir`.
src/relay_detector/protocols/anthropic/comparator.py:93
↓ 1 callersFunctionis_valid_domain
Whether s is safe to accept as a path parameter for /leaderboard/{domain}.
web/leaderboard.py:59
↓ 1 callersFunctionline_iter
()
tests/test_client.py:486
↓ 1 callersFunctionlist_models
( client: httpx.Client, base_url: str, headers: dict[str, str] )
scripts/bai_api_probe.py:126
↓ 1 callersFunctionmain
()
scripts/bai_api_probe.py:18
↓ 1 callersFunctionmain
()
scripts/build_test_pdf.py:42
↓ 1 callersMethodmedian
(self)
web/leaderboard.py:83
↓ 1 callersFunctionmodel_choices
()
src/relay_detector/protocols/openai/__init__.py:18
↓ 1 callersFunctionmodels_match
Bidirectional prefix match with dot-vs-hyphen normalization (e.g. `gpt-5.4-mini` ≡ `gpt-5-4-mini`).
src/relay_detector/protocols/openai/config.py:55
↓ 1 callersMethodobserve
( self, request: dict[str, Any], response: dict[str, Any], headers: httpx.Head
src/relay_detector/protocols/anthropic/detectors/protocol.py:41
↓ 1 callersMethodobserve
( self, request: dict[str, Any], response: dict[str, Any], headers: httpx.Head
src/relay_detector/protocols/openai/detectors/protocol.py:23
↓ 1 callersFunctionparse_args
()
scripts/bai_api_probe.py:71
↓ 1 callersFunctionpick_default_model
(available: list[str])
src/relay_detector/protocols/gemini/__init__.py:48
↓ 1 callersFunctionprint_models
(models: list[dict[str, Any]])
scripts/bai_api_probe.py:138
↓ 1 callersFunctionrenderModelDeadError
(detail)
web/static/app.js:343
↓ 1 callersFunctionrenderProbeResult
(data)
web/static/app.js:174
↓ 1 callersFunctionrender_report_jpg
Render the report into a JPG and return the bytes.
web/image_report.py:313
↓ 1 callersMethodrender_terminal
(self, report: DetectionReport)
src/relay_detector/report.py:36
↓ 1 callersFunctionreport_path
(job_id: str, protocol: str)
web/jobs.py:148
↓ 1 callersMethodresponses_create
( self, **body: Any )
src/relay_detector/protocols/openai/baseline.py:34
↓ 1 callersMethodrun
(self, client: Any, model: str)
src/relay_detector/core/detectors_base.py:61
↓ 1 callersFunctionrunProbe
()
web/static/app.js:137
↓ 1 callersFunctionselect_targets
( models: list[dict[str, Any]], args: argparse.Namespace )
scripts/bai_api_probe.py:158
↓ 1 callersFunctionsummarize_openai_baseline
(results: list[dict[str, Any]])
src/relay_detector/protocols/openai/baseline.py:319
↓ 1 callersFunctiontier_banner
()
src/relay_detector/protocols/gemini/__init__.py:105
↓ 1 callersFunctiontier_banner
()
src/relay_detector/protocols/openai/__init__.py:100
↓ 1 callersMethodto_json
(self, report: DetectionReport)
src/relay_detector/report.py:129
↓ 1 callersFunctiontool_calls
(resp: dict[str, Any])
src/relay_detector/protocols/gemini/detectors/utils.py:32
↓ 1 callersFunctiontotal_question_count
()
web/faq_data.py:424
↓ 1 callersMethodwrite_json
(self, report: DetectionReport, path: Path)
src/relay_detector/report.py:132
Method__aenter__
(self)
src/relay_detector/protocols/gemini/client.py:88
Method__aenter__
(self)
src/relay_detector/protocols/anthropic/client.py:112
Method__aenter__
(self)
src/relay_detector/protocols/openai/client.py:79
Method__aexit__
(self, *_: object)
src/relay_detector/protocols/gemini/client.py:91
Method__aexit__
(self, *_: object)
src/relay_detector/protocols/anthropic/client.py:115
Method__aexit__
(self, *_: object)
src/relay_detector/protocols/openai/client.py:82
Method__init__
(self, console: Console | None = None)
src/relay_detector/report.py:33
Method__init__
( self, base_client: Any, detectors: list[BaseDetector], config: ExecutionConf
src/relay_detector/core/runner.py:42
Method__init__
(self, status: int, body: str, headers: httpx.Headers | None = None)
src/relay_detector/protocols/gemini/client.py:54
Method__init__
( self, base: GeminiClient, passive_detectors: list[PassiveDetector] | None = None,
src/relay_detector/protocols/gemini/client.py:163
Method__init__
( self, base_client: GeminiClient, detectors: list[BaseDetector], config: Exec
src/relay_detector/protocols/gemini/runner.py:35
Method__init__
(self)
src/relay_detector/protocols/gemini/detectors/protocol.py:37
Method__init__
(self, status: int, body: str, headers: httpx.Headers | None = None)
src/relay_detector/protocols/anthropic/client.py:76
Method__init__
( self, base: AnthropicClient, passive_detectors: list[PassiveDetector] | None = None,
src/relay_detector/protocols/anthropic/client.py:247
Method__init__
( self, base_client: AnthropicClient, detectors: list[BaseDetector], config: E
src/relay_detector/protocols/anthropic/runner.py:36
Method__init__
(self)
src/relay_detector/protocols/anthropic/detectors/protocol.py:37
Method__init__
(self)
src/relay_detector/protocols/anthropic/detectors/message_id.py:31
Method__init__
(self, status: int, body: str, headers: httpx.Headers | None = None)
src/relay_detector/protocols/openai/client.py:45
Method__init__
( self, base_url: str = DEFAULT_OPENAI_BASE_URL, api_key: str | None = None, t
src/relay_detector/protocols/openai/client.py:55
Method__init__
( self, base: OpenAIChatClient, passive_detectors: list[PassiveDetector] | None = None
src/relay_detector/protocols/openai/client.py:163
Method__init__
( self, base_client: OpenAIChatClient, detectors: list[BaseDetector], config:
src/relay_detector/protocols/openai/runner.py:35
Method__init__
(self)
src/relay_detector/protocols/openai/detectors/protocol.py:20
Method__init__
(self)
tests/test_jobs_long_context.py:30
← previousnext →301–400 of 825, ranked by callers