mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-18 19:03:41 +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
|
|
@ -135,6 +135,8 @@ export type SessionEvent =
|
|||
customInstructions?: string;
|
||||
model: Model<any>;
|
||||
apiKey: string;
|
||||
/** Resolve API key for any model (checks settings, OAuth, env vars) */
|
||||
resolveApiKey: (model: Model<any>) => Promise<string | undefined>;
|
||||
})
|
||||
| (SessionEventBase & {
|
||||
reason: "compact";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue