Update app.py
Browse files
app.py
CHANGED
@@ -1103,13 +1103,13 @@ class TinkerIQApp:
|
|
1103 |
return error_msg
|
1104 |
|
1105 |
def _generate_ai_response(self, message: str) -> str:
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
|
1114 |
- Circuit analysis and design
|
1115 |
- Component selection and recommendations
|
|
|
1103 |
return error_msg
|
1104 |
|
1105 |
def _generate_ai_response(self, message: str) -> str:
|
1106 |
+
"""Generate intelligent responses using available AI providers"""
|
1107 |
+
|
1108 |
+
# Get current context
|
1109 |
+
context = self._build_conversation_context()
|
1110 |
+
|
1111 |
+
# Create a comprehensive prompt for the AI
|
1112 |
+
system_prompt = """You are TinkerIQ, an expert AI electronics assistant. You help with:
|
1113 |
|
1114 |
- Circuit analysis and design
|
1115 |
- Component selection and recommendations
|