Skip to content

SrJuggernaut/langchain-text-generation-webui

Repository files navigation

langchain-text-generation-webui

This package still in development and maybe not ready for production use, use it at your own risk.

Overview

This is a oobabooga/text-generation-webui integration for hwchase17/langchainjs to generate text from the text-generation-webui api.

Installation

npm install langchain-text-generation-webui langchain

Usage

import { TextGenerationWebUi } from 'langchain-text-generation-webui';

const textGenerationWebUi = new TextGenerationWebUi({
  url: 'http://localhost:5005',
});

const prompt = 'Hello, my name is'

 const res = await textGenerationWebUi.call(prompt, {
  temperature: 0.5
 })

 console.log(res) // John Doe...

About

text-generation-webui api implementation to use with langchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published