Skip to content

Commit bd7eb93

Browse files
committed
fix: Adjustment prompt
1 parent 9b3cdce commit bd7eb93

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/useQuery.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ export async function queryVariableNames(content: string, signal?: AbortSignal):
2424
body: JSON.stringify({
2525
// https://platform.openai.com/docs/api-reference/chat/create
2626
model: "gpt-3.5-turbo",
27-
temperature: 0.2,
2827
messages: [
2928
{
3029
role: "user",
3130
content: `Translate variable names into English and apply naming conventions: ${CASES.join(",")}.
32-
Save the result in the format: [{value: 'result', type: 'convention'}], serialize the output.
33-
The variable name to be translated is: '${content}'`,
31+
Save the result in the format: [{value: 'result', type: 'convention'}]. Serialize the output without any explanation.
32+
The string to be translated is "${content}"`,
3433
},
3534
],
3635
}),

0 commit comments

Comments
 (0)