Closed ivanleomk closed 2 weeks ago
Latest commit: |
50eabf2
|
Status: | ✅ Deploy successful! |
Preview URL: | https://7a5f9188.instructor.pages.dev |
Branch Preview URL: | https://add-batch-cli.instructor.pages.dev |
please add a lil recording and doc pages before we're ready to merge
This is a video recording of the cli in action where we use a generated output.jsonl
file in order to create a batch job, cancel the same batch job and also list all existing batch jobs.
https://github.com/jxnl/instructor/assets/45760326/b56d4714-bea4-4a7d-bb5d-f673f5dc2550
Also added a docs page which shows a new snippet on how to generate these .jsonl files
When can we expect the next release to include this?
Excited to use this batch CLI command
@slavakurilyak we just released v1.3.4 which has it!
This targets #604 by implementing two main new features
BatchJob
class which allows users to create.jsonl
files which are compatible with OpenAI's new batch job functionSummary:
This PR introduces a new
BatchJob
class and CLI commands for managing batch jobs with OpenAI's API.Key points:
BatchJob
class ininstructor/batch.py
for creating.jsonl
files for batch jobs.instructor/cli/batch.py
to list, create, and cancel batch jobs.instructor/cli/cli.py
.Generated with :heart: by ellipsis.dev