-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Wasp ai #1259
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Mihovil Ilakovac <[email protected]>
* Martech * Record zip downloads * fix --------- Co-authored-by: Martin Sosic <[email protected]> Co-authored-by: Martin Šošić <[email protected]>
Signed-off-by: Mihovil Ilakovac <[email protected]>
Signed-off-by: Mihovil Ilakovac <[email protected]>
* add modals * keep GPT in title and meta tags * add trycatch blocks to JSON methods * remove alert from localstorage call * check prev state for modal * update og:title * add login and profile page * check if user has starred our repo * change cover fotos * remove GH api star check * make more sub-components and shared logic * add return statement * update header & renaming * add project converter functions * rename the renaming of renamed names :) * remove comments & order user projects
Signed-off-by: Mihovil Ilakovac <[email protected]>
Typos Fixed
* add delete user functionality * refactor to deleteMyself * delete user relevant info from projects * update status to deleted
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Two big parts:
wasp new
command, which if chosen, generates wasp app on the disk using ChatGPT. It is marked as experimental.wasp new-ai-machine
, which is to be used by Wasp AI web app and is not listed in the CLI usage/help. It prints everything to stdout (logs and files it creates) in the format that machine can parse.wasp-ai/
web app (in Wasp) that calls wasp CLI and that way generates wasp app via ChatGPT. It is a UI for this new feature.Give it a look, play with it, test a bit!
There is a bunch of TODOs in there that we yet have to take care of, but the core logic is here and it works!
TODO:
main
branch.I wonder why timeout happens though. Is it possible that it is enforced by our library that we use to invoke an http request? If so, should we prolong its timeout maybe?
example error response
wasp-cli: HttpExceptionRequest Request { host = "api.openai.com" port = 443 secure = True requestHeaders = [("Accept","application/json"),("Content-Type","application/json; charset=utf-8"),("Authorization","")] path = "/v1/chat/completions" queryString = "" method = "POST" proxy = Nothing rawBody = False redirectCount = 10 responseTimeout = ResponseTimeoutDefault requestVersion = HTTP/1.1 proxySecureMode = ProxySecureWithConnect } ResponseTimeoutIDEA: We could send just JSON as a single, standalone chat message and tell it to fix it. Or, we could send whole conversation that was used to generate JSON + add new message to it, from the Assistant, where it returns JSON, and then one more message from us saying "hey this JSON is invalid, pls fix it".
success
?Fixed on
main
and merged back, this was general bug.Things to fix that chatGPT currently often gets wrong while generating Wasp app (mostly by prompt engineering) + ideas:
User
entity, especially if user is not mentioned in the app description.,
afterfn
field in query/action, and beforeentities
field.context.<Entity>
is really a prisma thing? But I do want it know that hm.This might however be a mistake on our side, of incorrectly using the response from chatGPT and doing one
show
too much or smth like that, so let's look into that first.fn: @server/actions.js
action deleteNote { ... }
....
in places. That is probably because it saw that in our examples. We should not put...
in our example then.Web app: