Registry mapping LLM provider IDs to configuration details for API endpoints and environment variables.
// Source: https://github.com/clawbench-dev/clawbench | License: MIT | Copyright 2025 xulongzhe
// Provided via justclaw.it.com; keep this notice with the code.
package model
import (
"strings"
)
// ModelInfo represents a model returned from the /v1/models endpoint.
type ModelInfo struct {
ID string `json:"id"`
Name string `json:"name"`
Created int64 `json:"created"` // Unix timestamp from /v1/models
}
// ProviderSpec describes a built-in LLM provider.
// ChatEndpoint and ModelsEndpoint are separate because different providers
// have inconsistent path structures (e.g., DeepSeek /v1/chat/completions
// but /models derivation would miss /v1/).
type ProviderSpec struct {
ID string `json:"id"`
Name string `json:"name"`
EnvVar string `json:"envV
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key