-
-
-
-
-
-
-
-
- {runtimeEditorModel.model.runtime.limit_mode ===
- "input_only" ? (
-
-
-
- updateModel(
- runtimeEditorModel.provider.id,
- runtimeEditorModel.model.id,
- (current) => ({
- ...current,
- runtime: {
- ...current.runtime,
- max_input_tokens: optionalPositiveInteger(
- event.target.value
- ),
- },
- })
- )
- }
- />
-
- ) : (
-
-
-
- updateModel(
- runtimeEditorModel.provider.id,
- runtimeEditorModel.model.id,
- (current) => ({
- ...current,
- runtime: {
- ...current.runtime,
- context_window_tokens: optionalPositiveInteger(
- event.target.value
- ),
- },
- })
- )
- }
- />
-
- )}
-
-
-
- updateModel(
- runtimeEditorModel.provider.id,
- runtimeEditorModel.model.id,
- (current) => ({
- ...current,
- runtime: {
- ...current.runtime,
- max_output_tokens:
- optionalPositiveInteger(event.target.value) ?? 1,
- },
- })
- )
- }
- />
-
-
-
-
- updateModel(
- runtimeEditorModel.provider.id,
- runtimeEditorModel.model.id,
- (current) => ({
- ...current,
- runtime: {
- ...current.runtime,
- min_effective_input_tokens:
- optionalPositiveInteger(event.target.value) ??
- 1024,
- },
- })
- )
- }
- />
-
-
-
-
- updateModel(
- runtimeEditorModel.provider.id,
- runtimeEditorModel.model.id,
- (current) => ({
- ...current,
- runtime: {
- ...current.runtime,
- temperature: optionalNumber(event.target.value),
- },
- })
- )
- }
- />
-
-
-
-
- updateModel(
- runtimeEditorModel.provider.id,
- runtimeEditorModel.model.id,
- (current) => ({
- ...current,
- runtime: {
- ...current.runtime,
- top_p: optionalNumber(event.target.value),
- },
- })
- )
- }
- />
-
-
-
-
-
-