feat!: Full code can now be generated by an external model and shared with the AI tool (Claude Code / Codex etc)!
model definitions now support a new `allow_code_generation` flag, only to be used with higher reasoning models such as GPT-5-Pro and-Gemini 2.5-Pro When `true`, the `chat` tool can now request the external model to generate a full implementation / update / instructions etc and then share the implementation with the calling agent. This effectively allows us to utilize more powerful models such as GPT-5-Pro to generate code for us or entire implementations (which are either API-only or part of the $200 Pro plan from within the ChatGPT app)
This commit is contained in:
@@ -140,6 +140,8 @@ class ListModelsTool(BaseTool):
|
||||
except AttributeError:
|
||||
description = "No description available"
|
||||
lines = [header, f" - {context_str}", f" - {description}"]
|
||||
if capabilities.allow_code_generation:
|
||||
lines.append(" - Supports structured code generation")
|
||||
return lines
|
||||
|
||||
# Check each native provider type
|
||||
@@ -187,6 +189,8 @@ class ListModelsTool(BaseTool):
|
||||
|
||||
output_lines.append(f"- `{model_name}` - {context_str}")
|
||||
output_lines.append(f" - {description}")
|
||||
if capabilities.allow_code_generation:
|
||||
output_lines.append(" - Supports structured code generation")
|
||||
|
||||
for alias in capabilities.aliases or []:
|
||||
if alias != model_name:
|
||||
|
||||
Reference in New Issue
Block a user