This commit is contained in:
team3
2026-06-22 12:55:52 +02:00
parent 04900eef55
commit 0adc223c0a
7 changed files with 75 additions and 26 deletions

View File

@@ -23,11 +23,11 @@ export async function fetchGuideLocks(topic) {
return res.json()
}
export async function createGuide(topic, format, instructions = '', provider = 'claude') {
export async function createGuide(topic, format, instructions = '', provider = 'claude', abStep = null) {
const res = await fetch(`${BASE}/guides`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ topic, format, instructions, provider }),
body: JSON.stringify({ topic, format, instructions, provider, ab_step: abStep }),
})
return jsonOrThrow(res)
}