adjust prompt
This commit is contained in:
@@ -80,7 +80,7 @@ func generateDumbOutput(bodyContents string) (string, error) {
|
||||
Messages: []AiMessage{
|
||||
{
|
||||
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",
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user