-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
InferenceClient.chat_completion
+ use new types for text-…
…generation (#2094) * ChatCompletion types * style + minijinja * remove pydantic + add templating + first draft * remove print * type update * Use spec-ed object for text_generation * move remaining text_generation stuff to _common * add stream types for chat completion task * stream in chat_completion * to be tested but should be good * fix docs * Update text generation types * another update * update chat completion defnition * fix tests * add chat_completion test * chat completino async test * what a shitshow * fix test using TGI * more tests * make style * fix async * docs * make minijinja optional * add role to chat output + adapt tests * changes from feedback * fix tests * stuff * fix token types * typo * update string
- Loading branch information
Showing
27 changed files
with
2,330 additions
and
955 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
Oops, something went wrong.