JevVendor
TypeSafe AI's Jev.
POST https://api.typesafe.ai/v1/systemone
{"state": ..., "model": "jev-latest", "questions": {"q00": {"type": "noul", ...
}}}
Jev accepts everything the shared question model can express, so it adds no validation of its own. It is also the only vendor with a models endpoint, which is why modelsUrl and parseModels live here rather than on com.softinio.verdict4s.Vendor.
@group Jev
Attributes
- Graph
-
- Supertypes
- Self type
-
JevVendor.type
Members list
Value members
Concrete methods
Read a successful response body.
Read a successful response body.
Attributes
Read the models endpoint's response, unwrapping its models envelope.
Read the models endpoint's response, unwrapping its models envelope.
Attributes
Parse the models endpoint's response, unwrapping its models envelope.
Parse the models endpoint's response, unwrapping its models envelope.
Attributes
Inherited methods
The Authorization header value for a key.
Where to POST an evaluation, using the default base URL.
The headers every request needs, as plain pairs.
Parse a successful response body.
Parse a response and project it through the questions that produced it.
Parse a response and project it through the questions that produced it.
Attributes
- Inherited from:
- Vendor
Turn an unsuccessful response into a typed error.
Turn an unsuccessful response into a typed error.
Value parameters
- body
-
the raw body, which need not be JSON
- headers
-
the response headers, for the request id and the retry delay
- status
-
the HTTP status code
Attributes
- Inherited from:
- Vendor
Validate and encode in one step.
Build, validate and render in one step, reporting every problem at once.
Build, validate and render in one step, reporting every problem at once.
Vendor.Jev.renderAsk(Ask(q1, q2), state)
Attributes
- Inherited from:
- Vendor
Render a request indented, for logs and documentation.
A response header giving the retry delay in milliseconds, consulted before the standard Retry-After.
A response header giving the retry delay in milliseconds, consulted before the standard Retry-After.
Attributes
- Inherited from:
- Vendor
Whether an error the retry policy would retry is worth retrying.
Whether an error the retry policy would retry is worth retrying.
The policy decides by status alone; this lets a vendor veto a retry that its error body says cannot succeed, such as OpenAI's insufficient_quota 429, which no amount of waiting fixes.
Attributes
- Inherited from:
- Vendor
Reject requests this vendor cannot serve, such as a feature only the other vendor has, before they cost a round trip. Every problem is reported at once.
Reject requests this vendor cannot serve, such as a feature only the other vendor has, before they cost a round trip. Every problem is reported at once.
Attributes
- Inherited from:
- Vendor
Concrete fields
Environment variable holding the API key, matching the official SDKs.
Environment variable holding the API key, matching the official SDKs.
Attributes
Environment variable overriding the base URL.
Environment variable overriding the base URL.
Attributes
Environment variable overriding the default model.
Environment variable overriding the default model.
Attributes
Root of the TypeSafe API.
Root of the TypeSafe API.
Attributes
jev-latest.
jev-latest.
Attributes
Path segments of the evaluation endpoint, relative to the base URL.
Path segments of the evaluation endpoint, relative to the base URL.
Attributes
Path segments of the models endpoint, relative to the base URL.
Path segments of the models endpoint, relative to the base URL.
Attributes
Where to GET the list of available models.
Where to GET the list of available models.
Attributes
A human-readable name, for logs and error messages.
A human-readable name, for logs and error messages.
Attributes
Response header carrying the per-request correlation id.
Response header carrying the per-request correlation id.