Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Jan erroring out when trying to JSON #1389

@vansangpfiev

Description

@vansangpfiev

Context:
https://discordapp.com/channels/1107178041848909847/1288196081280356362/1288196081280356362

curl -X POST 'http://127.0.0.1:1337/v1/chat/completions' -H "authorization: Bearer whatever" -H "content-type: application/json" -d "{
  \"temperature\": 0.3,
  \"model\": \"Meta-Llama-3.1-8B.Q5_1.gguf\",
  \"messages\": [
    {
      \"role\": \"system\",
      \"content\": [
        {
          \"type\": \"text\",
          \"text\": \"Validate the following business information.\n\nAnswer in JSON using this schema:\n{\n  address: {\n    locality: string,\n    // 2 characters long\n    region: string,\n    // must be 5 characters long\n    postal: string,\n    street: string,\n  },\n  name: string,\n  // Format: 'Day(s) OpenTime-CloseTime', e.g., 'Mo-Fr 09:00-17:00'.\n  // ensure the opening time is before the closing time.\n  openingHours: string[],\n  phone: string,\n  fax: string,\n  // must be valid email\n  email: string,\n  // valid url format\n  website: string,\n}\n\nBUSINESS_INFO:\nhello world\"
        }
      ]
    }
  ],
  \"stream\": true,
  \"stream_options\": {
    \"include_usage\": true
  }
}"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions