Skip to content

getting an error after running generate_example(). #24

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
grassisgreenerr opened this issue Mar 29, 2024 · 0 comments
Open

getting an error after running generate_example(). #24

grassisgreenerr opened this issue Mar 29, 2024 · 0 comments

Comments

@grassisgreenerr
Copy link

'''
KeyError Traceback (most recent call last)
in <cell line: 45>()
45 for i in range(number_of_examples):
46 print(f'Generating example {i}')
---> 47 example = generate_example(prompt, prev_examples, temperature)
48 print(example)
49 prev_examples.append(example)

in generate_example(prompt, prev_examples, temperature)
39 print(response.json())
40
---> 41 return '' + response.json()['content'][0]['text'].split('')[1]
42
43 # Generate examples

KeyError: 'content'
'''

image

image

@grassisgreenerr grassisgreenerr changed the title getting an error after running generate_example(). getting an error after running generate_example(). Mar 29, 2024
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