lastmile-ai / aiconfig

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

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

Open Ankush-lastmile opened 10 months ago

Ankush-lastmile commented 10 months 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 9 months ago

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