JevConfigLoader
org.llm4s.config.JevConfigLoader
object JevConfigLoader
Loads the llm4s.jev block into a org.llm4s.jev.JevConfig.
It lives in org.llm4s.config, the one package that reads configuration; org.llm4s.jev.JevClient takes the typed config it returns and reads nothing itself.
llm4s-jev's reference.conf binds TYPESAFE_BASE_URL to baseUrl and TYPESAFE_DEFAULT_MODEL to model (the variables TypeSafe's own SDKs read), and TYPESAFE_API_KEY to llm4s.credentials.typesafe.apiKey. The key is llm4s.jev.apiKey when that is set and the shared llm4s.credentials.typesafe.apiKey otherwise, so one variable serves every client of the vendor. Everything but the key has a default.
llm4s.jev {
model = "jev-1.13.0" # pin the answers; the default is the alias jev-latest
timeout = 20 seconds
retry { maxRetries = 3 }
}
for
config <- JevConfigLoader.default()
client <- JevClient(config)
yield client
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JevConfigLoader.type
Members list
In this article