From 24e4990399de577ff43e5451fe0377402bc65a35 Mon Sep 17 00:00:00 2001 From: Randy Hollines Date: Tue, 4 Mar 2025 06:42:52 -0700 Subject: [PATCH] Update README.md --- README.md | 49 +++++++++++-------------------------------------- 1 file changed, 11 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index f7c64f020..8a8d886c3 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,17 @@ ## Examples ```ruby -# simple openai and perplexity inference +class Hello { + function : Main(args : String[]) ~ Nil { + "Hello World" → PrintLine(); + "Καλημέρα κόσμε" → PrintLine(); + "こんにちは 世界" → PrintLine(); + } +} +``` + +```ruby +# openai and perplexity inference use API.OpenAI, API.OpenAI.Chat, Collection; class OpenAICompletion { @@ -104,23 +114,6 @@ class OpenAICompletion { } ``` -```ruby -# create an image from a prompt -use API.OpenAI, API.OpenAI.FineTuning, System.IO.Filesystem, Data.JSON; - -class CreateImage { - function : Main(args : String[]) ~ Nil { - image := Image->Create("Create an image of two old steel gears with a transparent background", token); - if(image <> Nil) { - urls := image->GetUrls(); - each(url in urls) { - url->ToString()->PrintLine(); - }; - }; - } - } -``` - ```ruby # image identification use API.Google.Gemini, System.IO.Filesystem; @@ -139,26 +132,6 @@ class IdentifyImage { } ``` -```ruby -# tune ML model -use Collection, API.OpenAI, System.IO.Filesystem, Data.JSON, Data.CSV; - -class TuneAssist { - function : Main(args : String[]) ~ Nil { - if(args->Size() = 1) { - filename := args[1]; - file := API.OpenAI.File->LoadOrCreate(filename, "fine-tune", token); - - name := file->GetFilename(); - id := file->GetId(); - "file='{$name}', id='{$id}'"->PrintLine(); - tuning_job := Tuner->Create("gpt-3.5-turbo", id, token); - tuning_job->ToString()->PrintLine(); - } - } -} -``` - ```ruby # text to speech use Web.HTTP, Collection, Data.JSON, API.OpenAI.Audio;