Skip to content

Conversation

@krystianpiecko
Copy link

I wasn't comfortable pulling the API key directly from the environment variables. So, I've expanded the functionality to allow registering the API key in the macOS keychain. Planetery ran the tests successfully with this setup.

I'm sharing this with you as a heads-up and something to consider.

Krystian Piecko and others added 2 commits June 30, 2025 12:22
@kiddos
Copy link
Owner

kiddos commented Jul 6, 2025

I like your idea, but this would break the Command that uses the stream function

Krystian Piecko added 9 commits September 2, 2025 20:13
Refactored the get_api_key function to be asynchronous (get_api_key_async) using vim.loop.spawn. This prevents blocking during streaming operations.

- Updated gemini_generate_content and gemini_generate_content_stream to use the new asynchronous function.
- Adjusted the test suite in tests/gemini/api_spec.lua to handle the asynchronous nature of the API calls, ensuring tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants