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

openai_build_prompt() generating too long a prompt #8

Open
simonw opened this issue Jan 14, 2023 · 0 comments
Open

openai_build_prompt() generating too long a prompt #8

simonw opened this issue Jan 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@simonw
Copy link
Owner

simonw commented Jan 14, 2023

Something seems to have gone wrong here: https://datasette.simonwillison.net/simonwillisonblog/answer_question?question=Use+cases+for+newsrooms+using+Datasette+Cloud&_hide_sql=1

C3E1AF50-C4A8-4071-9087-EE6026DD9742

Is my token counting not right? Is there a logic problem with how it decides how much of an extract of each one to sue?

Ideally need to replicate this in a test.

@simonw simonw added the bug Something isn't working label Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant