-
Notifications
You must be signed in to change notification settings - Fork 877
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Trivial] Generalize internal helper getModelStates (#548)
This PR reorganizes internal code a bit to reuse code. We rename internal helper method `getLLMStates()` to `getModelStates()` and add `getEmebeddingStates()`, so engine's methods `embedding()`, `completion()`, and `chatCompletion()` can share the same preprocessing helper method.
- Loading branch information
1 parent
15277a5
commit c7a7285
Showing
2 changed files
with
59 additions
and
33 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