forked from flyteorg/flytekit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add openai batch API agent (flyteorg#2353)
* add openai batch endpoint agent Signed-off-by: Samhita Alla <[email protected]> * add jsonl type transformer, modify agent Signed-off-by: Samhita Alla <[email protected]> * revert format changes Signed-off-by: Samhita Alla <[email protected]> * revert iterator edits Signed-off-by: Samhita Alla <[email protected]> * typealias Signed-off-by: Samhita Alla <[email protected]> * add jsonlines Signed-off-by: Samhita Alla <[email protected]> * remove typealias Signed-off-by: Samhita Alla <[email protected]> * update readthedocs python version Signed-off-by: Samhita Alla <[email protected]> * update docs python version Signed-off-by: Samhita Alla <[email protected]> * replace dict with enum Signed-off-by: Samhita Alla <[email protected]> * modify json type; add a check to validate if iterator's empty Signed-off-by: Samhita Alla <[email protected]> * ignore mypy check Signed-off-by: Samhita Alla <[email protected]> * modify JSON type Signed-off-by: Samhita Alla <[email protected]> * move to openai folder Signed-off-by: Samhita Alla <[email protected]> * update readme Signed-off-by: Samhita Alla <[email protected]> * update setup.py Signed-off-by: Samhita Alla <[email protected]> * batch_api to batch, add plugin to setup.py Signed-off-by: Samhita Alla <[email protected]> * modify return type Signed-off-by: Samhita Alla <[email protected]> * modify return type Signed-off-by: Samhita Alla <[email protected]> * fix lint error Signed-off-by: Samhita Alla <[email protected]> * remove guess_python_type Signed-off-by: Samhita Alla <[email protected]> * modify json type Signed-off-by: Samhita Alla <[email protected]> * modify tests Signed-off-by: Samhita Alla <[email protected]> * json to iterator[json] Signed-off-by: Samhita Alla <[email protected]> * update plugin readme Signed-off-by: Samhita Alla <[email protected]> * replace flytefile with jsonlfile Signed-off-by: Samhita Alla <[email protected]> * modify output type of batch; add typealias Signed-off-by: Samhita Alla <[email protected]> * nit Signed-off-by: Samhita Alla <[email protected]> * nit Signed-off-by: Samhita Alla <[email protected]> * replace openai-batch-endpoint with openai-batch Signed-off-by: Samhita Alla <[email protected]> * update readme Signed-off-by: Samhita Alla <[email protected]> * revert to secrets Signed-off-by: Samhita Alla <[email protected]> * fix openai batch code; add json iterator click type Signed-off-by: Samhita Alla <[email protected]> * update readme Signed-off-by: Samhita Alla <[email protected]> * fix types Signed-off-by: Samhita Alla <[email protected]> * add shim tasks Signed-off-by: Samhita Alla <[email protected]> * dict to dataclass; add container image; add guess_python_type to json iterator Signed-off-by: Samhita Alla <[email protected]> * json iterator check in type engine and flytefile Signed-off-by: Samhita Alla <[email protected]> * update image version Signed-off-by: Samhita Alla <[email protected]> * add secret; update json iterator Signed-off-by: Samhita Alla <[email protected]> * add secret to shim task init method Signed-off-by: Samhita Alla <[email protected]> * fix secret Signed-off-by: Samhita Alla <[email protected]> * fix secret Signed-off-by: Samhita Alla <[email protected]> * add secret to dict Signed-off-by: Samhita Alla <[email protected]> * fix logging error; remove iterator copy; remove in flyte entity names Signed-off-by: Samhita Alla <[email protected]> * openai tests Signed-off-by: Samhita Alla <[email protected]> * lint and remove auto spec in openai tests Signed-off-by: Samhita Alla <[email protected]> * fix test Signed-off-by: Samhita Alla <[email protected]> * json key check Signed-off-by: Samhita Alla <[email protected]> * modify input type of upload json data to jsonlfile only Signed-off-by: Samhita Alla <[email protected]> * add jsonl to mime type Signed-off-by: Samhita Alla <[email protected]> * change mime type Signed-off-by: Samhita Alla <[email protected]> * change mime type and fix tests Signed-off-by: Samhita Alla <[email protected]> * add json mime type Signed-off-by: Samhita Alla <[email protected]> * lint Signed-off-by: Samhita Alla <[email protected]> * lint Signed-off-by: Samhita Alla <[email protected]> * incorporate kevin's suggestion Signed-off-by: Samhita Alla <[email protected]> * requests 2.32.2 doesn't work either Signed-off-by: Samhita Alla <[email protected]> --------- Signed-off-by: Samhita Alla <[email protected]>
- Loading branch information
1 parent
cf3b44b
commit 4f5a468
Showing
34 changed files
with
1,209 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _openai: | ||
|
||
################ | ||
OpenAI reference | ||
################ | ||
|
||
.. tags:: Integration, OpenAI | ||
|
||
.. automodule:: flytekitplugins.openai | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. automodule:: flytekit.types.iterator | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
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.