Structured Outputs not supporting meta-llama/Llama-3.2-3B-Instruct-Turbo
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- api
Research direction
Reproduce the failure with together.chat.completions.create using meta-llama/Llama-3.2-3B-Instruct-Turbo and the shown response_format, then compare it with Meta-Llama-3.1-8B-Instruct-Turbo. Trace the Structured Outputs request path in the TypeScript client and verify whether the model is actually accepted; done means the documented model accepts the same schema without the grammar validation error.
Written by the indexing model from the issue text.
Description
Even thought it's stated that meta-llama/Llama-3.2-3B-Instruct-Turbo is supported for Structured Outputs, this code returns the following error:
const extract = await together.chat.completions.create({
messages: [
{
role: "system",
content:
"The following is a list of items from a menu. Only answer in JSON.",
},
{
role: "user",
content: menuItems!,
},
],
model: "meta-llama/Llama-3.2-3B-Instruct-Turbo",
// @ts-expect-error - this is not typed in the API
response_format: { type: "json_object", schema: jsonSchema },
});
Error:
error: {
id: 'npsvkwr-57nCBj-92f800485c83c4bf',
error: {
message: "Input validation error: grammar is not valid: grammar is not valid: Grammar must have a 'properties' field",
type: 'invalid_request_error',
param: null,
code: null
}
}
}
The same code works with meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo.
- Dominant language
- TypeScript
- Stars
- 71
- Forks
- 10
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·