Simplify getApiKey pass-through, add changelog entry for #223

This commit is contained in:
Mario Zechner 2025-12-19 01:37:53 +01:00
parent 1167e84453
commit 774aaadbc0
3 changed files with 4 additions and 1 deletions

View file

@ -58,7 +58,7 @@ export class ProviderTransport implements AgentTransport {
model,
reasoning: cfg.reasoning,
// Resolve API key per assistant response (important for expiring OAuth tokens)
getApiKey: this.options.getApiKey ? (provider) => this.options.getApiKey?.(provider) : undefined,
getApiKey: this.options.getApiKey,
getQueuedMessages: cfg.getQueuedMessages,
};
}