Skip to content

Commit df00fd0

Browse files
committed
Update global instruction in OpenAIService to enhance response formatting guidelines
1 parent 5af7f17 commit df00fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Services/OpenAIService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function conversation($text, $model, $prompt = 'assistant', $temperature)
116116

117117
private function getPromptDescription($prompt)
118118
{
119-
$globalInstruction = 'Use markdown format whenever you consider it necessary to enrich the text of your responses.';
119+
$globalInstruction = 'Use markdown format whenever you consider it necessary to enrich the text of your responses, adding separation lines for the texts, improving headers, line spacing, and elements to enhance the response and make it look clean and professional.';
120120

121121
$promptDescription = [
122122
'assistant' => 'You are an AI assistant. Provide helpful responses to user queries.',
@@ -132,7 +132,7 @@ private function getPromptDescription($prompt)
132132

133133
return ($promptDescription[$prompt] ?? $promptDescription['assistant']) . $globalInstruction;
134134
}
135-
135+
136136
public function getAIModels(): ListResponse
137137
{
138138
$response = OpenAI::models()->list();

0 commit comments

Comments
 (0)