mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
server: fix min/max min_p/top_p values
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
33f805d60a
commit
5add87e85b
@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix a crash when attempting to continue a chat loaded from disk ([#2995](https://github.com/nomic-ai/gpt4all/pull/2995))
|
- Fix a crash when attempting to continue a chat loaded from disk ([#2995](https://github.com/nomic-ai/gpt4all/pull/2995))
|
||||||
|
- Fix the local server rejecting min\_p/top\_p less than 1 ([#2996](https://github.com/nomic-ai/gpt4all/pull/2996))
|
||||||
|
|
||||||
## [3.3.0] - 2024-09-20
|
## [3.3.0] - 2024-09-20
|
||||||
|
|
||||||
|
@ -193,11 +193,11 @@ protected:
|
|||||||
if (!value.isNull())
|
if (!value.isNull())
|
||||||
this->temperature = float(value.toDouble());
|
this->temperature = float(value.toDouble());
|
||||||
|
|
||||||
value = reqValue("top_p", Number, /*min*/ 0, /*max*/ 1);
|
value = reqValue("top_p", Number, false, /*min*/ 0, /*max*/ 1);
|
||||||
if (!value.isNull())
|
if (!value.isNull())
|
||||||
this->top_p = float(value.toDouble());
|
this->top_p = float(value.toDouble());
|
||||||
|
|
||||||
value = reqValue("min_p", Number, /*min*/ 0, /*max*/ 1);
|
value = reqValue("min_p", Number, false, /*min*/ 0, /*max*/ 1);
|
||||||
if (!value.isNull())
|
if (!value.isNull())
|
||||||
this->min_p = float(value.toDouble());
|
this->min_p = float(value.toDouble());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user