Skip to content

Commit 7cff556

Browse files
committed
bug #316 [Platform] Remove GPT-5 Chat model tool call capabilities (chr-hertel)
This PR was merged into the main branch. Discussion ---------- [Platform] Remove GPT-5 Chat model tool call capabilities | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT On top of #282 Commits ------- abef115 Remove GPT-5 Chat model tool call capabilities
2 parents 28d7690 + abef115 commit 7cff556

File tree

1 file changed

+4
-1
lines changed
  • src/platform/src/Bridge/OpenAi

1 file changed

+4
-1
lines changed

src/platform/src/Bridge/OpenAi/Gpt.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,12 @@ public function __construct(
8181
Capability::INPUT_MESSAGES,
8282
Capability::OUTPUT_TEXT,
8383
Capability::OUTPUT_STREAMING,
84-
Capability::TOOL_CALLING,
8584
];
8685

86+
if (self::GPT_5_CHAT !== $name) {
87+
$capabilities[] = Capability::TOOL_CALLING;
88+
}
89+
8790
if (self::GPT_4O_AUDIO === $name) {
8891
$capabilities[] = Capability::INPUT_AUDIO;
8992
}

0 commit comments

Comments
 (0)