lastmile-ai / aiconfig

AIConfig is a config-based framework to build generative AI applications.
https://aiconfig.lastmileai.dev
MIT License
965 stars 79 forks source link

[py] PaLM Model Parser doesn't check for API Key #382

Open Ankush-lastmile opened 1 year ago

Ankush-lastmile commented 1 year ago

PaLM model parser doesn't explicitly check for API key.

It currently needs to be manually configured by doing something like the following

import google.generativeai as palm
import os
palm.configure(api_key=os.getenv("PALM_KEY"))   

In this example the key must be an environment variable under the name "PALM_KEY"

Ankush-lastmile commented 11 months ago

note: without an api key check, palm api throws an unrecognizable error.