Skip to content

AttributeError when sending prompts #159

Description

@elwais

With the latest commit (1731445), attempting to query any valid model returns the following Python error:

AttributeError: type object 'Model' has no attribute 'from_name'

The file app/server/chat.py attempts to do Model.from_name(), but the Gemini-API library installed has since deprecated Model and removed its from_name method, making the server unusable.

I've put out a PR at #158 that modifies app/server/chat.py. Please have a look and see if it resolves the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions