Skip to content

Add direct prefix patch for LiteLLM#11

Open
AlexCuadron wants to merge 1 commit intoaime2024-benchmarkfrom
alex-aime2024-benchmark-pr
Open

Add direct prefix patch for LiteLLM#11
AlexCuadron wants to merge 1 commit intoaime2024-benchmarkfrom
alex-aime2024-benchmark-pr

Conversation

@AlexCuadron
Copy link
Owner

This PR adds a direct prefix patch for LiteLLM to support prefix-based conversations. The patch transforms standard message formats into a prefix-based format where the assistant's previous responses and observations are combined into a growing narrative that's included as a prefix in subsequent turns.

Changes include:

  • Added openhands/direct_prefix_patch.py with the core transformation logic
  • Added a shell script evaluation/benchmarks/aime2025/scripts/run_with_direct_patch.sh to run the AIME2025 benchmark with the direct prefix patch

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.

1 participant