Skip to content

Releases

v2.14.2

Choose a tag to compare

@ddebowczyk ddebowczyk released this 02 Nov 14:39

title: 'v2.14.2'

v2.14.2 is a maintenance release for Polyglot and Instructor. It moves the bundled OpenAI
defaults off retired models and makes OpenAI Chat Completions tool calls work for both
reasoning and non-reasoning models.

OpenAI Defaults

gpt-6-luna replaces gpt-5.4-mini and gpt-4.1-nano

OpenAI shut down gpt-4.1-nano on October 23, 2026. The bundled openai and
openai-responses presets now default to gpt-6-luna, and all Polyglot docs, the cheatsheet,
and examples that referenced gpt-4.1-nano or gpt-5.4-mini now use gpt-6-luna. Example cost
calculations use the gpt-6-luna standard rates ($0.10 input, $0.01 cached input, $0.50 output
per 1M tokens).

Model catalog records for current OpenAI models

The bundled model catalog adds exact records for gpt-6-luna, gpt-6-sol, gpt-6-astra,
gpt-6.1-sol, gpt-6.1-terra, gpt-5.6-luna, gpt-5.6-sol, and gpt-5.6-terra on both the
openai and openai-responses drivers, including context limits, modalities, and reasoning
facts. The gpt-5.4-mini records were removed.

OpenAI Chat Completions Tool Calls

Current OpenAI reasoning models (gpt-6-*, gpt-5.6-*) reject function tools on
/chat/completions unless reasoning_effort is none, while non-reasoning models such as
gpt-4o-mini reject the reasoning_effort field entirely. Because Instructor uses tool calls by
default, this made structured output fail on the new models.

Model capabilities gain a toolsWithReasoning support fact, so the catalog states what each
offering requires or forbids: unsupported on the openai records for the gpt-6-*,
gpt-6.1-*, and gpt-5.6* models, supported on their openai-responses records. The
openai/gpt-4o-mini record now declares no reasoning controls
(reasoning: {selections: [], default: disabled}), so typed reasoning selections are rejected
before the request is sent.

The openai driver now sends reasoning_effort: none for tool calls only when the exact model
record marks toolsWithReasoning: unsupported and reasoning can be disabled. With a model profile
attached, preflight rejects tool requests that would keep reasoning enabled on such an offering. Non-reasoning and uncataloged
models are sent unchanged, so withModel('gpt-4o-mini'), gpt-4.1-mini, and o3 keep working on
the same preset. Explicit reasoning_effort options and typed withReasoning(...) selections are
never overridden.

Upgrade Notes

  • Applications that relied on the bundled openai or openai-responses preset now call
    gpt-6-luna. Pin a model with withModel(...) or your own preset to keep a different default.
  • Unlike gpt-5.4-mini, gpt-6-luna reasons by default (medium) outside tool calls, and with
    reasoning enabled it rejects temperature values other than 1. Reasoning tokens count toward
    maxTokens, so very small limits (for example 64) can end with length. Raise the limit, or use
    withReasoning(ReasoningSelection::disabled()) to restore the previous non-reasoning behavior.
  • Models that cannot disable reasoning (gpt-6-astra, gpt-6.1-sol) and requests that combine
    explicit reasoning with tools need the openai-responses driver.
  • Tool calls on uncataloged reasoning models still need reasoning_effort: none from your own
    options or model record.

v2.14.1

Choose a tag to compare

@ddebowczyk ddebowczyk released this 08 Oct 08:18

title: 'v2.14.1'

v2.14.1 is a maintenance release for Polyglot. BatchInference remains an
opt-in early access feature.

See the BatchInference guide
and provider capability table
for usage and provider support details.

v2.14.0

Choose a tag to compare

@ddebowczyk ddebowczyk released this 08 Oct 07:46

title: 'v2.14.0'

v2.14.0 adds native asynchronous batch inference to Polyglot. BatchInference is
an early access feature for applications that want to submit provider batch
jobs and process their results separately from request submission.

Polyglot BatchInference (Early Access)

The new opt-in BatchInference facade supports provider-native job submission,
status retrieval, cancellation where available, result streaming, and remote
job listing. Applications can persist a job reference and resume work in a
later process. Results retain caller keys and expose per-item outcomes as they
become available.

