-
Notifications
You must be signed in to change notification settings - Fork 2
feat(ai): added base for ai integration #589
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
slaveeks
commented
Nov 8, 2025
- added vercel ai integration
- added aiSuggestion to event resolver
- added base prompt for event suggesting
- added base role for prompt
src/models/eventsFactory.js
Outdated
| const Event = require('../models/event'); | ||
| const { ObjectID } = require('mongodb'); | ||
| const { composeEventPayloadByRepetition } = require('../utils/merge'); | ||
| const { vercelAIApi } = require('../resolvers/vercel-ai'); |
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.
model should not depend on resolver
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.
done
| "solution": "...", | ||
| "explanation": "..." | ||
| } | ||
| `; No newline at end of file |
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.
no newline at the end of the file
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.
done
src/typeDefs/event.ts
Outdated
| """ | ||
| AI suggestion for the event | ||
| """ | ||
| aiSuggestion: String! |
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.
seems goofy
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.
fixed