-
Notifications
You must be signed in to change notification settings - Fork 2
Feat/ollama #538
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/ollama #538
Conversation
- Replace OpenAI-specific env vars with `OLLAMA_URL` and `OLLAMA_MODEL` in `.env.example` - Update `config/copilot.yaml` to use the Ollama provider and default model (`gpt-oss:20b`) - Pass Ollama settings through Docker Compose and add `host.docker.internal` mapping so the UI can reach a host-running Ollama instance - Update UI Dockerfile docs to reflect Ollama runtime configuration, enabling local model usage without an OpenAI API key
Reformatted chat route and assistant components to satisfy lint/Prettier rules, including trailing commas, consistent wrapping, and JSX layout changes without functional impact.
|
Claude finished @orangekame3's task —— View job Code Review for PR #538: Feat/ollamaOverviewThis PR successfully migrates from CopilotKit to a custom Ollama-based chat implementation. The changes are well-structured and follow good architectural patterns. Below is my comprehensive review: ✅ StrengthsClean Architecture
Security Considerations
Code Quality
|
- Register getChipList, getChipMetricsData, and getMetricsConfiguration tools so the assistant can fetch and analyze chip metrics autonomously. - Update the default system prompt with guidance for evaluating/analyzing metrics (defaulting to latest chip and 7 days of data) to improve responses. - Ensure isRunning is cleared before appending assistant/tool messages to prevent duplicate AI/loading indicators in the chat UI.
|
I'll analyze this and get back to you. |
- Add `language` setting and Japanese `initial_message` to Copilot config - Introduce configurable suggestion buttons that append preset prompts into the chat thread - Replace markdown-based empty-state prompt list with a clearer, guided onboarding UI
|
Claude finished @orangekame3's task —— View job Code Review for PR #538: Feat/ollamaComprehensive review of the migration from CopilotKit to Ollama-based chat implementation. Todo List:
🚨 Critical Security IssueContext Injection Vulnerability - if (context) {
systemMessage += `\n\nCurrent context:\n${JSON.stringify(context, null, 2)}`;
}
🔧 Implementation IssuesMemory Management Problem
const handleClear = () => {
window.location.reload(); // Heavy-handed approach
};
Error Handling Gaps
⚡ Performance Concerns
🧪 Test Coverage Critical GapNo tests found for the new chat functionality:
🔍 Code Quality IssuesMissing Input Validation
Architecture Concerns
✅ Positive Aspects
📋 Recommendations🔴 Must Fix Before Merge
🟡 Should Fix Soon
🟢 Future Improvements
🎯 Overall AssessmentThis is a solid architectural migration with good separation of concerns, but the critical security vulnerability with context injection must be addressed before merging. The lack of test coverage is also concerning for production deployment. Recommendation: Fix security issue and add basic tests, then this will be ready for merge. |
Add a `language` field (default `en`) and a typed `Suggestion` model with a `suggestions` list to support localized, structured prompt suggestions in the chat UI.
|
Claude finished @orangekame3's task —— View job Code Review for PR #538: Feat/ollamaComprehensive review of the migration from CopilotKit to Ollama-based chat implementation. Todo List:
🚨 Critical Security IssueContext Injection Vulnerability - if (context) {
systemMessage += `\n\nCurrent context:\n${JSON.stringify(context, null, 2)}`;
}
🔧 Implementation IssuesMemory Management Problem
const handleClear = () => {
window.location.reload(); // Heavy-handed approach
};
Error Handling Gaps
⚡ Performance Concerns
🧪 Test Coverage Critical GapNo tests found for the new chat functionality:
🔍 Code Quality IssuesMissing Input Validation
Architecture Concerns
✅ Positive Aspects
📋 Recommendations🔴 Must Fix Before Merge
🟡 Should Fix Soon
🟢 Future Improvements
🎯 Overall AssessmentThis is a solid architectural migration with good separation of concerns, but the critical security vulnerability with context injection must be addressed before merging. The lack of test coverage is also concerning for production deployment. Recommendation: Fix security issue and add basic tests, then this will be ready for merge. |

Reformatted chat route and assistant components to satisfy lint/Prettier rules, including trailing commas, consistent wrapping, and JSX layout changes without functional impact.