Merge pull request #1126 from nagisa77/codex/set-news-bot-model-to-4o

Allow bots to choose agent model
This commit is contained in:
Tim
2025-10-31 10:46:55 +08:00
committed by GitHub
2 changed files with 11 additions and 3 deletions

View File

@@ -29,11 +29,11 @@ export abstract class BotFather {
name: this.name,
instructions: this.buildInstructions(),
tools: [
this.openisleMcp,
this.weatherMcp,
this.openisleMcp,
this.weatherMcp,
this.webSearchPreview
],
model: "gpt-4o-mini",
model: this.getModel(),
modelSettings: {
temperature: 0.7,
topP: 1,
@@ -120,6 +120,10 @@ export abstract class BotFather {
return [];
}
protected getModel(): string {
return "gpt-4o-mini";
}
protected createRunner(): Runner {
return new Runner({
workflowName: this.name,

View File

@@ -7,6 +7,10 @@ class DailyNewsBot extends BotFather {
super("Daily News Bot");
}
protected override getModel(): string {
return "gpt-4o";
}
protected override getAdditionalInstructions(): string[] {
return [
"You are DailyNewsBot专职在 OpenIsle 发布每日新闻速递。",