Google Gemini api python package
Use the package manager pip to install CognxCore.
pip install cognxcore
from cognxcore import CogniCore
#Google Gemini API Key
api_key = input("Enter your API key: ")
ai = CogniCore(api_key)
#Prompt and response
prompt = input("Enter your prompt: ")
response = ai.generate_content(prompt)
print(response)
It should also create a config file you can modify within your script directory.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.