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
OpenAI service & copy suggestion endpoint #1307
OpenAI service & copy suggestion endpoint #1307
Conversation
GB-230 Visual Editor - AI-powered suggestions for copy
Use GPT to allow suggesting copy for websites using the visual editor |
Your preview environment pr-1307-bttf has been deployed. Preview environment endpoints are available at: |
6b877a4
to
e10cb9c
Compare
e10cb9c
to
da34ad0
Compare
Added feature flag and conditional appending of query param based on feature flag value Tested with FF on and off end-to-end |
@jdorn I spent some time trying to resolve the merge conflicts this morning but couldn't make progress ... Could we pair on this when you have a moment? |
1f86f55
to
0a8741e
Compare
Tested
|
New backend endpoint to generate copy suggestions for the Visual Editor. Leverages the OpenAI API.
Changes:
openai
and@dqbd/tiktoken
npm packages/transform-copy
endpoint to REST API (intentionally undocumented)AITokenUsageModel
to track daily usage and enforce limitingopenai
that exposes generalized API for prompt completion flow