Minor Changes
-
b00c105: Classification evaluators, including every built-in, can now run on AI SDK decision models such as
openai.decisionModel("gpt-6-luna"). The label comes fromexperimental_decide, with label probabilities (and the provider's confidence, when reported) inmetadata. The rendered prompt is sent as plain text, and refusals throw the AI SDK'sExperimental_DecisionRefusalError. Decide spans now record the decision state, question and answer. New exports:isDecisionModeland theDecisionModeltype.This replaces the evaluation model support from the previous release, and changes what evaluation models such as TypeSafe's Jev are sent. They now go through
experimental_decidetoo. Message prompts are joined into plain text instead of being serialized as JSON state.aiis pinned to7.0.137and@ai-sdk/otelto1.0.137, because the decision API is experimental and has changed in patch releases, and@ai-sdk/oteldepends on one exactaiversion. Use@ai-sdk/openai4.0.89 or later with OpenAI decision models. Earlier versions receive the state as JSON-encoded text instead of plain text.