fallatol.ollama.client

Members list

Type members

Classlikes

case class ChatRequest(model: Model, messages: Seq[Message], stream: Boolean)

https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-chat-completion

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ChatRequest

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class ChatResponse(model: Model, createdAt: Instant, message: Message, done: Boolean, totalDuration: Option[Long], loadDuration: Option[Long], promptEvalCount: Option[Long], promptEvalDuration: Option[Long], evalCount: Option[Long], evalDuration: Option[Long])

https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-chat-completion

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ChatResponse

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class EmbedRequest(model: Model, input: Seq[String])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object EmbedRequest

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class EmbedResponse(model: Model, embeddings: Seq[Seq[Double]], totalDuration: Long, loadDuration: Long, promptEvalCount: Long)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object EmbedResponse

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class Ollama(baseUri: Uri)

Attributes

Supertypes
class Object
trait Matchable
class Any
trait OllamaClient[F[_]]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class SyncOllamaClient(baseUri: Uri, backend: SyncBackend) extends OllamaClient[SyncType]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
case class TagsResponse(models: List[ModelInfo])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object TagsResponse

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

type OllamaRequest[A] = Request[Either[ResponseException[String, Error], A]]
type SyncType[A] = Either[Throwable, A]