Skip to content

Got IndexError with gemini model. #805

Closed
@GUNAND12

Description

@GUNAND12

I tried running below code but got an IndexError: list index out of range

graph_config = {
    "llm": {
        "api_key": "YOUR_GEMINI_APIKEY",
        "model": "gemini-1.5-pro",
    },
    "verbose": True,
    "headless": False,
}

# Create the SmartScraperGraph instance
smart_scraper_graph = SmartScraperGraph(
    prompt="Find some information about what does the company do, the name and a contact email.",
    source="https://scrapegraphai.com/",
    config=graph_config
)

# Run the pipeline
result = smart_scraper_graph.run()

I also tried changing the model gemini-pro.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions