internal/

directory
v0.1.58 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT

Directories

Path Synopsis
Package admin provides the admin REST API and dashboard for GoModel.
Package admin provides the admin REST API and dashboard for GoModel.
dashboard
Package dashboard provides the embedded admin dashboard UI for GoModel.
Package dashboard provides the embedded admin dashboard UI for GoModel.
Package anthropicapi translates the Anthropic Messages API dialect to and from GoModel's canonical chat types.
Package anthropicapi translates the Anthropic Messages API dialect to and from GoModel's canonical chat types.
Package app provides the main application struct for centralized dependency management and lifecycle control of the GoModel server.
Package app provides the main application struct for centralized dependency management and lifecycle control of the GoModel server.
Package auditlog provides audit logging for the AI gateway.
Package auditlog provides audit logging for the AI gateway.
Package batch provides persistence for OpenAI-compatible batch lifecycle endpoints.
Package batch provides persistence for OpenAI-compatible batch lifecycle endpoints.
Package cache provides a generic key-value store abstraction.
Package cache provides a generic key-value store abstraction.
modelcache
Package modelcache provides model-specific cache types and interfaces.
Package modelcache provides model-specific cache types and interfaces.
Package conversationstore provides persistence for the OpenAI-compatible Conversations lifecycle endpoints.
Package conversationstore provides persistence for the OpenAI-compatible Conversations lifecycle endpoints.
Package core provides core types and interfaces for the LLM gateway.
Package core provides core types and interfaces for the LLM gateway.
Package failover stores operator-managed manual failover mappings.
Package failover stores operator-managed manual failover mappings.
Package filestore persists provider ownership for uploaded files.
Package filestore persists provider ownership for uploaded files.
Package gateway contains transport-independent gateway use cases.
Package gateway contains transport-independent gateway use cases.
Package guardrails provides a pluggable pipeline for request-level guardrails.
Package guardrails provides a pluggable pipeline for request-level guardrails.
Package httpclient provides a centralized HTTP client factory with unified configuration.
Package httpclient provides a centralized HTTP client factory with unified configuration.
Package live provides in-process realtime dashboard event fan-out.
Package live provides in-process realtime dashboard event fan-out.
Package llmclient provides a base HTTP client for LLM providers with: - Request marshaling/unmarshaling - Retries with exponential backoff and jitter - Standardized error parsing (429, 502, 503, 504) - Circuit breaking with half-open state protection
Package llmclient provides a base HTTP client for LLM providers with: - Request marshaling/unmarshaling - Retries with exponential backoff and jitter - Standardized error parsing (429, 502, 503, 504) - Circuit breaking with half-open state protection
Package mcpgateway aggregates upstream MCP servers behind GoModel's authenticated /mcp endpoints.
Package mcpgateway aggregates upstream MCP servers behind GoModel's authenticated /mcp endpoints.
Package modeldata provides fetching, parsing, and merging of the external AI model metadata registry (models.json) for enriching GoModel's model data.
Package modeldata provides fetching, parsing, and merging of the external AI model metadata registry (models.json) for enriching GoModel's model data.
Package modelselectors normalizes provider/model selector strings shared by model-level admin features.
Package modelselectors normalizes provider/model selector strings shared by model-level admin features.
Package observability provides instrumentation for metrics, tracing, and logging.
Package observability provides instrumentation for metrics, tracing, and logging.
Package platformdir resolves the OS-conventional per-user directories for GoModel's durable data and caches, used when no explicit path is configured.
Package platformdir resolves the OS-conventional per-user directories for GoModel's durable data and caches, used when no explicit path is configured.
Package providers provides a factory for creating provider instances.
Package providers provides a factory for creating provider instances.
anthropic
Package anthropic provides Anthropic API integration for the LLM gateway.
Package anthropic provides Anthropic API integration for the LLM gateway.
bailian
Package bailian provides the Alibaba Cloud Bailian (百炼 / DashScope) provider.
Package bailian provides the Alibaba Cloud Bailian (百炼 / DashScope) provider.
bedrock
Package bedrock provides Amazon Bedrock integration for the LLM gateway.
Package bedrock provides Amazon Bedrock integration for the LLM gateway.
bedrockmantle
Package bedrockmantle provides direct access to Amazon Bedrock's OpenAI-compatible Mantle API.
Package bedrockmantle provides direct access to Amazon Bedrock's OpenAI-compatible Mantle API.
deepseek
Package deepseek provides DeepSeek API integration for the LLM gateway.
Package deepseek provides DeepSeek API integration for the LLM gateway.
fireworks
Package fireworks provides Fireworks AI API integration for the LLM gateway.
Package fireworks provides Fireworks AI API integration for the LLM gateway.
gemini
Package gemini provides Google Gemini API integration for the LLM gateway.
Package gemini provides Google Gemini API integration for the LLM gateway.
googlecommon
Package googlecommon holds infrastructure shared by GoModel's Google-backed providers (Gemini AI Studio + Vertex AI).
Package googlecommon holds infrastructure shared by GoModel's Google-backed providers (Gemini AI Studio + Vertex AI).
groq
Package groq provides Groq API integration for the LLM gateway.
Package groq provides Groq API integration for the LLM gateway.
health
Package health tracks recent request outcomes per provider and model.
Package health tracks recent request outcomes per provider and model.
kilo
Package kilo provides Kilo AI Gateway integration for the LLM gateway.
Package kilo provides Kilo AI Gateway integration for the LLM gateway.
kimicode
Package kimicode provides Kimi Code API integration for the LLM gateway.
Package kimicode provides Kimi Code API integration for the LLM gateway.
meta
Package meta provides Meta Model API integration for the LLM gateway.
Package meta provides Meta Model API integration for the LLM gateway.
minimax
Package minimax provides MiniMax API integration for the LLM gateway.
Package minimax provides MiniMax API integration for the LLM gateway.
ollama
Package ollama provides Ollama API integration for the LLM gateway.
Package ollama provides Ollama API integration for the LLM gateway.
openai
Package openai provides OpenAI API integration for the LLM gateway.
Package openai provides OpenAI API integration for the LLM gateway.
opencodego
Package opencodego provides OpenCode Zen (Go subscription) integration for the LLM gateway.
Package opencodego provides OpenCode Zen (Go subscription) integration for the LLM gateway.
vertex
Package vertex provides Google Vertex AI Gemini integration.
Package vertex provides Google Vertex AI Gemini integration.
vllm
Package vllm provides vLLM OpenAI-compatible API integration for the LLM gateway.
Package vllm provides vLLM OpenAI-compatible API integration for the LLM gateway.
xai
Package xai provides xAI (Grok) API integration for the LLM gateway.
Package xai provides xAI (Grok) API integration for the LLM gateway.
xiaomi
Package xiaomi provides Xiaomi MiMo API integration for the LLM gateway.
Package xiaomi provides Xiaomi MiMo API integration for the LLM gateway.
zai
Package zai provides Z.ai API integration for the LLM gateway.
Package zai provides Z.ai API integration for the LLM gateway.
Package ratelimit enforces request, token, and concurrency limits for the AI gateway.
Package ratelimit enforces request, token, and concurrency limits for the AI gateway.
Package realtime implements a transparent, provider-agnostic websocket reverse proxy for OpenAI-compatible realtime (speech-to-speech) sessions.
Package realtime implements a transparent, provider-agnostic websocket reverse proxy for OpenAI-compatible realtime (speech-to-speech) sessions.
Package responsestore provides persistence for OpenAI-compatible Responses lifecycle endpoints.
Package responsestore provides persistence for OpenAI-compatible Responses lifecycle endpoints.
Package server provides HTTP handlers and server setup for the LLM gateway.
Package server provides HTTP handlers and server setup for the LLM gateway.
Package storage provides shared database connections for all features.
Package storage provides shared database connections for all features.
sqlutil
Package sqlutil provides small SQL query-building and value-conversion helpers shared by the SQL-backed stores and readers.
Package sqlutil provides small SQL query-building and value-conversion helpers shared by the SQL-backed stores and readers.
Package tagging labels requests based on configurable HTTP headers.
Package tagging labels requests based on configurable HTTP headers.
Package usage provides token usage tracking for the AI gateway.
Package usage provides token usage tracking for the AI gateway.
Package validation provides the shared validation error type used by admin-managed resources (aliases, auth keys, guardrails, workflows, model selectors and overrides).
Package validation provides the shared validation error type used by admin-managed resources (aliases, auth keys, guardrails, workflows, model selectors and overrides).
Package virtualmodels unifies model aliases (redirects) and model access overrides (policies) behind one entity, the virtual model, persisted in a single virtual_models table.
Package virtualmodels unifies model aliases (redirects) and model access overrides (policies) behind one entity, the virtual model, persisted in a single virtual_models table.

Jump to

Keyboard shortcuts

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