Skip to content
New site — Virtual Media Folders now has its own home. Visit vmf.soderlind.no →

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.

TypeQuestionReturns
ChoiceChoose one option from a listchoice, probabilities, confidence
ScoreRate the state on a rubricscore, legend, probabilities, confidence
NoulIs this statement true? (yes/no)noul (0–1)
  1. Copy this folder to wp-content/plugins/ai-provider-for-jev.
  2. Activate AI Provider for Jev in Plugins.
  3. Go to Settings → Jev (TypeSafe) and enter your API key, then click Test connection.

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

SettingOption / fieldConstant / env varDefault
API keyAPI KeyTYPESAFE_API_KEY
ModelModelTYPESAFE_MODELjev-latest
API base URLAPI Base URLTYPESAFE_ENDPOINThttps://api.typesafe.ai/v1

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

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

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.

GPL-2.0-or-later