FilePart

org.llm4s.http.MultipartPart.FilePart
See theFilePart companion class
object FilePart

Attributes

Companion
class
Source
Llm4sHttpClient.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
FilePart.type

Members list

Type members

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(name: String, path: Path, filename: String, contentType: String): FilePart

A file field sending the file at path, read when the request is sent.

A file field sending the file at path, read when the request is sent.

Attributes

Source
Llm4sHttpClient.scala
def ofBytes(name: String, bytes: Array[Byte], filename: String, contentType: String): FilePart

A file field sending bytes already in memory.

A file field sending bytes already in memory.

Attributes

Source
Llm4sHttpClient.scala

Concrete fields

The Content-Type of a part that names none.

The Content-Type of a part that names none.

Attributes

Source
Llm4sHttpClient.scala