Likely unintentional- tracking g on a GitHub issue?
Likely unintentional- tracking g on a GitHub issue?
Before the break, I updated the OpenAI Realtime API console sample app to use WebRTC (and @fastify.dev with @astro.build ๐) - should be pretty light weight, uses just the RTCPeerConnection directly.
Ask it for advice designing a color palette ๐จ
github.com/openai/opena...
I like Christmas... but I find no fault in this plan either ๐ก
First holiday TODO โ
bare-minimum landing page at kevin.mn
Thanksgiving break mode engaged for middle teenager.
This flow is how you can provide a model external data to use for generations, or allow a model to control any external system programmatically. Here's the full example I just showed, usable in Node or @deno.land:
Code: gist.github.com/kwhinnery/a6...
Docs:
platform.openai.com/docs/guides/...
4๏ธโฃ Finally, make another call to the model containing the previous prompts and messages we sent, plus the function call message sent by the model after the first request, and our response.
Now the model can generate a response for the user!
3๏ธโฃ In this case, the model correctly decides it should call the "generate_horoscope" function. Instead of a text response, the model returns a message containing a JSON string of data that should be passed in to a function call in your code.
2๏ธโฃ Generate output from the model based on a prompt. Depending on the content of the prompt, the model may decide to call a function that you provide to it.
1๏ธโฃ Define a list of functions the model could decide to call based on a prompt. We provide only one function that expects an astrological sign in an input object.
Simple (but complete) walkthrough of function calling in the OpenAI API in four acts. If you haven't tried it before, this is how you connect OAI models to external data or systems. Link to full code at the end of the ๐งต
Changi airport lives up to the hype - I get why people plan to go there early before flying out. I didn't have time to see the butterfly garden, but a sweet old lady gave me some katsu curry I watched her make from scratch for $8 and it was amazing.
Did you know you can run evals on your prompts in the OpenAI dashboard? Here's a quick walkthrough of uploading a test data set and comparing GPT-4o model outputs to ground truth data in a test dataset.
youtu.be/DtFCGsqwtGY
By convention I always post the doggo first on a new social platform โ๏ธ