# "The same in GPT and Gemini": the GPT half.# Run: OPENAI_API_KEY=... jennifer run gpt.juse io; use json; use os;
import"@deckyard/openai/"as openai;
def key asstringinitos.getEnv("OPENAI_API_KEY");
def c asopenai.Client initopenai.client($key); # OPENAI_API_KEYif (os.hasEnv("OPENAI_BASE_URL")) {
$c = openai.withBaseUrl($c, os.getEnv("OPENAI_BASE_URL"));
}
def req asjson.Value initopenai.newRequest("gpt-5.4-mini");
$req = openai.withSystem($req, "Answer in one sentence.");
$req = openai.addUserText($req, "Why is the sky blue?");
io.printf("%s\n", openai.text(openai.chat($c, $req)));