Next-generation Gemini API Client
Project description
Next-generation Gemini API Client
from gemini_ng import GeminiClient
client = GeminiClient() # api key from environment variable `GEMINI_API_KEY`
with client.start_chat(model="models/gemini-1.5-pro-latest") as chat:
image = client.upload_image("path/to/image.jpg")
rsp = chat.send_message([image, "Can you describe this image?"])
print(rsp)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gemini_ng-0.0.2.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for gemini_ng-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9f7a2c3b12fb1e6539819f7baf1b816560cdd7899e36c035f793b05300cf3ca |
|
MD5 | 1242360d1c4b5fffc341146e46acc91f |
|
BLAKE2b-256 | 94f54b3cb431c7dc7dc5aeedefe65311aab91be9b835e940b3fdb1ce72f5ea19 |