Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue when one of match groups is NoneType #975

Merged
merged 2 commits into from
May 29, 2024
Merged

fix issue when one of match groups is NoneType #975

merged 2 commits into from
May 29, 2024

Conversation

LeonOstrez
Copy link
Member

Fix for issue:

File core/cli/main.py, line 38, in runproject
    success = await orca.run()
File core/agents/orchestrator.py, line 64, in run
    response = await agent.run()
File core/agents/developer.py, line 79, in run
    await self.getrelevant_files()
File core/agents/developer.py, line 223, in get_relevant_files
    llm_response: list[str] = await llm(convo, parser=JSONParser(RelevantFiles), temperature=0)
File core/agents/base.py, line 173, in client
    response, request_log = await llm_client(convo, **kwargs)
File core/llm/base.py, line 192, in __call
    wait_time = self.rate_limit_sleep(err)
File core/llm/openai_client.py, line 107, in rate_limit_sleep
    seconds = int(match.group(1)) * 3600 + int(match.group(2)) * 60 + int(match.group(3))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

@LeonOstrez LeonOstrez requested a review from senko May 29, 2024 06:43
@senko senko merged commit c9690ab into main May 29, 2024
6 checks passed
@senko senko deleted the rate-limit branch May 29, 2024 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants