confidential-model-router

command module
v0.0.106 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: AGPL-3.0 Imports: 27 Imported by: 0

README

Confidential Inference Router

Tinfoil's confidential inference model router terminates TLS connections (optionally with EHBP), inspects the model name, and directs it to a verified secure inference enclave.

Request bodies

The router accepts OpenAI-compatible bodies on /v1/chat/completions and /v1/responses. A few Tinfoil-specific top-level fields are recognized and stripped before the body is forwarded to the model enclave:

  • code_execution_options — activates the code-execution tool profile. When code execution is requested, this object carries the per-request credentials (accessToken, encryptionKey, containerAuthToken).
  • web_search_options — activates the web-search tool profile.
  • pii_check_options — activates the PII safety check.

Tool Calling

Client side tool calling is handled by the client. Server-side tools currently supported: web search and code execution.

To handle prompting, we add some instructions about how to call each tool in the system prompt, and we have a short description in each tool.

vLLM handles putting the system prompt + the tool prompts together, using internal templates built for the specific models.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL