This is a simple example of how to use the Foundry Local SDK to run a model locally and make requests to it. The example demonstrates how to set up the SDK, initialize a model, and make a request to the model.
Before Start, first install foundry
brew tap microsoft/foundrylocal
brew install foundrylocalInstall the Foundry Local SDK and OpenAI packages using npm:
npm install Run the application using Node.js:
npm run dev:translate
npm run dev:fixerRun the foundry local list:
foundry model listRun the check for status:
foundry service status