Skip to content

About

Connect WordPress to TypeSafe's Jev System One model for structured decisions (choice, score, noul).

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

AI Provider for Jev

Connect WordPress to TypeSafe's Jev — the first "System One" model. Instead of generating text, Jev evaluates a state against typed questions and returns structured answers your code can use directly.

Primitives

Type Question Returns
Choice Choose one option from a list choice, probabilities, confidence
Score Rate the state on a rubric score, legend, probabilities, confidence
Noul Is this statement true? (yes/no) noul (0–1)

Requirements

Installation

  1. Download the latest ai-provider-for-jev.zip.
  2. In WordPress, go to Plugins → Add New Plugin → Upload Plugin, select the downloaded ZIP, and choose Install Now.
  3. Activate AI Provider for Jev in Plugins.
  4. Go to Settings → Jev (TypeSafe) and enter your API key, then click Test connection.

Configuration

Values resolve from the settings page first, then fall back to constants/environment variables:

Setting Option / field Constant / env var Default
API key API Key TYPESAFE_API_KEY —
Model Model TYPESAFE_MODEL jev-latest
API base URL API Base URL TYPESAFE_ENDPOINT https://api.typesafe.ai/v1

Define secrets in wp-config.php to keep them out of the database:

define( 'TYPESAFE_API_KEY', 'sk-...' );

Usage

Call Jev from PHP with the helper API:

use function AiProviderForJev\ask_noul;

$urgent = ask_noul( 'Help! My payouts have failed for 3 days.', 'Does this express urgency?' );
// 0.0–1.0, or a WP_Error on failure

There is also ask_choice(), ask_score(), evaluate() (many questions at once), a JevClient class, an authenticated REST proxy, and a JavaScript client. See the Developer guide for the full API, REST endpoints, and hooks.

Links

License

GPL-2.0-or-later

About

Connect WordPress to TypeSafe's Jev System One model for structured decisions (choice, score, noul).

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages