deepseek

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package deepseek connects to the DeepSeek API.

Index

Constants

View Source
const (
	ProviderOptionLogprobs         = "logprobs"
	ProviderOptionTopLogprobs      = "top_logprobs"
	ProviderOptionUserID           = "user_id"
	ProviderOptionFrequencyPenalty = "frequency_penalty"
	ProviderOptionPresencePenalty  = "presence_penalty"
)

Keys accepted in Request.ProviderOptions, sent as native request fields.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = compat.Config

Config and Provider are shared with package compat.

type Provider added in v1.9.0

type Provider = compat.Provider

Config and Provider are shared with package compat.

func New

func New(cfg Config) (*Provider, error)

New connects to https://api.deepseek.com. Thinking maps to thinking.type "enabled" or "disabled" with Effort as reasoning_effort; BudgetTokens is rejected. Strict tools require BaseURL "https://api.deepseek.com/beta" and Strict on every tool. JSON Schema output uses a prompt with JSON mode; schema adherence is not enforced.

Jump to

Keyboard shortcuts

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