[#345] Enable chatbot to search bipolar research docs#364
Merged
taichan03 merged 25 commits intoCodeForPhilly:listOfMedfrom Sep 3, 2025
Merged
[#345] Enable chatbot to search bipolar research docs#364taichan03 merged 25 commits intoCodeForPhilly:listOfMedfrom
taichan03 merged 25 commits intoCodeForPhilly:listOfMedfrom
Conversation
…ews and settings configuration
…tance - Replace conversation-based chat system with direct assistant API calls - Remove ConversationList component and related conversation state management - Switch from continueConversation to sendAssistantMessage API endpoint - Track current messages and response IDs instead of full conversations - Remove conversation creation, deletion, and title updating functionality - Simplify UI by removing conversation list toggle and management buttons - Update welcome message to focus on document-based Q&A instead of bipolar treatment - Maintain backward compatibility by keeping Conversation interface export - Remove DOM content extraction and page content tracking - Streamline message handling with direct assistant responses
This reverts commit 261634c.
sahilds1
commented
Sep 3, 2025
| MODEL_DEFAULTS = { | ||
| "instructions": INSTRUCTIONS, | ||
| "model": "gpt-5-nano", # 400,000 token context window | ||
| "reasoning": {"effort": "low", "summary": "auto"}, |
Collaborator
Author
There was a problem hiding this comment.
GPT-5, GPT-5 mini Access:
Models: All API users on tiers 1 through 5, with some subject to organization verification
Streaming: All API users on tiers 1 through 5, subject to organization verification
Reasoning Summaries (Responses API only): All API users on tiers 1 through 5, subject to organization verification
Endpoints: Responses API and Chat Completions API
https://help.openai.com/en/articles/10910291-api-organization-verification
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR enables the chatbot to search bipolar research docs per #345
This PR removed the previous server-backed, multi-conversation flow and on-page DOM extraction from the Chat component, along with associated state, functions, and UI for listing/selecting conversations
This PR added a new Assistant API (views + URL) that uses the OpenAI Responses API with function-calling, semantic document search, iterative reasoning, and cost/token tracking and added sendAssistantMessage() and rewrote Chat.tsx to persist conversations in sessionStorage, manage currentMessages/currentResponseId, and call the assistant endpoint.