Closed sweep-ai[bot] closed 11 months ago
Name | Link |
---|---|
Latest commit | 5cb9594b6e0374098168747c4b9f051bf1cac4b1 |
Latest deploy log | https://app.netlify.com/sites/endless-chat/deploys/6568794d58008900088b4f8b |
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
44444444444 | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Nov 30, 2023 0:02am |
emphasize | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Nov 30, 2023 0:02am |
endless-chat | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Nov 30, 2023 0:02am |
free-chat | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Nov 30, 2023 0:02am |
free-chat-personal | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Nov 30, 2023 0:02am |
Name | Link |
---|---|
Latest commit | 5cb9594b6e0374098168747c4b9f051bf1cac4b1 |
Latest deploy log | https://app.netlify.com/sites/chat-for-free/deploys/6568794dc0dd4d00084aea1c |
θΏιθ¦ε¨ /api/generate.ts δΈε δΈε components/Generator.tsx δΈδΈζ ·ηθ£εͺ messages ηι»θΎ
β Failed to make changes
Please join our Discord to report this issue.
PR Feedback (click)
Description
This pull request includes changes to the
src/utils/tiktoken.ts
file. It modifies thecountTokensSingleMessage
function to calculate the token count for a single chat message, accounting for metadata tokens. It also updates thecountTokens
function to handle different scenarios and provide more detailed token counts.Additionally, the pull request adds a TODO comment to remind developers to add or update tests for the new cases introduced in the code.
Summary
countTokensSingleMessage
function to calculate the token count for a single chat message, accounting for metadata tokens.countTokens
function to handle different scenarios and provide more detailed token counts.Fixes #17.
π Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py
!π‘ To get Sweep to edit this pull request, you can: