dmr

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertParametersToSchema added in v1.7.0

func ConvertParametersToSchema(params any) (any, error)

ConvertParametersToSchema converts parameters to DMR Schema format

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents an DMR client wrapper It implements the provider.Provider interface

func NewClient

func NewClient(ctx context.Context, cfg *latest.ModelConfig, opts ...options.Opt) (*Client, error)

NewClient creates a new DMR client from the provided configuration

func (*Client) CreateChatCompletionStream

func (c *Client) CreateChatCompletionStream(ctx context.Context, messages []chat.Message, requestTools []tools.Tool) (chat.MessageStream, error)

CreateChatCompletionStream creates a streaming chat completion request It returns a stream that can be iterated over to get completion chunks

func (*Client) ID

func (c *Client) ID() string

func (*Client) Options added in v1.7.1

func (c *Client) Options() options.ModelOptions

Options returns the effective model options used by this client.

Jump to

Keyboard shortcuts

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