Merged PR 74: Update Canvas

Update Canvas
This commit is contained in:
2025-03-03 16:32:12 +00:00

View File

@@ -49,7 +49,7 @@ public class CanvasExecutionService {
if(input != null){
olympusChatClient = createCanvasClient(aiModelRepository);
String userText = input;
String systemText = "Answer the following question using the language below using markdown: ";
String systemText = "Answer the following question: ";
OlympusChatClientResponse resp = olympusChatClient.getChatCompletion(systemText +"\n"+ userText);
canvasOutput.setStringOutput(resp.getContent());
@@ -72,7 +72,7 @@ public class CanvasExecutionService {
if(input != null){
olympusChatClient = createCanvasClient(aiModelRepository);
String userText = input;
String systemText = "Rephrase the following text using the language below using markdown: ";
String systemText = "Rephrase the following text: ";
OlympusChatClientResponse resp = olympusChatClient.getChatCompletion(systemText+"\n"+userText);
canvasOutput.setStringOutput(resp.getContent());
@@ -96,7 +96,7 @@ public class CanvasExecutionService {
if(input != null){
olympusChatClient = createCanvasClient(aiModelRepository);
String userText = input;
String systemText = "Summarize the following text using the language below using markdown: ";
String systemText = "Summarize the following text: ";
OlympusChatClientResponse resp = olympusChatClient.getChatCompletion(systemText+"\n"+userText);
canvasOutput.setStringOutput(resp.getContent());