ContentFilteredError

org.llm4s.error.ContentFilteredError
See theContentFilteredError companion class

Attributes

Companion
class
Source
ContentFilteredError.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self 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(provider: String, reason: String, promptBlocked: Boolean): ContentFilteredError

The error for a filtered call; prompt and reply name each case.

The error for a filtered call; prompt and reply name each case.

Attributes

Source
ContentFilteredError.scala
def prompt(provider: String, blockReason: String): ContentFilteredError

provider blocked the prompt for blockReason.

provider blocked the prompt for blockReason.

Attributes

Source
ContentFilteredError.scala
def reply(provider: String, finishReason: String): ContentFilteredError

provider withheld the reply and sent no content, finishing for finishReason.

provider withheld the reply and sent no content, finishing for finishReason.

Attributes

Source
ContentFilteredError.scala
def reply(provider: String, finishReason: String, cutAfterChars: Int): ContentFilteredError

provider's filter stopped the reply for finishReason after cutAfterChars characters of answer text; the message says how many, and is reply's when there were none. A stream has already delivered that text.

provider's filter stopped the reply for finishReason after cutAfterChars characters of answer text; the message says how many, and is reply's when there were none. A stream has already delivered that text.

Attributes

Source
ContentFilteredError.scala

Extracts the message, provider, reason and whether the prompt was blocked.

Extracts the message, provider, reason and whether the prompt was blocked.

Attributes

Source
ContentFilteredError.scala