Skip to content

feat(providers/openai): support batch api in hook/operator/trigger - #41554

Merged
Lee-W merged 14 commits into
apache:mainfrom
josix:feat/openai/support-batch-api
Aug 22, 2024
Merged

feat(providers/openai): support batch api in hook/operator/trigger#41554
Lee-W merged 14 commits into
apache:mainfrom
josix:feat/openai/support-batch-api

Conversation

@josix

@josixjosix commented Aug 17, 2024

Copy link
Copy Markdown
Contributor

closes: #41336

  • Hook that supports batch api related operation
  • Operator/Trigger for Batch API
  • Unit tests for new added behaviors to hook
  • Unit tests for new added behaviors to operator
  • Unit tests for new added behaviors to trigger
  • Update how-to guide
  • Update provider.yaml

image


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Comment threadairflow/providers/openai/hooks/openai.py Outdated
@josix
josixforce-pushed the feat/openai/support-batch-api branch 2 times, most recently from a0b3069 to 95a8b0bCompareAugust 19, 2024 19:06
@josix
josix marked this pull request as ready for review August 19, 2024 19:07
@josix
josixforce-pushed the feat/openai/support-batch-api branch from 95a8b0b to 6410863CompareAugust 19, 2024 19:39
@josix
josixforce-pushed the feat/openai/support-batch-api branch from 6410863 to 2bba21aCompareAugust 19, 2024 19:56
Comment threadairflow/providers/openai/operators/openai.py Outdated
Comment threadairflow/providers/openai/hooks/openai.py
Comment threadairflow/providers/openai/hooks/openai.py
Comment threadairflow/providers/openai/hooks/openai.py Outdated
Comment threadairflow/providers/openai/hooks/openai.py Outdated
Comment threadairflow/providers/openai/hooks/openai.py Outdated
Comment threadairflow/providers/openai/operators/openai.py Outdated
Comment threadairflow/providers/openai/operators/openai.py Outdated
Comment threadairflow/providers/openai/triggers/openai.py Outdated
Comment threadairflow/providers/openai/triggers/openai.py Outdated
Comment threadairflow/providers/openai/triggers/openai.py Outdated
josixand others added 7 commits August 20, 2024 18:33
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
@josix
josixforce-pushed the feat/openai/support-batch-api branch from 92718bd to d2a5415CompareAugust 20, 2024 12:43
Comment threadtests/providers/openai/operators/test_openai.py Outdated
@josix
josixforce-pushed the feat/openai/support-batch-api branch from d2a5415 to 2bc3c4bCompareAugust 20, 2024 16:25
@josix
josix requested review from Lee-W and vincbeckAugust 20, 2024 16:47
Comment threadtests/providers/openai/operators/test_openai.py
Comment threadtests/providers/openai/operators/test_openai.py

@Lee-WLee-W left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left one nitpick. we should be able to merge this one once addressed

Comment threadairflow/providers/openai/exceptions.py Outdated
Comment threadairflow/providers/openai/hooks/openai.py Outdated
@josix
josix requested a review from ginger0207August 21, 2024 09:22
@Lee-W
Lee-W merged commit 00e73e6 into apache:mainAug 22, 2024
potiuk added a commit to potiuk/airflow that referenced this pull request Aug 22, 2024
The apache#41554 broke exclusion of openai tests when no pydantic is
installed.
potiuk added a commit that referenced this pull request Aug 22, 2024
The #41554 broke exclusion of openai tests when no pydantic is
installed.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[OpenAI Provider] Support Batch API in OpenAI Hook

4 participants

@josix@Lee-W@ginger0207@vincbeck