Unverified Commit 7be77c19 authored by takatost's avatar takatost Committed by GitHub

fix: default model parameter precision (#1864)

parent 82247c0f
...@@ -18,7 +18,7 @@ PARAMETER_RULE_TEMPLATE: Dict[DefaultParameterName, dict] = { ...@@ -18,7 +18,7 @@ PARAMETER_RULE_TEMPLATE: Dict[DefaultParameterName, dict] = {
'default': 0.0, 'default': 0.0,
'min': 0.0, 'min': 0.0,
'max': 1.0, 'max': 1.0,
'precision': 1, 'precision': 2,
}, },
DefaultParameterName.TOP_P: { DefaultParameterName.TOP_P: {
'label': { 'label': {
...@@ -34,7 +34,7 @@ PARAMETER_RULE_TEMPLATE: Dict[DefaultParameterName, dict] = { ...@@ -34,7 +34,7 @@ PARAMETER_RULE_TEMPLATE: Dict[DefaultParameterName, dict] = {
'default': 1.0, 'default': 1.0,
'min': 0.0, 'min': 0.0,
'max': 1.0, 'max': 1.0,
'precision': 1, 'precision': 2,
}, },
DefaultParameterName.PRESENCE_PENALTY: { DefaultParameterName.PRESENCE_PENALTY: {
'label': { 'label': {
...@@ -50,7 +50,7 @@ PARAMETER_RULE_TEMPLATE: Dict[DefaultParameterName, dict] = { ...@@ -50,7 +50,7 @@ PARAMETER_RULE_TEMPLATE: Dict[DefaultParameterName, dict] = {
'default': 0.0, 'default': 0.0,
'min': 0.0, 'min': 0.0,
'max': 1.0, 'max': 1.0,
'precision': 1, 'precision': 2,
}, },
DefaultParameterName.FREQUENCY_PENALTY: { DefaultParameterName.FREQUENCY_PENALTY: {
'label': { 'label': {
...@@ -66,7 +66,7 @@ PARAMETER_RULE_TEMPLATE: Dict[DefaultParameterName, dict] = { ...@@ -66,7 +66,7 @@ PARAMETER_RULE_TEMPLATE: Dict[DefaultParameterName, dict] = {
'default': 0.0, 'default': 0.0,
'min': 0.0, 'min': 0.0,
'max': 1.0, 'max': 1.0,
'precision': 1, 'precision': 2,
}, },
DefaultParameterName.MAX_TOKENS: { DefaultParameterName.MAX_TOKENS: {
'label': { 'label': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment