-
Notifications
You must be signed in to change notification settings - Fork 1
Add dialog for editing AI prompts #3021
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
Conversation
Det hadde vore en fordel å prepopulere prompt-skjema med eksisterende verdier! |
Enig! |
@@ -187,6 +187,21 @@ const aiMiddleware = (req: Request, res: express.Response, next: express.NextFun | |||
} | |||
}; | |||
|
|||
router.get("/default-ai-prompts", jwtMiddleware, aiMiddleware, async (req, res) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Burde vi sjekke at vi støtter språkkoden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ja det gjøres inni getDefaultPrompts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Men kanskje returnere bad request i stedet for å fallback'e til NB?
10f656f
to
e2562e5
Compare
Fixes NDLANO/Issues#4345