Documentation
¶
Overview ¶
Package deepseek provides DeepSeek API integration for the LLM gateway.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Registration = providers.Registration{ Type: "deepseek", New: New, PassthroughSemanticEnricher: passthroughSemanticEnricher, Discovery: providers.DiscoveryConfig{ DefaultBaseURL: defaultBaseURL, }, }
Registration provides factory registration for the DeepSeek provider.
Functions ¶
func New ¶
func New(cfg providers.ProviderConfig, opts providers.ProviderOptions) core.Provider
New creates a new DeepSeek provider.
Types ¶
type Provider ¶
type Provider struct {
*openai.ChatCompatible
}
Provider implements the core.Provider interface for DeepSeek. DeepSeek's API is OpenAI-compatible, so all transport goes through the shared chat-centric adapter; the only quirks are the reasoning-effort remap (applied via the AdaptChatRequest hook) and the missing embeddings endpoint.
func NewWithHTTPClient ¶
func NewWithHTTPClient(apiKey string, baseURL string, httpClient *http.Client, hooks llmclient.Hooks) *Provider
NewWithHTTPClient creates a new DeepSeek provider with a custom HTTP client. If httpClient is nil, http.DefaultClient is used.
func (*Provider) Embeddings ¶
func (p *Provider) Embeddings(_ context.Context, _ *core.EmbeddingRequest) (*core.EmbeddingResponse, error)
Embeddings returns an error because DeepSeek does not expose an embeddings endpoint.