langchainwrap

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

inspire by https://github.com/tmc/langchaingo/pull/702

Index

Constants

View Source
const (
	GatewayUseExternalURLEnv = "GATEWAY_USE_EXTERNAL_URL"
)

Variables

View Source
var DebugHTTPClient = &http.Client{
	Transport: &logTransport{http.DefaultTransport},
}

DebugHTTPClient is a http.Client that logs the request and response with full contents.

Functions

func GetLangchainLLM

func GetLangchainLLM(ctx context.Context, llm *v1alpha1.LLM, c client.Client, model string) (langchainllms.Model, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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