Repository navigation
Make GPT-5 talk - #1230
Make GPT-5 talk#1230enyst wants to merge 18 commits into
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Coverage Report •
|
||||||||||||||||||||||||||||||
| * If unsure about committing certain files, check for the presence of .gitignore files or ask the user for clarification. | ||
| </VERSION_CONTROL> | ||
|
|
||
| <USER_UPDATES_SPEC> |
There was a problem hiding this comment.
This is the addition, from https://cookbook.openai.com/examples/gpt-5/gpt-5-1_prompting_guide#eliciting-user-updates
Co-authored-by: openhands <openhands@all-hands.dev>
|
Comment from OpenHands-GPT-5 (SDK behavior verification) I ran the Run command cd /workspace/project/software-agent-sdk
OPENAI_API_KEY="$OPENHANDS_LLM_KEY" uv run python examples/01_standalone_sdk/23_responses_reasoning.pyThe example configures:
Below are the key assistant 1. First user request: "Read the repo and write one fact into FACTS.txt."Assistant plan content The assistant explicitly restates the goal and outlines a short plan before any tool calls. Assistant update after tools run Here it uses 2. Second user request: "Now delete FACTS.txt."Assistant plan content Again, the model restates the goal, lists constraints, and explains the next concrete action before calling Assistant final update content This matches the intended pattern:
So for this example, the GPT-5-style model does use the assistant — OpenHands-GPT-5 |
|
This prompt is practically lifted from OpenAI. The strange thing with it is that it also pushes the model to make a plan and keep track of it, basically. As such, it feels a bit redundant with the tracking tool. An alternative is in the OpenAI's GPT-5 prompting guide, where it's a simpler request to the model to give the user info before tool calls:
Or maybe we could rephrase the current one to remove the plan-like sentences. WDYT? |
Co-authored-by: openhands <openhands@all-hands.dev>
There was a problem hiding this comment.
Do we want to just replace the system prompt? I don't quite want to maintain multiple versions of system prompts :(
There was a problem hiding this comment.
Slack discussion on this.
@xingyaoww , I hear you, you're right if the prompts were mostly duplicate, like it looks in this PR. But I actually think I made a mistake starting with this one, because it triggered a misunderstanding:
- I didn't mean to propose to duplicate Sonnet-like prompt for GPT-5, sorry
- in this case, we'd have a nightmare with similar versions but not identical
- I mean to propose a real GPT-5 optimized system prompt, like this one
- in such case, if we try to push them in a single file, I'm afraid would be unreadable... some long text like this: combined system prompt
I do think we'd benefit from separate prompts, at least for some 3-5 families of models, the best ones. Our default system prompt is optimized for Sonnet. My take away for a while is that optimized prompts for other models might be different structurally, not only in a paragraph or three.
In other words, I feel like the j2 files would look like:
# specific paragraph
# specific paragraph
# specific paragraph
# common (security)
# specific paragraph
# common (task tracker)
# specific paragraph
# specific paragraph
and if this will be the case, that looks good to me in separate files, with common sections included nicely in jinja.
I could be wrong, but I also think we've stayed too long on Sonnet-optimized prompts/tools, and maybe we could try for a while to offer users some places for LLM-specific optimizations? Places like, alternative prompts to choose, and alternative tools to choose.
(they could be non-default, just offer them for users to compose, learn from, fix, see how they work, optimize)
WDYT?
There was a problem hiding this comment.
I mean in general, not in this PR 😇
I understand this PR looked strange. My intention was just to prepare a placeholder for the next one, sorry it actually made it more difficult to communicate. Done.
|
@OpenHands Remove the new file, and instead, add the "USER_UPDATES_SPEC" section in the default system prompt, but use a jinja conditional to be active only for GPT-5. |
|
I'm on it! enyst can track my progress at all-hands.dev |
…inja is_gpt5) and remove separate GPT-5 template; pass is_gpt5 from AgentBase.system_message Co-authored-by: openhands <openhands@all-hands.dev>
|
Final summary of changes Checklist
What changed
Status
|
…pdate tests accordingly Co-authored-by: openhands <openhands@all-hands.dev>
|
OpenHands-GPT-5 (SDK behavior verification) Hi! I’m OpenHands-GPT-5. I validated that GPT-5 now “talks” alongside tool calls on the Responses API path, using the eval LiteLLM proxy. What I did
Results
Conclusion
Let me know if you want me to run this against another GPT-5 alias or capture fuller transcripts/logs. |
|
[Automatic Post]: This PR seems to be currently waiting for review. @xingyaoww, could you please take a look when you have a chance? |
|
Let's merge this after we got #1320 implemented - we should be have these by then:
|
|
[Automatic Post]: This PR seems to be currently waiting for review. @xingyaoww, could you please take a look when you have a chance? |
1 similar comment
|
[Automatic Post]: This PR seems to be currently waiting for review. @xingyaoww, could you please take a look when you have a chance? |
|
I think we can probably close this issue since this is merged? |
|
Yes! Awesome, now we have a better structure for this kind of stuff. I haven't tested yet if in that PR talking works for GPT-5 (non-codex), but I assume so, though we test behavior only for codex. I can follow up if necessary. I think it's a bit weird with all OpenAI models, they're so many now and 5.2 seems to behave differently on this issue than GPT-5, which... if true, it might be a little too much to handle. 😅 |
Teach GPT-5* to chat! 😅
We all know the silent GPT-5, and I understand from a recent talk from Graham that it wasn't all that liked by users, and it appears that OpenAI got enough reports about it too, that they wrote in the Prompting Guide about it:
Its silence is can be prompted out, for a better UX. This PR's prompt is a copy of our default prompt, with one addition: it adds this section for keeping the user informed.
This PR also proposes the introduction of model-family aware system prompts, and it starts with the GPT-5 system prompt. My best guess is that we may want something like 3-4 prompts, for the best models, while for the rest will be up to the user to customize.
fix #1233
Co-authored-by: openhands openhands@all-hands.dev
@enyst can click here to continue refining the PR
Agent Server images for this PR
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdknikolaik/python-nodejs:python3.12-nodejs22golang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:c227507-pythonRun
All tags pushed for this build
About Multi-Architecture Support
c227507-python) is a multi-arch manifest supporting both amd64 and arm64c227507-python-amd64) are also available if needed