Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Errors using chatgpt-4.1 #138

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

Open
dcvtruong opened this issue Jun 9, 2025 · 0 comments
Open

Errors using chatgpt-4.1 #138

dcvtruong opened this issue Jun 9, 2025 · 0 comments

Comments

@dcvtruong
Copy link

Identifying abstractions using LLM...
Identifying abstractions using LLM...
Identifying abstractions using LLM...
Identifying abstractions using LLM...
Identifying abstractions using LLM...
Traceback (most recent call last):
File "/...../Codebase/.venv/PocketFlow-Tutorial-Codebase-Knowledge/main.py", line 97, in
main()
~~~~^^
File "/...../Codebase/.venv/PocketFlow-Tutorial-Codebase-Knowledge/main.py", line 94, in main
tutorial_flow.run(shared)
~~~~~~~~~~~~~~~~~^^^^^^^^
File "/opt/homebrew/lib/python3.13/site-packages/pocketflow/init.py", line 16, in run
return self._run(shared)
~~~~~~~~~^^^^^^^^
File "/opt/homebrew/lib/python3.13/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 "/opt/homebrew/lib/python3.13/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 "/opt/homebrew/lib/python3.13/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 "/opt/homebrew/lib/python3.13/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 "/opt/homebrew/lib/python3.13/site-packages/pocketflow/init.py", line 28, in exec_fallback
def exec_fallback(self,prep_res,exc): raise exc
^^^^^^^^^
File "/opt/homebrew/lib/python3.13/site-packages/pocketflow/init.py", line 31, in _exec
try: return self.exec(prep_res)
~~~~~~~~~^^^^^^^^^^
File "/...../Codebase/.venv/PocketFlow-Tutorial-Codebase-Knowledge/nodes.py", line 176, in exec
response = call_llm(prompt, use_cache=(use_cache and self.cur_retry == 0)) # Use cache only if enabled and not retrying
File "/...../Codebase/.venv/PocketFlow-Tutorial-Codebase-Knowledge/utils/call_llm.py", line 123, in call_llm
r = client.chat.completions.create(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
messages=[{"role": "user", "content": prompt}],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<8 lines>...
model=deployment
^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/lib/python3.13/site-packages/openai/_utils/_utils.py", line 287, in wrapper
return func(*args, **kwargs)
File "/opt/homebrew/lib/python3.13/site-packages/openai/resources/chat/completions/completions.py", line 925, in create
return self._post(
~~~~~~~~~~^
"/chat/completions",
^^^^^^^^^^^^^^^^^^^^
...<43 lines>...
stream_cls=Stream[ChatCompletionChunk],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/lib/python3.13/site-packages/openai/_base_client.py", line 1239, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.13/site-packages/openai/_base_client.py", line 1034, in request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}

@dcvtruong dcvtruong changed the title Error using chatgpt-4.1 Errors using chatgpt-4.1 Jun 9, 2025
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

No branches or pull requests

1 participant