Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/release-notes/v0.5.71.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Highlights

- Codex agents can select GPT-6.1 Sol through an OpenAI subscription credential. The model
catalog now records its Responses API requirement, so incompatible native chat and agent
runtimes refuse it before sending a tool request.
[Provider setup](https://docs.tale.dev/platform/admin/providers)
- Subscription broker cooldowns immediately following the same agent's rate-limit failure
no longer consume an extra automated-start allowance. Manager agents can read whether a
failed task run still has a pending automatic retry.
[#4143](https://github.com/tale-project/tale/pull/4143)
- Self-hosted setup gains read-only `tale doctor` diagnostics, more reliable startup and
local host/port handling, and `tale dev --stop` to stop development containers while
preserving their data. Unix and Windows installation guidance includes recovery steps.
[#4142](https://github.com/tale-project/tale/pull/4142)
- Home names a failed chat or task read and offers a retry instead of presenting an empty
result. [#4136](https://github.com/tale-project/tale/pull/4136)
- Cleanup retains file bytes while another live reference still needs them.
[#4129](https://github.com/tale-project/tale/pull/4129)
- Project owners can see why the agent review setting is unavailable and which organization
grant enables it. [#4132](https://github.com/tale-project/tale/pull/4132)
- GitHub and package discovery now point readers to the published guides, and full releases
require authored highlights and upgrade notes before publication.
[#4134](https://github.com/tale-project/tale/pull/4134)

## Upgrade notes

- The changes from v0.5.70 add no database migration or required environment variable. Follow
the [self-hosted upgrade guide](https://docs.tale.dev/self-hosted/operate/upgrades) to install
the updated model catalog.
- To use GPT-6.1 Sol with a subscription, configure an OpenAI subscription credential and
choose Codex for the agent. The subscription must include access to this model. Direct chat
uses Chat Completions and does not support this model's tool calls.
- Native task tools use contract 3.15.0. Managers must preserve an armed automatic retry
when `task_get.agentRuns[].retryPending` is `true`; `false` does not authorize a restart,
and a missing field on an older deployment means unknown. Reconcile current task state
and respect provider waits before starting work.
- Release operators must merge the intended version's authored notes before selecting its
candidate. See [the release runbook](https://github.com/tale-project/tale/blob/main/.github/RELEASING.md).
20 changes: 20 additions & 0 deletions configs/platform/system/models/openai/models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@
# on 2026-09-20 (Standard, short context). gpt-5.5's cached-input figure is the
# OpenRouter listing's (the vendor page no longer lists the model);
# gpt-5.5-pro and gpt-5.3-chat-latest publish no cache price.
# Sol 6.1: https://developers.openai.com/api/docs/models/gpt-6.1-sol
# (2026-10-03). Tools require Responses; Chat Completions accepts no tools.
# Reasoning cannot be disabled: neither none nor minimal is supported.
# Codex subscription availability: https://learn.chatgpt.com/docs/models
- id: gpt-6.1-sol
provider: openai
tags:
- chat
supportsTools: true
toolCallingApi: responses
supportsVision: true
reasoning:
knob: effort
contextWindow: 1050000
maxOutputTokens: 128000
pricing:
inputCentsPerMillion: 200
outputCentsPerMillion: 1000
cacheReadCentsPerMillion: 10
cacheWriteCentsPerMillion: 250
- id: gpt-5.5
provider: openai
tags:
Expand Down
2 changes: 2 additions & 0 deletions docs/de/platform/admin/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Trage unter **Pfad zum Token-Array** den Wert `$.tokens` ein, unter **Token-Feld

Begrenze bei OpenAI **Erlaubte Modelle** auf Modell-IDs, die dein ChatGPT-Abonnement unterstützt. Der OpenAI-API-Katalog kann Modelle enthalten, die dieses Abonnement nicht nutzen kann.

Für Sol 6.1 (`gpt-6.1-sol`) speicherst du zuerst die OpenAI-Broker-Zugangsdaten. Wähle dann bei einem [Projektagenten](/de/platform/projects/project-agents) unter **Agent-Laufzeit** den Eintrag **Codex**. Suche unter **Modell** nach `gpt-6.1-sol` und wähle den Eintrag mit **OpenAI · Abo**. Codex nutzt die Responses-API, die dieses Modell für Tool-Aufrufe benötigt. Tales direkter Chat nutzt Chat Completions; dort wird dieses Modell über OpenAI deshalb auch bei der automatischen Modellauswahl nicht angeboten.

Mit **Token-Auswahl** bestimmst du, wie neue Agentendurchläufe verteilt werden:

- **Zufällig** ist vorausgewählt. Bei jeder Auswahl haben alle nutzbaren Konten die gleiche Wahrscheinlichkeit.
Expand Down
2 changes: 2 additions & 0 deletions docs/en/platform/admin/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Set **Token array path** to `$.tokens`, **Token field** to `access_token`, and *

For OpenAI, restrict **Model allowlist** to model IDs your ChatGPT plan supports. The OpenAI API catalog can include models that the subscription cannot use.

For Sol 6.1 (`gpt-6.1-sol`), save the OpenAI broker credential, then configure a [project agent](/platform/projects/project-agents) with **Agent type** set to **Codex**. Under **Model**, search for `gpt-6.1-sol` and select the entry marked **OpenAI · Subscription**. Codex uses the Responses API required by this model's tool calls. Tale's direct chat uses Chat Completions, so it does not offer this model through OpenAI, including automatic model selection.

Choose **Token selection** according to how you want to distribute new agent turns:

- **Random**, the initial choice, picks uniformly from the usable accounts for each selection.
Expand Down
2 changes: 2 additions & 0 deletions docs/fr/platform/admin/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Renseigne `$.tokens` dans **Chemin du tableau de jetons**, `access_token` dans *

Pour OpenAI, limite **Modèles autorisés** aux identifiants de modèles pris en charge par ton abonnement ChatGPT. Le catalogue de l’API OpenAI peut inclure des modèles auxquels cet abonnement ne donne pas accès.

Pour utiliser Sol 6.1 (`gpt-6.1-sol`), enregistre les identifiants du courtier OpenAI, puis configure un [agent de projet](/fr/platform/projects/project-agents) en choisissant **Codex** sous **Harness**. Sous **Modèle**, recherche `gpt-6.1-sol` et sélectionne l’entrée **OpenAI · Abonnement**. Codex utilise l’API Responses, requise par les appels aux tools de ce modèle. Le chat direct de Tale utilise Chat Completions ; il ne propose donc pas ce modèle via OpenAI, y compris avec la sélection automatique du modèle.

Choisis **Sélection du jeton** selon la répartition souhaitée pour les nouveaux tours d’agent :

- **Aléatoire**, le choix initial, donne à chaque compte utilisable la même probabilité à chaque sélection.
Expand Down
15 changes: 15 additions & 0 deletions packages/shared/src/schemas/providers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,21 @@ describe('providerDefinitionSchema', () => {
});

describe('modelCatalogEntrySchema', () => {
it('declares a Responses-only tool API and refuses an unknown wire', () => {
expect(
modelCatalogEntrySchema.safeParse({
...VALID_MODEL,
toolCallingApi: 'responses',
}).success,
).toBe(true);
expect(
modelCatalogEntrySchema.safeParse({
...VALID_MODEL,
toolCallingApi: 'unknown',
}).success,
).toBe(false);
});

it('accepts a full entry', () => {
expect(modelCatalogEntrySchema.safeParse(VALID_MODEL).success).toBe(true);
});
Expand Down
4 changes: 4 additions & 0 deletions packages/shared/src/schemas/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ export const modelCatalogEntrySchema = z
* `embedding`, `text-to-speech`, …) — open vocabulary, additive. */
tags: z.array(z.string().min(1).max(64)),
supportsTools: z.boolean(),
/** Function tools require this API even when the model also accepts
* plain text through Chat Completions. Absent preserves the provider's
* existing tool wire. This is a model capability, not an auth method. */
toolCallingApi: z.literal('responses').optional(),
supportsVision: z.boolean(),
/** The model GENERATES media (its output modalities include audio, image,
* or video — e.g. music or image generators). Such listings often carry a
Expand Down
20 changes: 18 additions & 2 deletions services/platform/backend/core/automations/llm_call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* one wire for thread titles and llm nodes.
*/

import type { HarnessGatewayWire } from '@tale/shared/schemas/providers';

import { compileSchema } from '../../../lib/engine/core/validate/schema';
import {
createBuilderModel,
Expand Down Expand Up @@ -81,8 +83,15 @@ export async function resolveServingTarget(
ctx: ActionCtx,
organizationId: string,
modelId: string,
/** Legacy task agents share this direct-only walk but carry tools. */
toolCallingWire?: HarnessGatewayWire,
): Promise<BuilderModelTarget> {
const walk = await walkLlmServing(ctx, organizationId, modelId);
const walk = await walkLlmServing(
ctx,
organizationId,
modelId,
toolCallingWire,
);
if (walk.target !== null) return walk.target;
const detail =
walk.unreachable.length > 0
Expand All @@ -103,9 +112,16 @@ export async function walkLlmServing(
ctx: ActionCtx,
organizationId: string,
modelId: string,
toolCallingWire?: HarnessGatewayWire,
): Promise<DirectServingWalk> {
const connectors = await resolveProvidersForOrgId(ctx, organizationId);
return walkDirectServing(ctx, organizationId, modelId, connectors);
return walkDirectServing(
ctx,
organizationId,
modelId,
connectors,
toolCallingWire,
);
}

const MISS = Symbol('not json');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import {
sanctionSubscriptionHarnessTurn,
subscriptionApiBaseUrl,
} from '../lib/providers/agent_serving';
import { loadProviderDefinitions } from '../lib/providers/load_system_config';
import {
loadProviderDefinitions,
loadStaticCatalogs,
} from '../lib/providers/load_system_config';
import { buildExternalTurnExec } from './external_turn_shared';

const TURN = {
Expand Down Expand Up @@ -47,11 +50,16 @@ describe('subscription broker delivery through the real external turn builder',
);
expect(provider).toBeDefined();
if (provider === undefined) return;
const model = loadStaticCatalogs()
.get('openai')
?.find((entry) => entry.id === 'gpt-6.1-sol');
expect(model).toBeDefined();
if (model === undefined) return;
expect(
sanctionSubscriptionHarnessTurn({
provider,
authMethod: 'subscription-broker',
model: 'gpt-5.4',
model: model.id,
harness: 'codex',
}),
).toEqual({ ok: true });
Expand All @@ -60,7 +68,7 @@ describe('subscription broker delivery through the real external turn builder',
const exec = buildExternalTurnExec({
...TURN,
harness: 'codex',
gatewayModel: 'gpt-5.4',
gatewayModel: model.id,
serving: {
kind: 'subscription',
secret: 'synthetic-openai-oauth',
Expand All @@ -76,6 +84,11 @@ describe('subscription broker delivery through the real external turn builder',
);
expect(exec.env.TALE_CONNECTORS_TOKEN).toBe('synthetic-session-bridge');
expect(exec.argv).toContain('model_provider="tale-subscription"');
expect(exec.argv).toContain(
'model_providers.tale-subscription.wire_api="responses"',
);
expect(exec.argv).toContain('gpt-6.1-sol');
expect(exec.env.OPENAI_API_KEY).toBe('');
expect(exec.argv.join(' ')).not.toContain('synthetic-openai-oauth');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ vi.mock('./org_providers', () => ({
}));
vi.mock('./load_system_config', () => ({ loadHarnesses }));

import { resolveWorkflowAgentServing } from './agent_serving';
import {
resolveWorkflowAgentServing,
walkDirectServing,
} from './agent_serving';

const ORG = 'org_agent_serving';

Expand Down Expand Up @@ -167,6 +170,23 @@ const ctx = { runQuery } as unknown as ActionCtx;
const BROKER = { status: 'active', authMethod: 'subscription-broker' };
const DIRECT = { status: 'active', authMethod: 'api-key' };

async function shippedOpenAi() {
const actual = await vi.importActual<typeof import('./load_system_config')>(
'./load_system_config',
);
const provider = actual
.loadProviderDefinitions()
.find((item) => item.name === 'openai');
if (provider === undefined)
throw new Error('missing shipped OpenAI provider');
resolveConnectors.mockResolvedValue([provider]);
getProviderCatalog.mockResolvedValue(
actual.loadStaticCatalogs().get('openai'),
);
loadHarnesses.mockReturnValue(actual.loadHarnesses());
return provider;
}

beforeEach(() => {
vi.clearAllMocks();
credentials = {};
Expand All @@ -182,6 +202,65 @@ beforeEach(() => {
]);
});

describe('shipped Sol 6.1 serving', () => {
it('resolves the OpenAI pin through its Codex subscription with the exact vendor model id', async () => {
await shippedOpenAi();
credentials = { openai: BROKER };
await expect(
resolveWorkflowAgentServing(ctx, {
organizationId: ORG,
model: 'gpt-6.1-sol',
modelProvider: 'openai',
harness: 'codex',
}),
).resolves.toMatchObject({
lane: 'subscription',
providerSlug: 'openai',
modelId: 'gpt-6.1-sol',
apiBaseUrl: 'https://chatgpt.com/backend-api/codex',
vision: { readable: true },
});
});

it('permits a managed Responses harness and a raw no-tools LLM call', async () => {
const provider = await shippedOpenAi();
credentials = { openai: DIRECT };
await expect(
resolveWorkflowAgentServing(ctx, {
organizationId: ORG,
model: 'gpt-6.1-sol',
modelProvider: 'openai',
harness: 'codex',
}),
).resolves.toMatchObject({
lane: 'gateway',
providerSlug: 'openai',
modelId: 'gpt-6.1-sol',
});
await expect(
walkDirectServing(ctx, ORG, 'gpt-6.1-sol', [provider]),
).resolves.toMatchObject({
target: { providerSlug: 'openai', modelId: 'gpt-6.1-sol' },
});
});

it.each([undefined, 'openai'])(
'refuses a managed chat-wire harness with provider pin %s',
async (modelProvider) => {
await shippedOpenAi();
credentials = { openai: DIRECT };
await expect(
resolveWorkflowAgentServing(ctx, {
organizationId: ORG,
model: 'gpt-6.1-sol',
modelProvider,
harness: 'opencode',
}),
).rejects.toThrow(/cannot serve|no configured provider serves/);
},
);
});

describe('resolveWorkflowAgentServing — direct pass', () => {
it('serves a directly-served model on the gateway lane', async () => {
credentials = { openrouter: DIRECT };
Expand Down
Loading