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

AttributeError: 'dict' object has no attribute 'to_openai' #105

Open
DonaghBr opened this issue Mar 1, 2024 · 2 comments
Open

AttributeError: 'dict' object has no attribute 'to_openai' #105

DonaghBr opened this issue Mar 1, 2024 · 2 comments

Comments

@DonaghBr
Copy link

DonaghBr commented Mar 1, 2024

Path: /examples/openai-sql

When I ran the app I got this AttributeError: 'dict' object has no attribute 'to_openai'?

@hfinda
Copy link

hfinda commented Mar 4, 2024

Little change in your code

stream = await client.chat.completions.create(
    messages=generation.messages, stream=True, **settings
)

it will work... all the best

@DonaghBr
Copy link
Author

DonaghBr commented Mar 4, 2024

That worked - thanks so much

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

2 participants