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
6 changes: 6 additions & 0 deletions sandbox/test-batch-google.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
],
]);
$app['config']->set('atlas.persistence.enabled', false); // stateless: exercise the provider API directly
// The Atlas singletons + facade root are resolved in bootstrap before the toggle
// above, so drop them to force a stateless rebuild — otherwise submit() runs in
// tracked mode and returns a BatchJob whose camelCase batchId is null.
$app->forgetInstance(\Atlasphp\Atlas\AtlasConfig::class);
$app->forgetInstance(\Atlasphp\Atlas\AtlasManager::class);
\Atlasphp\Atlas\Atlas::clearResolvedInstances();

use Atlasphp\Atlas\Atlas;
use Atlasphp\Atlas\Enums\BatchStatus;
Expand Down
2 changes: 1 addition & 1 deletion sandbox/test-batch-modes.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function batchFor(string $provider): object
}

return Atlas::batch('anthropic')
->add(Atlas::text('anthropic', 'claude-sonnet-4-20250514')->message('Say OK'), key: 'a');
->add(Atlas::text('anthropic', 'claude-sonnet-4-5-20250929')->message('Say OK'), key: 'a');
}

line('=== Atlas Batch — persistence-modes live audit ===');
Expand Down
6 changes: 3 additions & 3 deletions sandbox/test-batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ function report(string $provider, string $batchId, BatchStatus $status): void
line('');

// ── 3. Anthropic text batch ──────────────────────────────────────────────────
line('[3] Anthropic text batch (claude-sonnet-4-20250514, 2 prompts)');
line('[3] Anthropic text batch (claude-sonnet-4-5-20250929, 2 prompts)');
$anthropic = Atlas::batch('anthropic')
->add(Atlas::text('anthropic', 'claude-sonnet-4-20250514')->message('Reply with exactly: ALPHA'), key: 'a')
->add(Atlas::text('anthropic', 'claude-sonnet-4-20250514')->message('Reply with exactly: BETA'), key: 'b');
->add(Atlas::text('anthropic', 'claude-sonnet-4-5-20250929')->message('Reply with exactly: ALPHA'), key: 'a')
->add(Atlas::text('anthropic', 'claude-sonnet-4-5-20250929')->message('Reply with exactly: BETA'), key: 'b');
$anthropicId = batchIdOf($anthropic->submit());
line(" submitted: {$anthropicId}");
$anthropicStatus = pollUntilTerminal('anthropic', $anthropicId);
Expand Down
Loading