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

Move models into ~/schema #1410

Open
1 of 4 tasks
kulla opened this issue Apr 18, 2024 · 2 comments · Fixed by #1697
Open
1 of 4 tasks

Move models into ~/schema #1410

kulla opened this issue Apr 18, 2024 · 2 comments · Fixed by #1697

Comments

@kulla
Copy link
Member

kulla commented Apr 18, 2024

After the refactoring we want to remove ~/model. There are some Models which should be easily migrateable into ~/schema:

@AndreasHuber
Copy link
Contributor

I would prefer migrating https://github.com/serlo/api.serlo.org/blob/staging/packages/server/src/model/ai.ts directly into the frontend instead.

@kulla
Copy link
Member Author

kulla commented Apr 26, 2024

I would prefer migrating https://github.com/serlo/api.serlo.org/blob/staging/packages/server/src/model/ai.ts directly into the frontend instead.

I am with you that this is might be a good simplication. However the backend in the frontend does not know about kratos / our users. So checking whether the user has the rights to do the prompt is not easy to be done yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants