Skip to content

Commit bf51718

Browse files
committed
Sync auto-llm-pr-review.yml from .github repo
1 parent 6f690f7 commit bf51718

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
if (m) return { provider: m[1].toLowerCase(), model: m[2].trim(), raw };
128128
129129
// Short formats based on common model prefixes
130-
if (/^gpt-/i.test(raw) || /^o\\d/i.test(raw) || /^o1/i.test(raw)) {
130+
if (/^gpt-/i.test(raw) || /^o\d/i.test(raw) || /^o1/i.test(raw)) {
131131
return { provider: "openai", model: raw, raw };
132132
}
133133
if (/^gemini/i.test(raw)) {
@@ -235,10 +235,10 @@ jobs:
235235
236236
async function callOpenAI({ apiKey, baseUrl, model, messages }) {
237237
if (!apiKey) throw new Error("OPENAI_API_KEY is not set.");
238-
const url = `${baseUrl.replace(/\\/$/, "")}/chat/completions`;
238+
const url = `${baseUrl.replace(/\/$/, "")}/chat/completions`;
239239
const payload = { model, messages };
240240
241-
const isGpt5ish = /gpt-?5/i.test(model) || /^o\\d/i.test(model) || /^o1/i.test(model);
241+
const isGpt5ish = /gpt-?5/i.test(model) || /^o\d/i.test(model) || /^o1/i.test(model);
242242
if (isGpt5ish) {
243243
payload.max_completion_tokens = 2048;
244244
} else {

0 commit comments

Comments
 (0)