mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 16:00:58 +00:00
Add resolveApiKey to before_compact hook event
This commit is contained in:
parent
5aa53ded11
commit
43a5447a80
4 changed files with 9 additions and 0 deletions
|
|
@ -772,6 +772,7 @@ export class AgentSession {
|
|||
customInstructions,
|
||||
model: this.model,
|
||||
apiKey,
|
||||
resolveApiKey: this._resolveApiKey,
|
||||
})) as SessionEventResult | undefined;
|
||||
|
||||
if (result?.cancel) {
|
||||
|
|
@ -922,6 +923,7 @@ export class AgentSession {
|
|||
customInstructions: undefined,
|
||||
model: this.model,
|
||||
apiKey,
|
||||
resolveApiKey: this._resolveApiKey,
|
||||
})) as SessionEventResult | undefined;
|
||||
|
||||
if (hookResult?.cancel) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue