Repository navigation
fix(llms): move later developer messages for models declared system-first #39852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 16 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
07f32a2
fix(transformation): merge consecutive system and developer messages …
sowmy86 12699bd
fix(base_utils): keep later cache_control and billing metadata bounda…
sowmy86 eecea12
perf(base_utils): fold consecutive system messages in a single linear…
sowmy86 25186b1
fix(base_utils): hoist later developer messages into the leading syst…
mateo-berri 356fae0
fix(openai): hoist later developer messages into one leading system m…
mateo-berri 9b859f0
refactor(base_utils): fold each run of system messages in one pass
mateo-berri f500578
fix(base_utils): keep a closing developer message in place and hoist …
mateo-berri 9820d2f
fix(base_utils): keep a closing developer message in place only after…
mateo-berri 1d26ee5
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
mateo-berri 20b3f1e
refactor(openai): reuse is_openai_backed_api_base for the hosted endp…
mateo-berri 69fd884
test(base_utils): cover an empty system message inside a block-conten…
sowmy86 ea840eb
fix(openai): hoist developer messages for litellm_proxy and harden th…
mateo-berri 4e3ea74
fix(litellm_proxy): keep the AllMessageValues import the transform si…
mateo-berri d5d70da
Merge branch 'litellm_internal_staging' of https://github.com/BerriAI…
mateo-berri 22da54b
fix(fireworks_ai): hoist developer items after the first turn on the …
mateo-berri 8b49a64
Merge branch 'litellm_internal_staging' of https://github.com/BerriAI…
mateo-berri 08c1a1c
fix(transformation): carry the developer-message hoist onto main 9633…
mateo-berri e91fda4
chore: merge the pre-merge branch history (8b49a6438c) into the rebui…
mateo-berri 88923bc
fix(transformation): join a lone plain text block as text when hoisti…
mateo-berri 5c9607d
fix(transformation): hoist later developer messages only for models t…
mateo-berri 08eac7b
fix(responses): fold later developer items into instructions on hoste…
mateo-berri dbc4d11
fix(llms): place developer messages only for models declared system-f…
mateo-berri 0b99586
Merge remote-tracking branch 'origin/main' into litellm_lit_7019_hois…
mateo-berri a6a9910
fix(proxy): keep a closing developer message's cache mark when it is …
mateo-berri 7c4ef7c
Merge remote-tracking branch 'origin/main' into litellm_lit_7019_hois…
mateo-berri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.