Skip to content

Commit 3b50962

Browse files
committed
Update createLinearIssue.ts
1 parent f1dec55 commit 3b50962

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

server/src/methods/createLinearIssue.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,18 @@ export const handler = async (
4141
const linearUsers = await getLinearUsers({ userId: currentUserId })
4242

4343
const message = `
44-
You are an expert linguist creating concise task titles from messages in any language. Follow these steps:
45-
46-
1. TRANSLATION: If input is non-English, translate to English with maximum fidelity to:
47-
- Original intent and nuanced meaning
48-
- Cultural context and idiomatic expressions
49-
- Industry-specific terminology preservation
50-
Use professional translation standards (ISO 17100) for accuracy.
51-
44+
You are an expert linguist creating accurate task titles from messages in any language. Follow these steps:
45+
the message is : ${text}.
5246
2. TITLE CREATION:
5347
a. Start with simple, human-action verb (e.g., "Fix", "Update", "Review")
5448
b. Maintain original message's key detail density
5549
c. Strictly avoid AI-related terms like "optimize", "leverage", "streamline"
5650
d. Should be sentence case.
51+
e. Make sure you added the core issue (what is the issue) and how this issue was exactly created in title.
52+
eg. Message: Dena please fix open DM chats on notification click, it’s working randomly for me.
53+
Title: Fix open DM on notifications click
54+
Message2: @Mo this message failed to translate. It was a long message from a zh user
55+
Title2: Fix translation failure on long zh messages
5756
5857
3. LINEAR INTEGRATION:
5958
Labels: ${JSON.stringify(labels.labels, null, 2)}
@@ -77,7 +76,8 @@ Key Requirements:
7776

7877
const response = await openaiClient?.chat.completions.create({
7978
messages: [{ role: "user", content: message }],
80-
model: "gpt-4",
79+
model: "gpt-4o",
80+
response_format: { type: "json_object" },
8181
})
8282

8383
if (!response) {

0 commit comments

Comments
 (0)