Skip to content

Commit

Permalink
readme : rename result_format to response_format (ggerganov#9300)
Browse files Browse the repository at this point in the history
  • Loading branch information
iscy authored and dsx1986 committed Oct 29, 2024
1 parent 510d95b commit e078366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grammars/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ You can use GBNF grammars:

- In [llama-server](../examples/server):
- For any completion endpoints, passed as the `json_schema` body field
- For the `/chat/completions` endpoint, passed inside the `result_format` body field (e.g. `{"type", "json_object", "schema": {"items": {}}}`)
- For the `/chat/completions` endpoint, passed inside the `response_format` body field (e.g. `{"type", "json_object", "schema": {"items": {}}}`)
- In [llama-cli](../examples/main), passed as the `--json` / `-j` flag
- To convert to a grammar ahead of time:
- in CLI, with [examples/json_schema_to_grammar.py](../examples/json_schema_to_grammar.py)
Expand Down

0 comments on commit e078366

Please sign in to comment.