mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 17:41:35 +01:00
Defaults name current models, and review stops reading "the HIGH branch" as a HIGH finding (GST-3462) (#4678)
Three defaults gstack picks now name current models, and a reviewer's mention of a code name like "the HIGH branch" no longer becomes a HIGH finding. Why: our rule is no older-generation model in a role we choose, and the review parser forced a ruling on two notes that only quoted code. Nothing to do: no settings change; overrides work as before. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/adversarial-native#1 reader=adversarial-native Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/adversarial-native#5 reader=adversarial-native Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/adversarial-native#6 reader=adversarial-native Review-Finding: p1/outside-voice#3 reader=outside-voice
This commit is contained in:
1 parent
24b15c6823
commit
8ffd2b85f1
9 files changed
+131
-19
No files matched your search
+3
-9
@@ -9,6 +9,7 @@
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { openaiUrl } from "./src/auth";
|
||||
import { imageRequestBody } from "./src/models";
|
||||
import { receiptedFetch } from "./src/receipted-fetch";
|
||||
|
||||
const API_KEY = process.env.OPENAI_API_KEY;
|
||||
@@ -41,6 +42,7 @@ async function generateMockup(brief: { name: string; prompt: string }) {
|
||||
console.log(`Generating: ${brief.name}`);
|
||||
console.log(`${"=".repeat(60)}`);
|
||||
|
||||
const body = imageRequestBody(brief.prompt, { size: "1536x1024", quality: "high" });
|
||||
const startTime = Date.now();
|
||||
|
||||
const controller = new AbortController();
|
||||
@@ -52,15 +54,7 @@ async function generateMockup(brief: { name: string; prompt: string }) {
|
||||
"Authorization": `Bearer ${API_KEY}`,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
model: "gpt-4o",
|
||||
input: brief.prompt,
|
||||
tools: [{
|
||||
type: "image_generation",
|
||||
size: "1536x1024",
|
||||
quality: "high"
|
||||
}],
|
||||
}),
|
||||
body,
|
||||
signal: controller.signal,
|
||||
});
|
||||
clearTimeout(timeout);
|
||||
|
||||
Reference in new issue
Block a user