Skip to content

Commit 5d3b841

Browse files
committed
Sync auto-llm-issue-review.yml from .github repo
1 parent 3227aff commit 5d3b841

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/auto-llm-issue-review.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
}
164164
165165
// Loose paths (very heuristic)
166-
for (const m of body.matchAll(/(^|\\s)([\\w./-]+\\.[\\w]+)(\\s|$)/g)) {
166+
for (const m of body.matchAll(/(^|\s)([\w./-]+\.[\w]+)(\s|$)/g)) {
167167
const p = (m[2] || "").trim();
168168
if (p.includes("/") && !p.startsWith("http")) found.add(p);
169169
}
@@ -225,10 +225,10 @@ jobs:
225225
226226
async function callOpenAI({ apiKey, baseUrl, model, messages }) {
227227
if (!apiKey) throw new Error("OPENAI_API_KEY is not set.");
228-
const url = `${baseUrl.replace(/\\/$/, "")}/chat/completions`;
228+
const url = `${baseUrl.replace(/\/$/, "")}/chat/completions`;
229229
const payload = { model, messages };
230230
231-
const isGpt5ish = /gpt-?5/i.test(model) || /^o\\d/i.test(model) || /^o1/i.test(model);
231+
const isGpt5ish = /gpt-?5/i.test(model) || /^o\d/i.test(model) || /^o1/i.test(model);
232232
if (isGpt5ish) {
233233
payload.max_completion_tokens = 2048;
234234
} else {

0 commit comments

Comments
 (0)