-
Notifications
You must be signed in to change notification settings - Fork 1k
Error on large codebase #openrouter #deepseek #61
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
Comments
Hey @arthurfanti could you use a more capable model like gemini 2.5 pro? |
Hi @zachary62 thanks for your quick response! $ python main.py --dir ~/code/ads-hub-advertiser-frontend -i "*.ts" "*.tsx" -e "node_modules/**/*" "*.spec.*"
Starting tutorial generation for: /Users/afanti/code/ads-hub-advertiser-frontend in English language
Crawling directory: /Users/afanti/code/ads-hub-advertiser-frontend...
Fetched 242 files.
Identifying abstractions using LLM...
Identified 8 abstractions.
Analyzing relationships using LLM...
Generated project summary and relationship details.
Determining chapter order using LLM...
Determined chapter order (indices): [0, 1, 5, 3, 2, 7, 4, 6]
Preparing to write 8 chapters...
Writing chapter 1 for: Nordic Application Structure
using LLM...
Writing chapter 1 for: Nordic Application Structure
using LLM...
Writing chapter 1 for: Nordic Application Structure
using LLM...
Writing chapter 1 for: Nordic Application Structure
using LLM...
Writing chapter 1 for: Nordic Application Structure
using LLM...
Traceback (most recent call last):
File "/Users/afanti/code/PocketFlow-Tutorial-Codebase-Knowledge/main.py", line 84, in <module>
main()
File "/Users/afanti/code/PocketFlow-Tutorial-Codebase-Knowledge/main.py", line 81, in main
tutorial_flow.run(shared)
File "/Users/afanti/.pyenv/versions/3.11.6/lib/python3.11/site-packages/pocketflow/__init__.py", line 16, in run
return self._run(shared)
^^^^^^^^^^^^^^^^^
File "/Users/afanti/.pyenv/versions/3.11.6/lib/python3.11/site-packages/pocketflow/__init__.py", line 50, in _run
def _run(self,shared): p=self.prep(shared); o=self._orch(shared); return self.post(shared,p,o)
^^^^^^^^^^^^^^^^^^
File "/Users/afanti/.pyenv/versions/3.11.6/lib/python3.11/site-packages/pocketflow/__init__.py", line 48, in _orch
while curr: curr.set_params(p); last_action=curr._run(shared); curr=copy.copy(self.get_next_node(curr,last_action))
^^^^^^^^^^^^^^^^^
File "/Users/afanti/.pyenv/versions/3.11.6/lib/python3.11/site-packages/pocketflow/__init__.py", line 13, in _run
def _run(self,shared): p=self.prep(shared); e=self._exec(p); return self.post(shared,p,e)
^^^^^^^^^^^^^
File "/Users/afanti/.pyenv/versions/3.11.6/lib/python3.11/site-packages/pocketflow/__init__.py", line 37, in _exec
def _exec(self,items): return [super(BatchNode,self)._exec(i) for i in (items or [])]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/afanti/.pyenv/versions/3.11.6/lib/python3.11/site-packages/pocketflow/__init__.py", line 37, in <listcomp>
def _exec(self,items): return [super(BatchNode,self)._exec(i) for i in (items or [])]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/afanti/.pyenv/versions/3.11.6/lib/python3.11/site-packages/pocketflow/__init__.py", line 33, in _exec
if self.cur_retry==self.max_retries-1: return self.exec_fallback(prep_res,e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/afanti/.pyenv/versions/3.11.6/lib/python3.11/site-packages/pocketflow/__init__.py", line 28, in exec_fallback
def exec_fallback(self,prep_res,exc): raise exc
^^^^^^^^^
File "/Users/afanti/.pyenv/versions/3.11.6/lib/python3.11/site-packages/pocketflow/__init__.py", line 31, in _exec
try: return self.exec(prep_res)
^^^^^^^^^^^^^^^^^^^
File "/Users/afanti/code/PocketFlow-Tutorial-Codebase-Knowledge/nodes.py", line 597, in exec
chapter_content = call_llm(prompt)
^^^^^^^^^^^^^^^^
File "/Users/afanti/code/PocketFlow-Tutorial-Codebase-Knowledge/utils/call_llm.py", line 124, in call_llm
return r.choices[0].message.content
~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
(3.11.6)
|
@arthurfanti what other models have you used that work ? Any local ones ? |
Have you finally solve this problem? how did you? |
@arthurfanti here you go, but using it on large codebases will not work, too many tokens needed. |
I'm currently running the tool agains a codebase with 242 files (after filtering down with flags
-i
and-e
), but I keep getting the same error:I'm using openai module and openrouter url/key, like this: (I've tried different models here)
And I tried increasing the waiting interval like so:
Also, I've confirmed that running
python utils/call_llm.py
works fine:Can anyone assist me with this?
Thanks!
The text was updated successfully, but these errors were encountered: