@goodandready/dsh-image-gen 0.11.32 → 0.11.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,6 +43,7 @@ export function createFalGenerator(deps, job) {
43
43
  const refDataUri = job.faceReference.bytes
44
44
  ? `data:${job.faceReference.mediaType || 'image/png'};base64,${Buffer.from(job.faceReference.bytes).toString('base64')}`
45
45
  : job.faceReference.url
46
+ body.image_url = refDataUri
46
47
  body.reference_image_url = refDataUri
47
48
  body.face_image_url = refDataUri
48
49
  if (job.faceStrength !== undefined) {
@@ -58,6 +59,7 @@ export function createFalGenerator(deps, job) {
58
59
  const refDataUri = job.referenceImage.bytes
59
60
  ? `data:${job.referenceImage.mediaType || 'image/png'};base64,${Buffer.from(job.referenceImage.bytes).toString('base64')}`
60
61
  : job.referenceImage.url
62
+ body.image_url = refDataUri
61
63
  body.reference_image_url = refDataUri
62
64
  if (job.referenceStrength !== undefined) {
63
65
  body.reference_weight = job.referenceStrength
@@ -69,7 +71,7 @@ export function createFalGenerator(deps, job) {
69
71
  }
70
72
 
71
73
  const submit = await submitJob(fetchImpl, cfg.baseURL, targetModel, key, body, signal)
72
- const statusUrl = submit.status_url || `${cfg.baseURL}/${cfg.model}/requests/${submit.request_id}/status`
74
+ const statusUrl = submit.status_url || `${cfg.baseURL}/${targetModel}/requests/${submit.request_id}/status`
73
75
  const statusBody = await pollStatus(fetchImpl, statusUrl, key, signal, cfg.pollIntervalMs, cfg.timeoutMs, onProgress)
74
76
 
75
77
  const resultRes = await fetchImpl(statusBody.response_url, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-image-gen",
3
- "version": "0.11.32",
4
- "description": "Image generation for DeepSeek Harness: a generate_image tool with pluggable providers \u2014 the FAL queue, any OpenAI-compatible images API, or a ChatGPT/Grok subscription with no API key at all. The picture is shown inline in the conversation; the model receives either a link (works with any chat model) or the image itself (needs dsh-vision-bridge or a vision-capable model).",
3
+ "version": "0.11.33",
4
+ "description": "Image generation for DeepSeek Harness: a generate_image tool with pluggable providers — the FAL queue, any OpenAI-compatible images API, or a ChatGPT/Grok subscription with no API key at all. The picture is shown inline in the conversation; the model receives either a link (works with any chat model) or the image itself (needs dsh-vision-bridge or a vision-capable model).",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "dsh",