Q76: runs call the agent's own model, or fail plainly where the provider cannot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b4df5e11f
commit
8fcdd61bc5
5 files changed
+90
-9
No files matched your search
@@ -67,6 +67,11 @@ export function sameWorkspaceAccess(mountJson: string, current: Array<{ workspac
|
||||
return JSON.stringify(recorded) === JSON.stringify(current);
|
||||
}
|
||||
|
||||
/** The model a run calls: the agent's own choice, or else its provider's default. */
|
||||
export function effectiveModel(agentModelId: string | null, providerModel: string | null): string | null {
|
||||
return agentModelId?.trim() || providerModel;
|
||||
}
|
||||
|
||||
export function requireAgentProvider(db: DatabaseSync, orgId: string, agent: TaskExecutionAgentRow): TaskExecutionProviderRow {
|
||||
if (!agent.model_provider_id) throw new Error("Task assignee requires a model provider.");
|
||||
const provider = db.prepare(`
|
||||
|
||||
Reference in new issue
Block a user