You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 46e5c32
Browse filesBrowse the repository at this point in the historyBrowse files
.setModelId("gpt-4o") // Runtime model for config lookup
436
+
.setWireModel("my-finetune-v3") // Actual model name sent to provider API
437
+
.setMaxInputTokens(100_000) // Override max prompt tokens
438
+
.setMaxOutputTokens(4096)) // Override max output tokens
439
+
).get();
440
+
```
431
441
432
-
You must use an API key or static bearer token that you manage yourself.
442
+
| Property | Description |
443
+
|---|---|
444
+
|`modelId`| Well-known model name for runtime config lookup (tools, prompts, reasoning). Also used as wire model when `wireModel` is not set. Falls back to `SessionConfig.model`. |
445
+
|`wireModel`| Model name sent to the provider API. Use when the provider's model name (e.g. Azure deployment name or fine-tune) differs from `modelId`. Falls back to `modelId`, then `SessionConfig.model`. |
446
+
|`maxInputTokens`| Override max prompt tokens. The runtime compacts conversation before exceeding this limit. |
447
+
|`maxOutputTokens`| Override max output tokens. The model stops generating when this limit is hit. |
433
448
434
-
**Why not Entra ID?** While Entra ID does issue bearer tokens, these tokens are short-lived (typically 1 hour) and require automatic refresh via the Azure Identity SDK. The `bearerToken` option only accepts a static string—there is no callback mechanism for the SDK to request fresh tokens. For long-running workloads requiring Entra authentication, you would need to implement your own token refresh logic and create new sessions with updated tokens.
0 commit comments