Skip to content

feat(New Model): Add support for gpt5#52

Merged
BinWang28 merged 6 commits intoMiroMindAI:miroflow-v0.3from
xings19:miroflow-v0.3
Oct 5, 2025
Merged

feat(New Model): Add support for gpt5#52
BinWang28 merged 6 commits intoMiroMindAI:miroflow-v0.3from
xings19:miroflow-v0.3

Conversation

@xings19
Copy link
Contributor

@xings19 xings19 commented Sep 25, 2025

Describe this PR

Added support for gpt5. You can use the configuration file config/agent_gaia-validation-gpt5.yaml to evaluate gaia-validation.

Checklist for PR

Must Do

  • Write a good PR title and description, i.e. feat(agent): add pdf tool via mcp, perf: make llm client async and fix(utils): load custom config via importlib etc. CI job check-pr-title enforces Angular commit message format to PR title.
  • Run make precommit locally. CI job lint enforce ruff default format/lint rules on all new codes.
  • Run make pytest. Check test summary (located at report.html) and coverage report (located at htmlcov/index.html) on new codes.

Nice To Have

  • (Optional) Write/update tests under /tests for feat and test PR.
  • (Optional) Write/update docs under /docs for docs and ci PR.

"extra_body": extra_body,
}

if self.model_name == "gpt-5-2025-08-07" or self.model_name == "gpt-5":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest we make a new Python file called something like gpt-5_openai_chat_client.py.

Otherwise, the name can be a bit misleading to have Claude + open_router client for GPT-5 support.

@BinWang28
Copy link
Member

Also add docs for GPT-5 would be good to make it complete.

@BinWang28 BinWang28 requested a review from Copilot October 5, 2025 12:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for GPT-5, a new model from OpenAI, by implementing a dedicated client and configuration files to enable GPT-5 evaluation on the GAIA validation benchmark.

  • Implements GPT5OpenAIClient with specific GPT-5 model handling and reasoning effort configuration
  • Adds comprehensive documentation and configuration files for GPT-5 usage
  • Updates tools and documentation to reflect the new GPT-5 support

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/llm/providers/gpt5_openai_client.py New GPT-5 client implementation with OpenAI API integration
src/llm/provider_client_base.py Adds reasoning_effort parameter to base client
config/agent_gaia-validation-gpt5.yaml GAIA validation configuration for GPT-5
docs/mkdocs/docs/gaia_validation_gpt5.md Documentation for GPT-5 GAIA validation
docs/mkdocs/docs/openai-gpt.md Updated OpenAI documentation with GPT-5 info
docs/mkdocs/docs/llm_clients_overview.md Added GPT-5 client to overview table
docs/mkdocs/mkdocs.yml Added GPT-5 page to navigation
config/tool/tool-reading.yaml Added environment variables for tool configuration
src/tool/mcp_servers/vision_mcp_server.py Added file URL parsing functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

agent-worker:
prompt_class: SubAgentWorkerPrompt
llm:
provider_class: "ClaudeOpenRouterClient"
Copy link

Copilot AI Oct 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent configuration: using ClaudeOpenRouterClient with GPT-5 model. This should use GPT5OpenAIClient to match the model type.

Suggested change
provider_class: "ClaudeOpenRouterClient"
provider_class: "GPT5OpenAIClient"

Copilot uses AI. Check for mistakes.
@BinWang28 BinWang28 merged commit db41377 into MiroMindAI:miroflow-v0.3 Oct 5, 2025
1 check failed
Zhudongsheng75 pushed a commit to open-compass/MiroFlow that referenced this pull request Dec 27, 2025
* add gpt5

* fix some bug

* fix

* update gpt5

* add doc, fix some bug

* fix gpt-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants