mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-02 03:55:58 +00:00
Merge pull request #1126 from nagisa77/codex/set-news-bot-model-to-4o
Allow bots to choose agent model
This commit is contained in:
@@ -33,7 +33,7 @@ export abstract class BotFather {
|
|||||||
this.weatherMcp,
|
this.weatherMcp,
|
||||||
this.webSearchPreview
|
this.webSearchPreview
|
||||||
],
|
],
|
||||||
model: "gpt-4o-mini",
|
model: this.getModel(),
|
||||||
modelSettings: {
|
modelSettings: {
|
||||||
temperature: 0.7,
|
temperature: 0.7,
|
||||||
topP: 1,
|
topP: 1,
|
||||||
@@ -120,6 +120,10 @@ export abstract class BotFather {
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected getModel(): string {
|
||||||
|
return "gpt-4o-mini";
|
||||||
|
}
|
||||||
|
|
||||||
protected createRunner(): Runner {
|
protected createRunner(): Runner {
|
||||||
return new Runner({
|
return new Runner({
|
||||||
workflowName: this.name,
|
workflowName: this.name,
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ class DailyNewsBot extends BotFather {
|
|||||||
super("Daily News Bot");
|
super("Daily News Bot");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override getModel(): string {
|
||||||
|
return "gpt-4o";
|
||||||
|
}
|
||||||
|
|
||||||
protected override getAdditionalInstructions(): string[] {
|
protected override getAdditionalInstructions(): string[] {
|
||||||
return [
|
return [
|
||||||
"You are DailyNewsBot,专职在 OpenIsle 发布每日新闻速递。",
|
"You are DailyNewsBot,专职在 OpenIsle 发布每日新闻速递。",
|
||||||
|
|||||||
Reference in New Issue
Block a user