Provider APIs differ in their supported operations, input modes, and model
eligibility. See the BatchInference guide
and provider capability table before
choosing a provider. The examples include deterministic offline runs and
explicit commands for live jobs.

Upgrade Notes

Existing inference, embeddings, and decision APIs require no changes.
BatchInference is opt-in. The optional Amazon Bedrock transport requires
aws/aws-sdk-php; other Polyglot providers do not require it.

v2.13.0

Choose a tag to compare

@ddebowczyk ddebowczyk released this 06 Oct 05:26

title: 'v2.13.0'

v2.13.0 expands Polyglot Decision with three new hosted providers and updates
the documentation index and model inventory.

Decision providers

  • Polyglot Decision adds a Fastino GLiDE driver (fastino preset, model
    fastino/GLiDE). It answers Noul, Choice, and Score questions with up to 255
    Choice options or Score levels and a 40,000-token limit per state plus one
    question. Cold-model 425 responses are retried after the documented 60
    second wait.
  • Cloudflare Clef and Perplexity Decision drivers are now bundled.
  • Polyglot Embeddings adds a Perplexity driver.
  • The model catalog documentation lists every bundled Decision model with its
    limits and pricing, including Fastino at $0.15 per million input tokens.

Documentation

  • llms.txt is now spec-compliant, with absolute links.
  • The Decision provider evaluation example can run the fastino preset.

Upgrade Notes

  • Set FASTINO_API_KEY only for applications that use the Fastino preset.
  • Fastino recommends a read timeout of at least 300 seconds; see the Fastino
    guide for warming-aware HTTP client and retry settings.

v2.12.0

Choose a tag to compare

@ddebowczyk ddebowczyk released this 01 Oct 06:37

title: 'v2.12.0'

v2.12.0 adds vector retrieval and structured decisions to InstructorPHP,
expands exact-model metadata, and brings new Echo and RESPAN integrations. It
also includes an embedding configuration cutover; review the upgrade notes
before updating.

Retrieval and agent knowledge access

  • The new cognesy/instructor-retrieval package provides document processing,
    vector storage, semantic search, bounded context assembly, and citations.
    Bundled stores include in-memory, pgvector, Qdrant, Typesense, Meilisearch,
    Weaviate, and Milvus.
  • Retrieval composes with Polyglot Embeddings and leaves answer generation to
    the application, so callers control how evidence enters inference requests.
  • Agents can opt into bounded search and evidence-reading tools. Query, result,
    context, and read sizes are policy-controlled. Evidence reads pass through
    an application-owned authorization boundary.

Structured decisions and model metadata

  • Polyglot adds a typed Decision runtime for Noul, Choice, and Score questions.
    Adapters cover Classifier.dev, Jeff, Laya, TypeSafe, and RESPAN.
  • Noul answers can carry positive, negative, and unknown probabilities. RESPAN
    supports Noul questions and reports access failures separately from request
    validation errors.
  • Exact Embedding and Decision model catalogs expose reviewed capabilities and
    limits, with pricing where available. Examples show model metadata and cost
    estimates.

Provider and integration updates

  • The Echo inference driver supports Fulcrum's persona-based writing API and
    requires a non-empty persona option on each request or preset.
  • Embedding request model overrides now select the effective model for catalog
    lookup and provider request construction. Missing provider token counts
    remain unknown instead of being converted to zero.
  • The cURL transport negotiates HTTP/2 over TLS by default and handles interim
    response headers before the final response.

Upgrade Notes

  • Embedding configuration no longer accepts dimensions, defaultDimensions,
    or maxInputs in EmbeddingsConfig, DSNs, presets, or Laravel and Symfony
    embedding connection configuration. Set a requested dimension in request
    options, for example withOptions(['dimensions' => 256]). Inject an
    Embedding model catalog into EmbeddingsRuntime when catalog-based
    input-limit checks are required.
  • Embedding usage counts and totals can now be null when a provider omits
    them, and embedding cost calculation can return null. Handle unknown usage
    explicitly. Use EmbeddingsUsage::zero() for a known zero total; none()
    represents unknown usage.
  • Add ECHO_API_KEY or RESPAN_API_KEY only for applications that use the
    corresponding provider.