This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass additional model params to the LLM (#191)
* Initial work on passing additional params to the LLM * Improve merging of request params with config params. Add request_params_passthrough config option * Add remaining OpenAI LLM params to ChatRequest * Add ability to override LLM API keys for single requests * Add tests for model param and api key overriding * Fix reference to old config value name * Move changes related to API key overriding to another branch * Default to false * Fix tests * Fix lint and style issues * [chat] Bug fix after wrong conflict resolution * [llm] Explicit model= param in chat_completion() I believe this makes the code more readable and explicit * [test] test_chat_engine - parameterize instead of code duplication This saves redundant code duplication, while still checking all possible cases * [test] test_openai_llm - added test case for passing model as param Now that we support forwarding params from the API, this is an important missing test * [models] Restructured the ChatRequest model a bit Mostly for readability --------- Co-authored-by: ilai <[email protected]>
- Loading branch information
1 parent
10cae12
commit b42f06c
Showing
8 changed files
with
136 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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