Skip to content

windymelt/openai-scala-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI & Scala 3

This code defines fundamental OpenAI text completion API via Tapir and make HTTP request it via Http4s.

Usage

OPENAI_APIKEY="..." OPENAI_ORG="..." sbt run

What is Tapir?

Tapir is Endpoint definition library. You can define library(framework)-agnostic endpoint definition.

Tapir can define just an endpoint. So you can make use of it for both client code and server code.

See OpenAI.scala for actual endpoint definition.

What is Http4s?

Http4s is an HTTP server/client library, highly integrated with Cats and other functional components.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages