Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -201,7 +201,7 @@ async def get_proxy():
|
|
201 |
let fullSystemPrompt = systemPrompt || "";
|
202 |
|
203 |
if (selectedCodeVersionsData && selectedCodeVersionsData.length > 0) {
|
204 |
-
codeContext =
|
205 |
|
206 |
selectedCodeVersionsData.forEach((versionData, index) => {
|
207 |
if (versionData && typeof versionData.code === 'string') {
|
@@ -212,7 +212,7 @@ async def get_proxy():
|
|
212 |
}
|
213 |
});
|
214 |
|
215 |
-
codeContext +=
|
216 |
}
|
217 |
|
218 |
const fullPrompt = codeContext + userPrompt;
|
|
|
201 |
let fullSystemPrompt = systemPrompt || "";
|
202 |
|
203 |
if (selectedCodeVersionsData && selectedCodeVersionsData.length > 0) {
|
204 |
+
codeContext = `Code context (chronological):\n\n`;
|
205 |
|
206 |
selectedCodeVersionsData.forEach((versionData, index) => {
|
207 |
if (versionData && typeof versionData.code === 'string') {
|
|
|
212 |
}
|
213 |
});
|
214 |
|
215 |
+
codeContext += `-------- end context ---\n\nUser request based on context:\n\n`;
|
216 |
}
|
217 |
|
218 |
const fullPrompt = codeContext + userPrompt;
|