TypeSafeDecisionModel
constructor(client: HttpClient, apiKey: String, model: String = DEFAULT_MODEL, headers: Map<String, String> = emptyMap(), baseUrl: String = "https://api.typesafe.ai", timeout: Duration? = 1.minutes)
Parameters
client
the Ktor client that sends the requests.
apiKey
the TypeSafe API key.
model
the id of the model. jev-latest moves to each new release; give a version such as jev-1.13.0 when you have set confidence limits for it.
headers
more headers for every request.
baseUrl
where the API lives. Change it to go through a proxy or a gateway.
timeout
how long one call may take. It replaces the limits of client and of its engine for the requests of this model. null leaves those limits in place.