Skip to content
/ fourier Public

Interface and interact with Anthropic/OpenAI API:s in a universal way

License

Notifications You must be signed in to change notification settings

mttias/fourier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fourier

To install dependencies:

bun install

Prompt the API

Example:

const model = new Fourier({ model: "gpt-3.5-turbo" });
const prompt = "Tell me a fun fact about Fourier!";

const res = await model.call(prompt)

Stream the response

Example:

const queue = []
const model = new Fourier({ model: "gpt-3.5-turbo" });
const prompt = "Tell me a fun fact about Fourier!";

for await (const delta of model.stream(prompt)) {
    queue.push(delta)
}

About

Interface and interact with Anthropic/OpenAI API:s in a universal way

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published