/CognxCore

Google Gemini api python package

Primary LanguagePythonMIT LicenseMIT

CognxCore

Google Gemini api python package

Installation

Use the package manager pip to install CognxCore.

pip install cognxcore

Usage

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.

Contributing

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.

License

MIT