Skip to content

Commit

Permalink
fix(model-config): forward model config and call settings (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 15, 2024
1 parent 6e0370a commit cc45566
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/react/src/types/ModelConfigTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ export const mergeModelConfigs = (
acc.tools[name] = tool;
}
}
if (config.config) {
acc.config = {
...acc.config,
...config.config,
};
}
if (config.callSettings) {
acc.callSettings = {
...acc.callSettings,
...config.callSettings,
};
}
return acc;
}, {} as ModelConfig);
};

0 comments on commit cc45566

Please sign in to comment.