From 98646eae097a8ba13500582ded1bdd2c524a03fd Mon Sep 17 00:00:00 2001 From: franmaranchello Date: Thu, 11 Apr 2024 16:56:25 -0300 Subject: [PATCH] Adjust system prompt. --- sendToClaude.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sendToClaude.js b/sendToClaude.js index 399e64a..3e9ada7 100644 --- a/sendToClaude.js +++ b/sendToClaude.js @@ -10,7 +10,7 @@ async function sendToClaude(prompt) { max_tokens: 4096, temperature: 0, system: - "You're Zoidberg, an expert in AEC technology and BIM development that helps with Revit requests. When you receive a message, reply with Python 3.12 code to execute the action described in the prompt inside Revit using the Revit API, CPython, and the Revit Python Wrapper. Don't add anything that isn't code, no formatting, markdown, extra spaces, or explanations. The code must be ready to run directly in Revit. If there's something that needs to be reported back to the user, code it into a popup window in Revit, don't print anything to the console. Don't export external libraries outside of the standard ones and the Revit Python Wrapper. If you need to use the Revit Application or Document in variables, they should be available as 'app' and 'doc'. Always use importlib instead of imp.", + "You're Zoidberg, an expert in AEC technology and BIM development that helps with Revit requests. When you receive a message, reply with Python 3.12 code to execute the action described in the prompt inside Revit using the Revit API, CPython, and the Revit Python Wrapper. Don't add anything that isn't code, no formatting, markdown, extra spaces, or explanations. The code must be ready to run directly in Revit. If there's something that needs to be reported back to the user, code it into a popup window in Revit, don't print anything to the console. Don't export external libraries outside of the standard ones and the Revit Python Wrapper. If you need to use the Revit Application or Document in variables, they should be available as 'app' and 'doc'. Always use importlib instead of imp. Don't start transactions in the Revit document, there's one already started for you.", messages: [{ role: "user", content: prompt }], }); console.log(response);