{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":604438966,"defaultBranch":"main","name":"discord-ai-bot","ownerLogin":"furoxr","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2023-02-21T03:56:48.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/37610161?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1678543608.091176","currentOid":""},"activityList":{"items":[{"before":"885d1e7bbd9a4c74f85d76a04d825c4422a957df","after":"fefd8fd8936d3a93ebc692edba81c208b9e25350","ref":"refs/heads/main","pushedAt":"2023-03-11T14:06:35.288Z","pushType":"push","commitsCount":1,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"feat:remove hardcode","shortMessageHtmlLink":"feat:remove hardcode"}},{"before":"da7deca7355d4866450cd828e150ee0255dee0e5","after":"885d1e7bbd9a4c74f85d76a04d825c4422a957df","ref":"refs/heads/main","pushedAt":"2023-03-11T13:59:20.636Z","pushType":"push","commitsCount":1,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"Create LICENSE","shortMessageHtmlLink":"Create LICENSE"}},{"before":"83dcd7aadaa4fcc5b3e364a2432eb1d737ec2613","after":"da7deca7355d4866450cd828e150ee0255dee0e5","ref":"refs/heads/main","pushedAt":"2023-03-11T12:29:27.099Z","pushType":"push","commitsCount":2,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"feat:Update README","shortMessageHtmlLink":"feat:Update README"}},{"before":"5a079b9fefaff536fed577af8c257fe8e912f750","after":"83dcd7aadaa4fcc5b3e364a2432eb1d737ec2613","ref":"refs/heads/main","pushedAt":"2023-03-11T08:30:20.416Z","pushType":"push","commitsCount":1,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"feat:Expose AI models and handle conversation length limit.","shortMessageHtmlLink":"feat:Expose AI models and handle conversation length limit."}},{"before":"d617191c825083532d0312b218b888a865a80cdd","after":"5a079b9fefaff536fed577af8c257fe8e912f750","ref":"refs/heads/main","pushedAt":"2023-03-11T07:23:18.696Z","pushType":"push","commitsCount":2,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"format","shortMessageHtmlLink":"format"}},{"before":"f8c5678372a0bb90cf6a771339228ec354170e85","after":"d617191c825083532d0312b218b888a865a80cdd","ref":"refs/heads/main","pushedAt":"2023-03-11T07:08:32.206Z","pushType":"push","commitsCount":2,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"feat:Refactor OpenAI API interactions for better token management.\n\n[src/ai.rs]\n- Add two structs, `TokenEncoder` and `Openai`, to handle token encoding and management of the OpenAI API\n- Move the `num_tokens_from_messages` function to the `TokenEncoder` struct\n- Change the argument of `num_tokens_from_messages` function from `&ConversationCtx` to `&VecDeque`\n- Add a new function in `TokenEncoder` to get the number of tokens from a single message\n- Modify `num_tokens_from_messages` function to call the new function for every message in the vector\n- Add a new function in `Openai` struct called `shrink_conversation` that shortens a conversation in the `ConversationCtx` struct given a limit of tokens\n- Add tests for the `num_tokens_from_messages` and `shrink_conversation` functions in the `tests` module.","shortMessageHtmlLink":"feat:Refactor OpenAI API interactions for better token management."}},{"before":"e18b7188508f8f76877549fd1190cbef8384bbc4","after":"f8c5678372a0bb90cf6a771339228ec354170e85","ref":"refs/heads/main","pushedAt":"2023-03-10T14:55:22.796Z","pushType":"push","commitsCount":1,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"format","shortMessageHtmlLink":"format"}},{"before":"3c472c9469ebde409c49079aecc5fb16d3b6faa7","after":"e18b7188508f8f76877549fd1190cbef8384bbc4","ref":"refs/heads/main","pushedAt":"2023-03-10T14:54:06.575Z","pushType":"push","commitsCount":2,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"feat:Add functionality to calculate consumed tokens","shortMessageHtmlLink":"feat:Add functionality to calculate consumed tokens"}},{"before":"ffc11dc27ab9622eed8f44224111f2d928950e67","after":"3c472c9469ebde409c49079aecc5fb16d3b6faa7","ref":"refs/heads/main","pushedAt":"2023-03-10T12:29:04.724Z","pushType":"push","commitsCount":2,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"feat:clean","shortMessageHtmlLink":"feat:clean"}},{"before":"a12a55d2d9638120b967538978c153340c3339b0","after":"ffc11dc27ab9622eed8f44224111f2d928950e67","ref":"refs/heads/main","pushedAt":"2023-03-10T11:39:02.636Z","pushType":"push","commitsCount":1,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"Improve error handling for qdrant::Value extraction\n\n- Introduces a new macro `try_match` that simplifies the process of extracting a value from `qdrant::Value` by returning an error if the value is not found or has a different kind.\n- Changes to `knowledge_base.rs` were made but omitted in the summary, suggesting significant modifications to the code.\n- Improves the overall functionality of the program by simplifying the extraction process and making error handling more robust.\n\n[src/helper.rs]\n- Added `try_match` macro to extract value from qdrant::Value, returning errors if value is not present or has different Kind.","shortMessageHtmlLink":"Improve error handling for qdrant::Value extraction"}},{"before":"d5a835a98f214574904c92a5a6fa457a645aa7a8","after":"a12a55d2d9638120b967538978c153340c3339b0","ref":"refs/heads/main","pushedAt":"2023-03-10T09:37:49.129Z","pushType":"push","commitsCount":2,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"feat:Improve error handling and remove redundant code in knowledge base.","shortMessageHtmlLink":"feat:Improve error handling and remove redundant code in knowledge base."}},{"before":"8e4fade9db24da3808e2805806d170de75952d42","after":"d5a835a98f214574904c92a5a6fa457a645aa7a8","ref":"refs/heads/main","pushedAt":"2023-03-10T05:54:12.972Z","pushType":"push","commitsCount":1,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"feat:Refactor conversation and message handling for better organization and readability","shortMessageHtmlLink":"feat:Refactor conversation and message handling for better organizati…"}},{"before":"f44d0af180c2c005bd087aa5ab9bb76d51bf246a","after":"8e4fade9db24da3808e2805806d170de75952d42","ref":"refs/heads/main","pushedAt":"2023-03-10T03:08:26.271Z","pushType":"push","commitsCount":1,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"feat:Refactor messaging pipeline and update dependencies.","shortMessageHtmlLink":"feat:Refactor messaging pipeline and update dependencies."}},{"before":"c21e080262ef27870704cb9c01dfae02d9ddd23d","after":"f44d0af180c2c005bd087aa5ab9bb76d51bf246a","ref":"refs/heads/main","pushedAt":"2023-03-09T09:45:55.051Z","pushType":"push","commitsCount":1,"pusher":{"login":"furoxr","name":"nada","path":"/furoxr","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/37610161?s=80&v=4"},"commit":{"message":"feat:update readme","shortMessageHtmlLink":"feat:update readme"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADAUzDTgA","startCursor":null,"endCursor":null}},"title":"Activity · furoxr/discord-ai-bot"}