/Model/TypeSafe AI
app icon

TypeSafe AI

Verified by Dify
No ratings yet
200
L
langgenius/typesafe_ai

TypeSafe AI Jev for Dify question classifiers only

TypeSafe AI

Use in an existing Dify Question Classifier node. Configure the provider with your TypeSafe AI API key, then select this model; category IDs and workflow branches stay unchanged. Upstream requests use .

Compatibility

This adapter accepts only the six-message text Chat template from Graphon 0.7.0 (Dify reference revision ), with plain strings or single text blocks. Other templates, Completion mode, images, tool calls, stop sequences and implementation-level model parameters are unsupported. Dify may remove images before the plugin receives them. The interface supplies no trusted node identity: a caller reproducing the same protocol is indistinguishable from the classifier.

The query and instruction are preserved verbatim, including quotes, backslashes and whitespace. Categories are decoded as JSON; repeated field delimiters and invalid/duplicate IDs fail explicitly before any request. History remains text. Unknown response IDs and service failures raise errors rather than selecting the first category. A single category is returned locally with zero usage.

Jev receives only query, history, custom instructions and category IDs/descriptions, not the fixed classification examples. The response contains and ; confidence and probabilities are not exposed. GPT-2 token counting is only a local budget estimate. Billing uses actual upstream tokens at USD 0.042 per million input tokens and zero output cost. Requests use a 30-second HTTP timeout and the SDK default retries; this is not a 30-second total deadline.

Development

Requires Python 3.12 or newer; the plugin runner uses Python 3.12.

After dependency changes, run . Regenerate the optional compatibility file using . Package from the parent directory with .

No credentials belong in source control. The runtime requires the Dify provider credential and does not read a workspace API key. No deployed Dify instance is needed for the local transport-level tests; full workflow deployment must be verified in the target Dify installation.

CATEGORY
Model
VERSION
0.0.1
langgenius·Updated 12 days ago
REQUIREMENTS
Maximum memory
256MB
Access domain
Detected
Security
Security Rating

Last checked 09/24/2026 03:05 AM · version 0.0.1

Give a rate
SHARE WITH