Skip to content

File "/home/codespace/Desktop/AgentLaboratory-main/inference.py", line 211, in query_model raise Exception("Max retries: timeout") Exception: Max retries: timeout" #101

@cos3comp

Description

@cos3comp

How to fix the error below:

" access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}
Traceback (most recent call last):
File "/home/codespace/Desktop/AgentLaboratory-main/ai_lab_repo.py", line 861, in
lab.perform_research()
File "/home/codespace/Desktop/AgentLaboratory-main/ai_lab_repo.py", line 158, in perform_research
while repeat: repeat = self.literature_review()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codespace/Desktop/AgentLaboratory-main/ai_lab_repo.py", line 473, in literature_review
resp = self.phd.inference(self.research_topic, "literature review", step=0, temp=0.4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codespace/Desktop/AgentLaboratory-main/agents.py", line 260, in inference
model_resp = query_model(model_str=self.model, system_prompt=sys_prompt, prompt=prompt, temp=temp, openai_api_key=self.openai_api_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codespace/Desktop/AgentLaboratory-main/inference.py", line 211, in query_model
raise Exception("Max retries: timeout")
Exception: Max retries: timeout"

when running ""python ai_lab_repo.py --yaml-location "experiment_configs/MATH_agentlab.yaml"?

Thanks a lot!

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