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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user