-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat: expand context discussions bot has for answers by including discussion answers #3778
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Run & review this pull request in StackBlitz Codeflow. |
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 16e36a3. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 3 targetsSent with 💌 from NxCloud. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 16e36a3:
|
Size Change: 0 B Total Size: 1.01 MB ℹ️ View Unchanged
|
Passing run #7808 ↗︎
Details:
Review all test suite changes for PR #3778 ↗︎ |
Passing run #7809 ↗︎
Details:
Review all test suite changes for PR #3778 ↗︎ |
This pull request primarily focuses on updates to the
handler
function in thepackages/paste-website/src/pages/api/ai.ts
file and thegetCompletion
function in thepackages/paste-website/src/pages/api/paste-assistant-simple-completion.ts
file. The main changes include updating the log messages, increasing the token count limit, changing the RPC method name, and updating the model used for chat completions.Here are the key changes:
Updates to
handler
function:packages/paste-website/src/pages/api/ai.ts
: The log message for requesting page sections based on embeddings has been updated to include discussions. The RPC method name has been changed frommatch_page_sections_for_ai
tomatch_page_sections_v3
. The token count limit has been increased from 1500 to 2500. The log message for context text has been updated to include the token count. The model used for chat completions has been updated fromgpt-4-1106-preview
togpt-4-turbo-preview
. [1] [2] [3]Updates to
getCompletion
function:packages/paste-website/src/pages/api/paste-assistant-simple-completion.ts
: The model used for chat completions has been updated fromgpt-4-1106-preview
togpt-4-turbo-preview
.