feat: add API key caching via settings.json (#16)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2025-10-27 23:41:34 -07:00
committed by GitHub
parent fdfc94d9db
commit 50c249e36d
8 changed files with 46 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ export async function sendMessageStream(
// add more later: includePings, request timeouts, etc.
} = { streamTokens: true, background: true },
): Promise<AsyncIterable<Letta.LettaStreamingResponse>> {
const client = getClient();
const client = await getClient();
return client.agents.messages.createStream(agentId, {
messages: messages,
streamTokens: opts.streamTokens ?? true,