MervinPraison / PraisonAI

PraisonAI application combines AutoGen and CrewAI or similar frameworks into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration. Chat with your ENTIRE Codebase.
https://docs.praison.ai
MIT License
2.26k stars 310 forks source link

it wont work with gemini what to do #148

Open Uddhav07 opened 2 months ago

Uddhav07 commented 2 months ago

image

Uddhav07 commented 2 months ago

i even tried

from langchain_google_genai import GoogleGenerativeAI

but langsmith unable to import like ughh

MervinPraison commented 2 months ago

make sure the agents.yaml looks like this

framework: crewai
topic: create movie script about cat in mars
roles:
  researcher:
    backstory: Skilled in finding and organizing information, with a focus on research
      efficiency.
    goal: Gather information about Mars and cats
    role: Researcher
    llm:  
      model: "google/gemini-1.5-flash-001"
    tasks:
      gather_research:
        description: Research and gather information about Mars, its environment,
          and cats, including their behavior and characteristics.
        expected_output: Document with research findings, including interesting facts
          and information.
    tools:
    - ''
MervinPraison commented 2 months ago

Documentation here https://docs.praison.ai/models/google/ Also make sure you set the model in agents.yaml like this model: "google/gemini-1.5-flash-001"

Uddhav07 commented 2 months ago

Documentation here https://docs.praison.ai/models/google/ Also make sure you set the model in agents.yaml like this model: "google/gemini-1.5-flash-001"

Yes