Skip to content

Commit 4342283

Browse files
committed
fix(orchestration): Correctly propagate model selection options to GMI
The AgentOSOrchestrator was incorrectly assigning model selection options from the AgentOSInput to metadata.processingOptions instead of the expected metadata.options when constructing the GMITurnInput. This caused the GMI to fail with a GMIError: Could not determine modelId for LLM call as it could not find the specified model preferences. This change corrects the property name to options within the gmiInputMetadata object in constructGMITurnInput, ensuring that model selection parameters like preferredModelId are correctly propagated to the GMI for processing.
1 parent b955fd1 commit 4342283

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/AgentOSOrchestrator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ export class AgentOSOrchestrator {
870870
const gmiInputMetadata: Record<string, any> = {
871871
gmiId: gmi.getGMIId(),
872872
// Pass relevant options to GMI if it needs them
873-
processingOptions: options,
873+
options: options,
874874
// User API keys are handled by GMIManager when fetching/creating GMI,
875875
// but can be passed in metadata if GMI needs them per-turn for some reason.
876876
userApiKeys: input.userApiKeys,

0 commit comments

Comments
 (0)