Skip to content

Commit f5c8654

Browse files
committed
Add model context length option to Azimuth UI
1 parent 456b221 commit f5c8654

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

charts/azimuth-image-analysis/azimuth-ui.schema.yaml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,22 @@ controls:
1010
type: MirrorControl
1111
path: /azimuth-llm/huggingface/model
1212
visuallyHidden: true
13+
# Azimuth UI doesn't handle json type ["integer","null"]
14+
# properly so we allow any type in JSON schema then
15+
# constrain to (optional) integer here.
16+
/azimuth-llm/api/modelMaxContextLength:
17+
type: IntegerControl
18+
minimum: 100
19+
required: false
1320

1421
sortOrder:
15-
- /huggingface/model
16-
- /huggingface/token
17-
- /api/image/version
18-
- /ui/appSettings/llm_params/temperature
19-
- /ui/appSettings/llm_params/max_tokens
20-
- /ui/appSettings/llm_params/frequency_penalty
21-
- /ui/appSettings/llm_params/presence_penalty
22-
- /ui/appSettings/llm_params/top_p
23-
- /ui/appSettings/llm_params/top_k
22+
- /azimuth-llm/huggingface/model
23+
- /azimuth-llm/huggingface/token
24+
- /azimuth-llm/api/image/version
25+
- /azimuth-llm/ui/appSettings/llm_params/temperature
26+
- /azimuth-llm/ui/appSettings/llm_params/max_tokens
27+
- /azimuth-llm/ui/appSettings/llm_params/frequency_penalty
28+
- /azimuth-llm/ui/appSettings/llm_params/presence_penalty
29+
- /azimuth-llm/ui/appSettings/llm_params/top_p
30+
- /azimuth-llm/ui/appSettings/llm_params/top_k
31+
- /azimuth-llm/api/modelMaxContextLength

charts/azimuth-image-analysis/values.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
"default": "v0.6.3"
4040
}
4141
}
42+
},
43+
"modelMaxContextLength": {
44+
"title": "Model Context Length",
45+
"description": "An override for the maximum context length to allow, if the model's default is not suitable."
4246
}
4347
}
4448
},

0 commit comments

Comments
 (0)