The ballerinax/openai.finetunes
connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering use cases like file uploading, finetuning models, getting events/checkpoints of a job and deleting files.
-
Sarcastic Bot - Fine-tune the GPT-3.5-turbo model to generate sarcastic responses
-
Sports Headline Analyzer - Fine-tune the GPT-4o-mini model to extract structured information (player, team, sport, and gender) from sports headlines.
-
Generate an API key as described in the Setup guide.
-
For each example, create a
Config.toml
file the related configuration. Here's an example of how yourConfig.toml
file should look:token = "<API Key>"
Execute the following commands to build an example from the source:
-
To build an example:
bal build
-
To run an example:
bal run