Skip to content

Commit d895c0c

Browse files
committed
docs: align Foundry Local example with upstream integration guide
Use manager.endpoint instead of hardcoded URL, add wireApi: completions, and link to the full integration guide and working sample in the Foundry-Local repo (microsoft/Foundry-Local#417).
1 parent e4b9e4b commit d895c0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/auth/byok.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,16 @@ Use the [Foundry Local SDK](https://github.com/microsoft/Foundry-Local#-integrat
266266

267267
provider: {
268268
type: "openai",
269-
baseUrl: "http://localhost:5272/v1", // Default Foundry Local endpoint
269+
baseUrl: manager.endpoint, // e.g., "http://localhost:5272/v1"
270270
apiKey: manager.apiKey, // Provided by Foundry Local SDK
271+
wireApi: "completions", // Foundry Local uses Chat Completions API
271272
}
272273
```
273274

274275
> **Note:** Foundry Local must be [installed separately](https://github.com/microsoft/Foundry-Local#installing). Run `foundry model run gpt-oss-20b` to download and start a model.
275276
277+
For a complete walkthrough including tool calling, streaming, and multi-turn conversations, see the [Foundry Local Copilot SDK integration guide](https://github.com/microsoft/Foundry-Local/blob/main/docs/copilot-sdk-integration.md) and the [working Node.js sample](https://github.com/microsoft/Foundry-Local/tree/main/samples/js/copilot-sdk-foundry-local).
278+
276279
### Anthropic
277280

278281
```typescript

0 commit comments

Comments
 (0)