ChatRequestResponseData

sttp.openai.requests.completions.chat.ChatRequestResponseData

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class ChatResponse(id: String, choices: Seq[Choices], created: Int, model: String, `object`: String, usage: Usage, systemFingerprint: Option[String])

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
case class Choices(message: Message, finishReason: String, index: Int)

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Choices.type
case class Message(role: Role, content: String, toolCalls: Seq[ToolCall], functionCall: Option[FunctionCall])

Value parameters

content

The contents of the message.

functionCall

The name and arguments of a function that should be called, as generated by the model.

role

The role of the author of this message.

Attributes

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

Attributes

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