vclaude

package
v0.0.0-...-3b69c6d Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

vClaude Provider Generator

This directory contains a Python script for generating the vClaude provider code based on the Claude provider implementation.

Usage

To generate the vClaude provider code, run the following command from the root of the project:

python3 provider/vclaude/vclaude_generator.py --srcs provider/claude/claude.go --outs provider/vclaude/vclaude.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

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

func NewEndpoint

func NewEndpoint(projectId string, region string) (*Endpoint, error)

func (*Endpoint) GenerateChatCompletion

func (ep *Endpoint) GenerateChatCompletion(ctx context.Context, openaiRequest *openai.ChatCompletionRequest) (*openai.ChatCompletionResponse, error)

func (*Endpoint) Ping

func (ep *Endpoint) Ping(ctx context.Context) (time.Duration, error)

func (*Endpoint) Provider

func (ep *Endpoint) Provider() string

func (*Endpoint) Region

func (ep *Endpoint) Region() string

func (*Endpoint) Shutdown

func (ep *Endpoint) Shutdown() error

Jump to

Keyboard shortcuts

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