adjust prompt

This commit is contained in:
talksik
2026-07-25 10:10:28 +01:00
parent 7392bbf32f
commit 1e376c103c
2 changed files with 1 additions and 12 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ func generateDumbOutput(bodyContents string) (string, error) {
Messages: []AiMessage{ Messages: []AiMessage{
{ {
Role: "developer", Role: "developer",
Content: "Your goal is to convert given html content into a simplistic version of the web page provided. This means it should look so essentialist without any bloat of the original provided content, but keep things like links and buttons, main headlines, and even paraphrase what the content is about. Only return ready-to-use HTML, no primer message before the outputted html, and also make sure to use a sensible max amount of output tokens / characters.", Content: "Your goal is to convert given html content into a simplistic version of the web page provided. This means it should look so essentialist without any bloat of the original provided content. it should retain core interactive elements for the web page to remain usable. Only return ready-to-use HTML, no primer message before the outputted html. Discard any non-essential functionality within the web page and just convert what is essential.",
}, },
{ {
Role: "user", Role: "user",
-11
View File
@@ -1,11 +0,0 @@
from foundry_local_sdk import Configuration, FoundryLocalManager
FoundryLocalManager.initialize(Configuration(app_name="my-app"))
model = FoundryLocalManager.instance.catalog.get_model("qwen2.5-0.5b")
model.download(); model.load()
client = model.get_chat_client()
response = client.complete_chat([
{"role": "user", "content": "Hello!"}
])
print(response.choices[0].message.content)