ChatGpt

io.github.quafadas.dairect.ChatGpt
See theChatGpt companion object
trait ChatGpt

Attributes

Companion
object
Experimental
true
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def chat(messages: List[AiMessage], model: String, temperature: Option[Double], tools: Option[Document], response_format: Option[AiResponseFormat]): IO[ChatResponse]

https://platform.openai.com/docs/api-reference/chat

Experimental methods

def stream(messages: List[AiMessage], model: String, temperature: Option[Double], tools: Option[Document], response_format: Option[AiResponseFormat], authdClient: Resource[IO, Client[IO]], baseUrl: String): Stream[IO, String]
Extension method from io.github.quafadas.dairect

Attributes

Experimental
true
def streamRaw(messages: List[AiMessage], model: String, temperature: Option[Double], tools: Option[Document], response_format: Option[AiResponseFormat], authdClient: Resource[IO, Client[IO]], baseUrl: String): Stream[IO, List[ChatChunk]]
Extension method from io.github.quafadas.dairect

Attributes

Experimental
true