-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from zhudotexe/v1-dev
kani v1
- Loading branch information
Showing
73 changed files
with
3,849 additions
and
1,260 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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
HTTP Client | ||
=========== | ||
|
||
.. danger:: | ||
The aiohttp-based BaseClient has been deprecated in v1.0.0 and will be removed in a future version. | ||
We recommend using `httpx <https://www.python-httpx.org/>`_ to make HTTP requests instead. | ||
|
||
We have removed the top-level library dependency on ``aiohttp`` - existing code using the BaseClient will require | ||
manual installation of the ``aiohttp`` package. | ||
|
||
If your language model backend exposes an HTTP API, you can create a subclass of :class:`.BaseClient` to interface with | ||
it. Your engine should then create an instance of the new HTTP client and call it to make predictions. | ||
|
||
Minimally, to use the HTTP client, your subclass should set the ``SERVICE_BASE`` class variable. | ||
|
||
.. seealso:: | ||
|
||
The source code of the :class:`.OpenAIClient`, which uses the HTTP client. | ||
|
||
.. autoclass:: kani.engines.httpclient.BaseClient | ||
:noindex: | ||
:members: |
Oops, something went wrong.