From fafe68f4d3740a277b75560fa5151fc5bdcfa455 Mon Sep 17 00:00:00 2001 From: NikhilGangaram Date: Wed, 4 Feb 2026 18:57:24 -0800 Subject: [PATCH] updated the name of the xrp buddy --- README.md | 8 ++++---- docs/XRP Software Architecture.md | 4 ++-- src/components/chat/ai-chat.tsx | 2 +- src/components/chat/chat-message.tsx | 2 +- src/utils/gemini-client.ts | 6 +++--- src/utils/gemini-context-loader.ts | 2 +- src/utils/i18n/locales/en/en.json | 12 ++++++------ 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 63a9059..cdc1ab2 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ The XRP software platform is an integrated development environment where you can ### Backend Setup (AI Assistant) -The backend provides the XRPCode Buddy AI assistant functionality through a secure FastAPI proxy. +The backend provides the XRP Buddy AI assistant functionality through a secure FastAPI proxy. 1. **Navigate to backend directory** ```bash @@ -88,9 +88,9 @@ source venv/bin/activate # or venv\Scripts\activate on Windows python main.py ``` -## 🤖 XRPCode Buddy - AI Assistant +## 🤖 XRP Buddy - AI Assistant -XRP Web includes **XRPCode Buddy**, an intelligent AI assistant powered by Google Gemini that provides contextual help with your robotics projects. The AI automatically has access to: +XRP Web includes **XRP Buddy**, an intelligent AI assistant powered by Google Gemini that provides contextual help with your robotics projects. The AI automatically has access to: - **📚 Complete XRP Documentation** - All API references, tutorials, and programming guides - **💻 Your Current Code** - Both Python files and Blockly visual programs you have open @@ -116,7 +116,7 @@ XRP Web includes **XRPCode Buddy**, an intelligent AI assistant powered by Googl ### AI Model & Architecture -**XRPCode Buddy** uses: +**XRP Buddy** uses: - **Model**: Gemini 2.5 Flash - Google's latest fast and efficient model optimized for real-time conversations and code assistance - **Architecture**: FastAPI backend proxy with specialized educational prompts - **Security**: API keys stored server-side, not exposed to browser diff --git a/docs/XRP Software Architecture.md b/docs/XRP Software Architecture.md index 3df64a6..6536dfd 100644 --- a/docs/XRP Software Architecture.md +++ b/docs/XRP Software Architecture.md @@ -60,9 +60,9 @@ thirdparty -->rd @enduml ``` -## AI Assistant (XRP Code Buddy) +## AI Assistant (XRP Buddy) -The XRP Web Development Application integrates an educational AI Assistant, "XRP Code Buddy," powered by the Gemini API. This assistant is designed to guide students through robotics programming challenges using best teaching practices rather than simply providing solutions. +The XRP Web Development Application integrates an educational AI Assistant, "XRP Buddy," powered by the Gemini API. This assistant is designed to guide students through robotics programming challenges using best teaching practices rather than simply providing solutions. ### AI Interaction Workflow diff --git a/src/components/chat/ai-chat.tsx b/src/components/chat/ai-chat.tsx index 34921e8..fd16704 100644 --- a/src/components/chat/ai-chat.tsx +++ b/src/components/chat/ai-chat.tsx @@ -197,7 +197,7 @@ export default function AIChat() { role: 'assistant', content: `Error: ${error instanceof Error ? error.message : 'Failed to get response'}`, timestamp: new Date(), - model: modelName || 'XRPCode Buddy', + model: modelName || 'XRP Buddy', }; setMessages(prev => [...prev, errorMessage]); diff --git a/src/components/chat/chat-message.tsx b/src/components/chat/chat-message.tsx index f071757..b6ae5b7 100644 --- a/src/components/chat/chat-message.tsx +++ b/src/components/chat/chat-message.tsx @@ -133,7 +133,7 @@ const ChatMessageComponent: React.FC = ({ message }) => { {message.role === 'user' ? 'U' : 'XRP'} - {message.role === 'user' ? 'You' : 'XRP Code Buddy'} + {message.role === 'user' ? 'You' : 'XRP Buddy'} diff --git a/src/utils/gemini-client.ts b/src/utils/gemini-client.ts index 547819d..54db3c4 100644 --- a/src/utils/gemini-client.ts +++ b/src/utils/gemini-client.ts @@ -1,7 +1,7 @@ import { ChatMessage } from './types'; /** - * Simplified Gemini client for XRP Code Buddy + * Simplified Gemini client for XRP Buddy * All AI configuration and teaching guidelines are now handled by the backend */ export class GeminiClient { @@ -67,12 +67,12 @@ export class GeminiClient { const response = await fetch(`${this.backendUrl}/model-info`); if (response.ok) { const data = await response.json(); - return data.model_name || 'XRPCode Buddy'; + return data.model_name || 'XRP Buddy'; } } catch (error) { console.warn('Failed to fetch model name from backend:', error); } - return 'XRPCode Buddy'; // Fallback + return 'XRP Buddy'; // Fallback } /** diff --git a/src/utils/gemini-context-loader.ts b/src/utils/gemini-context-loader.ts index f5cd3b9..5f69ffd 100644 --- a/src/utils/gemini-context-loader.ts +++ b/src/utils/gemini-context-loader.ts @@ -3,7 +3,7 @@ import TerminalMgr from '@/managers/terminalmgr'; import { EditorType } from './types'; /** - * Simplified context loader for XRP Code Buddy + * Simplified context loader for XRP Buddy * Only handles gathering dynamic context (editor/terminal) since documentation is loaded at backend startup */ export class GeminiContextLoader { diff --git a/src/utils/i18n/locales/en/en.json b/src/utils/i18n/locales/en/en.json index 80a01b1..9d1c048 100644 --- a/src/utils/i18n/locales/en/en.json +++ b/src/utils/i18n/locales/en/en.json @@ -53,8 +53,8 @@ "selectUserOption": "Select a User", "myview": "My View", "settings": "Settings", - "ai-chat": "AI Buddy", - "ai-chat-help": "Chat with XRPCode Buddy", + "ai-chat": "XRP Buddy", + "ai-chat-help": "Chat with XRP Buddy", "user-folder": "User Folder Name", "google-drive-folder": "Google Drive Folder Name", "googleLoginTooltip": "Sign in with your Google account to access files stored in Google Drive.", @@ -163,18 +163,18 @@ "stop": "STOP", "stopRunningProgram": "Stop Running Program...", "aiChat": { - "buddyName": "XRPCode Buddy", + "buddyName": "XRP Buddy", "poweredBy": "Powered by Gemini", "docsLoaded": "Documentation loaded", "loadingDocs": "Loading docs...", "failedToLoadDocs": "Failed to load docs", "noContext": "No context", "startConversation": "Start a conversation", - "startConversationHelper": "Ask questions, get help with code, or learn XRP robotics with XRPCode Buddy.", - "placeholder": "Message XRPCode Buddy...", + "startConversationHelper": "Ask questions, get help with code, or learn XRP robotics with XRP Buddy.", + "placeholder": "Message XRP Buddy...", "stopGeneration": "Stop generation", "sendMessage": "Send message", - "buddyTyping": "XRPCode Buddy is typing..." + "buddyTyping": "XRP Buddy is typing..." }, "editor": { "saveconnect": "To save your file, please connect to your XRP or login to your Google Drive account."