Switch to LiteLLM Responses API; default gpt-5 and --fast gpt-5-nano with high reasoning#3
Open
devin-ai-integration[bot] wants to merge 3 commits intomainfrom
Conversation
…m.responses with high reasoning Co-Authored-By: Shouryamaan Jain <jainshouryamaan@gmail.com>
Co-Authored-By: Shouryamaan Jain <jainshouryamaan@gmail.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
… update Azure prompt to GPT-5 Co-Authored-By: Shouryamaan Jain <jainshouryamaan@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switch to LiteLLM Responses API; default gpt-5 and --fast gpt-5-nano with high reasoning
Summary
This PR implements the requested model updates and API migration for Emplode:
gpt-4otogpt-5, and fast mode (--fast) fromgpt-4o-minitogpt-5-nanolitellm.completion()calls withlitellm.responses()APIreasoning={"effort": "high"}parameter for both modelsThe migration preserves Azure OpenAI and custom API base compatibility while adapting the streaming response format to work with existing message/code block handling logic.
Review & Testing Checklist for Human
gpt-5model (verify responses stream naturally)emplode --fastusinggpt-5-nanofunctions=totools=parameterNotes
functions=[...]totools=[...]parameter which could impact function calling reliabilityLink to Devin run: https://app.devin.ai/sessions/699a540d18d7451bb5e59658f89559e1
Requested by: Shouryamaan Jain (@shouryamaanjain)