Skip to content

App Throws an Error When GENAI_API_KEY Isn't Present or Isn't Correct #4

Description

@Aaron-Hoffman

The docs suggest that using gen ai is optional and you can leave this environment variable blank. However, if you run the app with this env variable blank there is an error.

Error: Missing key inputs argument! To use the Google AI API, provide (`api_key`) arguments. To use the Google Cloud API, provide (`vertexai`, `project` & `location`) arguments.

If you set it to an invalid value, the app will run but throw an error on any request.

This should either be removed from the docs, if it's not possible, or if there is a way to run the bot without this key, the docs should explain how to do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions