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

Commit 9615282

Browse files
authored
Merge pull request #227 from janhq/minor-fix-docs
Update n_parallel default value
2 parents f777d79 + 6e088df commit 9615282

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Table of parameters
100100
| `ngl` | Integer | The number of GPU layers to use. |
101101
| `ctx_len` | Integer | The context length for the model operations. |
102102
| `embedding` | Boolean | Whether to use embedding in the model. |
103-
| `n_parallel` | Integer | The number of parallel operations. Uses Drogon thread count if not set. |
103+
| `n_parallel` | Integer | The number of parallel operations. |
104104
| `cont_batching` | Boolean | Whether to use continuous batching. |
105105
| `user_prompt` | String | The prompt to use for the user. |
106106
| `ai_prompt` | String | The prompt to use for the AI assistant. |

docs/openapi/NitroAPI.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
title: Nitro API
44
description: Please see https://nitro.jan.ai/ for documentation.
5-
version: "0.1.8"
5+
version: "0.1.19"
66
contact:
77
name: Nitro Discord
88
url: https://github.com/janhq/nitro
@@ -231,8 +231,8 @@ components:
231231
description: Whether to use continuous batching.
232232
n_parallel:
233233
type: integer
234-
default: Automatically set to Dragon threads
235-
example: 4
234+
default: 1
235+
example: 1
236236
nullable: true
237237
description: The number of parallel operations. Only set when enable continuous batching.
238238
cpu_threads:
@@ -563,11 +563,15 @@ components:
563563
description: Defines specific tokens or phrases at which the model will stop generating further output
564564
frequency_penalty:
565565
type: number
566+
min: 0
567+
max: 2
566568
default: 0
567569
description: Adjusts the likelihood of the model repeating words or phrases in its output
568570
presence_penalty:
569571
type: number
570572
default: 0
573+
min: 0
574+
max: 2
571575
description: Influences the generation of new and varied concepts in the model's output
572576
temperature:
573577
type: number

0 commit comments

Comments
 (0)