This folder contains samples for interacting with GitHub Models using JavaScript.
Multiple model-specific SDKs are compatible with the endpoint served under the GitHub Models catalog, such as openai
and mistralai
packages for their respective models. This makes it easy to port your existing code using one of those SDKs.
You can also use the azure-ai-inference
package for a cross-model unified SDK.
To run a JavaScript sample, a command like the following in your terminal:
node samples/js/azure_ai_inference/multi_turn.js