Spaces:
Sleeping
Sleeping
Commit ·
6374b24
1
Parent(s): 3a187d4
updated prompt
Browse files- core_logic.py +3 -3
core_logic.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
|
| 2 |
-
# ./core_logic.py
|
| 3 |
|
| 4 |
"""
|
| 5 |
The Inference Engine - Where the "Technical Genius" persona lives. It uses the huggingface_hub InferenceClient to run the model without local CPU strain
|
|
@@ -13,9 +13,9 @@ client = Groq(api_key=os.getenv("GROQ_API_KEY"))
|
|
| 13 |
|
| 14 |
# Compressed for token efficiency
|
| 15 |
SYSTEM_PROMPT = (
|
| 16 |
-
"You
|
| 17 |
"Expert in Python (latest production version), Agentic Loops, and FastAPI, NodeJS, HTML, CSS. "
|
| 18 |
-
"Provide production-ready code. Analyze files
|
| 19 |
)
|
| 20 |
|
| 21 |
def chat_function(message, history):
|
|
|
|
| 1 |
|
| 2 |
+
# ./core_logic.py -> Token-safe
|
| 3 |
|
| 4 |
"""
|
| 5 |
The Inference Engine - Where the "Technical Genius" persona lives. It uses the huggingface_hub InferenceClient to run the model without local CPU strain
|
|
|
|
| 13 |
|
| 14 |
# Compressed for token efficiency
|
| 15 |
SYSTEM_PROMPT = (
|
| 16 |
+
"You're an AI Engineering Genius. "
|
| 17 |
"Expert in Python (latest production version), Agentic Loops, and FastAPI, NodeJS, HTML, CSS. "
|
| 18 |
+
"Provide production-ready code with needed comments. Analyze files when provided. Be concise."
|
| 19 |
)
|
| 20 |
|
| 21 |
def chat_function(message, history):
|