PerplexityConfig

org.llm4s.llmconnect.config.PerplexityConfig
See thePerplexityConfig companion class
@Experimental

Attributes

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

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromValues(model: String, apiKey: Secret, baseUrl: String, webSearch: Boolean, contextWindow: Int, reserveCompletion: Int, headers: Map[String, String]): Result[PerplexityConfig]

Builds a PerplexityConfig. The apiKey and model are trimmed and must not be blank; baseUrl loses any trailing / and must be https (http only for localhost, 127.0.0.1 and ::1); contextWindow must be positive and reserveCompletion 0 or more and less than it. Anything else is a ConfigurationError.

Builds a PerplexityConfig. The apiKey and model are trimmed and must not be blank; baseUrl loses any trailing / and must be https (http only for localhost, 127.0.0.1 and ::1); contextWindow must be positive and reserveCompletion 0 or more and less than it. Anything else is a ConfigurationError.

Attributes

Concrete fields

val DEFAULT_BASE_URL: String

Perplexity's API host.

Perplexity's API host.

Attributes

The context window assumed when neither the section's contextWindow nor the model registry gives one. Perplexity publishes no per-model window for the Agent API.

The context window assumed when neither the section's contextWindow nor the model registry gives one. Perplexity publishes no per-model window for the Agent API.

Attributes

The reply reserve, and the max_output_tokens an anthropic/ model is sent when a request sets none.

The reply reserve, and the max_output_tokens an anthropic/ model is sent when a request sets none.

Attributes