mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
Add getApiKey to web-ui example Agent config
Provides API keys from the provider keys store, matching old ProviderTransport behavior.
This commit is contained in:
parent
3bf168615a
commit
977e4ea6ef
1 changed files with 5 additions and 0 deletions
|
|
@ -176,6 +176,11 @@ Feel free to use these tools when needed to provide accurate and helpful respons
|
|||
},
|
||||
// Custom transformer: convert custom messages to LLM-compatible format
|
||||
convertToLlm: customConvertToLlm,
|
||||
// Get API keys from provider keys store
|
||||
getApiKey: async (provider: string) => {
|
||||
const key = await storage.providerKeys.get(provider);
|
||||
return key ?? undefined;
|
||||
},
|
||||
});
|
||||
|
||||
agentUnsubscribe = agent.subscribe((event: any) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue