Skip to content
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/create individual #52

Merged
merged 10 commits into from
Dec 22, 2024
Merged

Feat/create individual #52

merged 10 commits into from
Dec 22, 2024

Conversation

howard9199
Copy link
Contributor

  • Complete the individual stage and integrate with the api
  • Fix some LLM bugs

This pull request includes significant updates to the session management and conversation handling in the application. The changes focus on improving the deletion of conversations, enhancing the session and participant views, and adding detailed logging for debugging purposes.

Session Management and Conversation Handling Enhancements:

  • scripts/deleteConversation.ts: Introduced a new script to delete all conversations within a specific session, including proper error handling and logging for each deleted conversation.

Session and Participant View Updates:

  • src/lib/components/session/HostView.svelte:

    • Replaced Map with SvelteMap for reactivity in participantProgress. [1] [2]
    • Improved session initialization by adding a groupChecked set and refactoring the onSnapshot logic to handle conversation updates more efficiently. [1] [2]
    • Enhanced the user interface to display participant progress directly and handle errors more gracefully. [1] [2] [3]
  • src/lib/components/session/ParticipantView.svelte:

    • Added new imports and state management for handling conversations and recording audio.
    • Implemented functions to send audio to speech-to-text (STT) service and handle recording and sending messages.
    • Updated the layout and added a Chatroom component for better user interaction during the individual work phase. [1] [2]

Debugging and Logging Enhancements:

  • src/lib/server/llm.ts: Added detailed logging to various functions to track the flow of data and help debug issues related to content moderation, chat requests, and document-based LLM interactions. [1] [2] [3] [4] [5] [6]

howard9199 and others added 4 commits December 23, 2024 00:27
…rt button

Co-authored-by: JacobLinCool <jacob@csie.cool>
- Integrated audio recording functionality using MicVAD.
- Added support for sending audio to a speech-to-text API for transcription.
- Updated conversation handling to include audio messages.
- Improved group and conversation data fetching with Firestore.
- Enhanced UI to reflect real-time updates in group information and chat history.

Co-authored-by: JacobLinCool <jacob@csie.cool>
@JacobLinCool JacobLinCool requested a review from Copilot December 22, 2024 23:01
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 10 changed files in this pull request and generated 1 comment.

Files not reviewed (5)
  • src/lib/components/session/HostView.svelte: Language not supported
  • src/lib/components/session/ParticipantView.svelte: Language not supported
  • src/routes/test/chatroom/+page.svelte: Language not supported
  • src/routes/api/session/[id]/group/[group_number]/conversations/[conv_id]/chat/+server.ts: Evaluated as low risk
  • src/routes/api/session/[id]/group/[group_number]/join/+server.ts: Evaluated as low risk

@JacobLinCool JacobLinCool requested a review from Copilot December 22, 2024 23:27
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 10 changed files in this pull request and generated 1 comment.

Files not reviewed (5)
  • src/lib/components/session/HostView.svelte: Language not supported
  • src/lib/components/session/ParticipantView.svelte: Language not supported
  • src/routes/test/chatroom/+page.svelte: Language not supported
  • src/routes/api/session/[id]/group/[group_number]/conversations/+server.ts: Evaluated as low risk
  • src/routes/api/session/[id]/group/[group_number]/join/+server.ts: Evaluated as low risk

…/[conv_id]/chat/+server.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@howard9199 howard9199 merged commit 1ffa745 into main Dec 22, 2024
1 check passed
@howard9199 howard9199 deleted the feat/create-individual branch December 22, 2024 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant