From ce9f7c467481e4d636de5c5befb0a09da06b3614 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Tue, 5 Mar 2024 13:13:23 -0800 Subject: [PATCH] Update api.md --- docs/api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api.md b/docs/api.md index a3c3a3f4e..08eb81e53 100644 --- a/docs/api.md +++ b/docs/api.md @@ -54,7 +54,7 @@ Advanced parameters (optional): #### JSON mode -Enable JSON mode by setting the `format` parameter to `json`. This will structure the response as a valid JSON object. See the JSON mode [example](#generate-request-json-mode) below. +Enable JSON mode by setting the `format` parameter to `json`. This will structure the response as a valid JSON object. See the JSON mode [example](#request-json-mode) below. > Note: it's important to instruct the model to use JSON in the `prompt`. Otherwise, the model may generate large amounts whitespace. @@ -256,9 +256,9 @@ For reproducible outputs, set `temperature` to 0 and `seed` to a number: ```shell curl http://localhost:11434/api/generate -d '{ "model": "mistral", - "prompt": "[INST] why is the sky blue? [/INST]", + "prompt": "Why is the sky blue?", "options": { - "seed": 101, + "seed": 123, "temperature": 0 } }'