-
Abstract class for WorkerAI models as they are all initialized the same way.
-
Multiple models leverage the same output format, so we can use this class to parse the response.
Public interface to interact with the WorkerAI API.
Represents a request for AI chat completion.
Defines the roles a message can have in the chat conversation.
Wrapper for the chat completion response.
Request to compute embeddings
Response to compute embeddings
Request to generate an image.
Request to complete a text.
Wrapper for the text completion response.