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

Potential bug - local variable 'data' referenced before assignment #34

Open
krzysztoflupa opened this issue Dec 5, 2023 · 0 comments
Open

Comments

@krzysztoflupa
Copy link

Some details which could be helpful, thanks guys good work.

Traceback (most recent call last):
File "/Users/gpt/gpt/app.py", line 53, in ‹module>
ai_response = 11m(modified_content)
File "/usr/local/lib/python3.9/site-packages/langchain_core/language_models/11ms.py", line 879, in call-
self.generate(
File "/usr/local/lib/python3.9/site-packages/langchain_core/language_models/llms.py"', line 656, in generate
output = self._generate_helper(
File "/usr/local/lib/python3.9/site-packages/langchain_core/language_models/llms.py", line 543, in _generate_helper raise e
File "/usr/local/lib/python3.9/site-packages/langchain_core/language_models/1lms.py", line 530, in _generate_helper self._generate(
File "/usr/local/lib/python3.9/site-packages/langchain_core/language_models/1lms.py", line 1058, in _generate else self._call(prompt, stop=stop, **kwargs)
File "/usr/local/lib/python3.9/site-packages/gpt4_openai/init•py", line 61, in _call
response = data["message"]
UnboundLocalError: local variable 'data' referenced before assignment

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