-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add insight for open questions #20
Comments
Then maybe the market_invalid endpoint would also be interesting for you. So people don't create invalid questions? These two endpoints receive market_id, then lookup market on subgraph, but then they use only market's question. I think you can refactor them to accept question itself instead of market id. The reason for market id was fear of abusing API -- if market id is passed, no one can abuse it because there is limited number of markets and the responses are cached. If raw question is passed, people can start spamming these endpoints. So, as a follow-up ticket, we will need to ensure it's not possible. Maybe you have some idea already? Some sort of authentication or something? |
One thing we can do right away is to create a new project in OpenAI and limit its budget. So we don't get billed for nothing. And then, we can work on this in a follow-up issue. |
Having a limited budget is probably the best right now. If the limit gets reached, I would suggest adding auth capabilities to the backend via https://github.com/fastapi-users/fastapi-users |
It would be useful to have an open question's insight (e.g. a potential new market or a broader question that answers similar markets).
Instead of receiving a market_id, this endpoint should directly receive the question string.
The text was updated successfully, but these errors were encountered: