Changelog #6
·
@trigger.dev/openai v2.0.11
CTO, Trigger.dev
We've updated our OpenAI package to use the new and improved v4 of the OpenAI SDK.
All of our existing tasks should work as before, but now when you use the .native
property you'll get back and nice and shiny v4 SDK:
_12import { OpenAI } from "@trigger.dev/openai";_12_12const openai = new OpenAI({_12 id: "openai",_12 apiKey: process.env["OPENAI_API_KEY"]!,_12});_12_12// Before: v3 SDK_12openai.native.createCompletion({...});_12_12// Now: v4 SDK_12openai.native.completions.create({...});
We've also added some new tasks for enabling fine tuning jobs:
createFineTuningJob
- Create a fine-tuning job for a fine-tuning modelretrieveFineTuningJob
- Retrieve a fine-tuning job for a fine-tuning modellistFineTuningJobs
- List fine-tuning jobs for a fine-tuning modelcancelFineTuningJob
- Cancel a fine-tuning job for a fine-tuning modellistFineTuningJobEvents
- List fine-tuning job events for a fine-tuning model