aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/inference.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workers/inference.ts')
-rw-r--r--apps/workers/inference.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/workers/inference.ts b/apps/workers/inference.ts
index 13b10aba..fa83140f 100644
--- a/apps/workers/inference.ts
+++ b/apps/workers/inference.ts
@@ -62,6 +62,7 @@ class OpenAIInferenceClient implements InferenceClient {
): Promise<InferenceResponse> {
const chatCompletion = await this.openAI.chat.completions.create({
model: serverConfig.inference.imageModel,
+ response_format: { type: "json_object" },
messages: [
{
role: "user",