Skip to content

Commit 190decb

Browse files
authored
last feedback
1 parent fd5da30 commit 190decb

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

tutorials/ai-core-orchestration-consumption/ai-core-orchestration-consumption.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,19 +1110,12 @@ var prompt = new OrchestrationPrompt(systemMessage, userMessage);
11101110
We can define model parameters and a list of models to use. Only use those models that are already deployed in your instances. For this example, we have selected the following parameters and models:
11111111

11121112
```java
1113-
1114-
// Map of model parameters, can be adapted if desired
1115-
Map<String, Object> modelParams = Map.of(
1116-
"max_tokens", 1000,
1117-
"temperature", 0.6
1118-
);
1119-
1120-
// List of models to iterate through, can be adapted if desired
1121-
var models = List.of(
1122-
OrchestrationAiModel.GPT_4O.withParams(modelParams),
1123-
OrchestrationAiModel.MISTRAL_LARGE_INSTRUCT.withParams(modelParams),
1124-
OrchestrationAiModel.CLAUDE_3_5_SONNET.withParams(modelParams)
1125-
);
1113+
// List of models with parameters to iterate through, can be adapted if desired
1114+
var models = Stream.of(
1115+
OrchestrationAiModel.GPT_4O,
1116+
OrchestrationAiModel.MISTRAL_LARGE_INSTRUCT,
1117+
OrchestrationAiModel.CLAUDE_3_5_SONNET
1118+
).map(model -> model.withParam(MAX_TOKENS, 1000).withParam(TEMPERATURE, 0.6)).toList();
11261119

11271120
```
11281121

0 commit comments

Comments
 (0)