llm_anthropic

package
v0.0.0-...-d769f72 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MessageQueueClaude map[string]string

Functions

func AddMessageToClaude

func AddMessageToClaude(conversationID string, message string) string

func CompletionWithSessionByClaude

func CompletionWithSessionByClaude(client *anthropic.Client, conversationID string, prompt string) (string, error)

func CompletionWithSessionWithStreamByClaude

func CompletionWithSessionWithStreamByClaude(client *anthropic.Client, conversationID string, prompt string, callBack anthropic.StreamCallback) error

func CompletionWithoutSessionByClaude

func CompletionWithoutSessionByClaude(client *anthropic.Client, prompt string) (string, error)

func CompletionWithoutSessionWithStreamByClaude

func CompletionWithoutSessionWithStreamByClaude(client *anthropic.Client, prompt string, callBack anthropic.StreamCallback) error

func GetClaudeClient

func GetClaudeClient() (*anthropic.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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