Skip to content

Commit a85d521

Browse files
authored
Update ORCHESTRATION_CHAT_COMPLETION.md
1 parent f56e6c5 commit a85d521

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/guides/ORCHESTRATION_CHAT_COMPLETION.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,10 @@ Change your LLM configuration to add model parameters:
200200
```java
201201
OrchestrationAiModel customGPT4O =
202202
OrchestrationAiModel.GPT_4O
203-
.withParams(
204-
params().maxTokens(50).temperature(0.1).frequencyPenalty(0).presencePenalty(0))
203+
.withParam(MAX_TOKENS, 50)
204+
.withParam(TEMPERATURE, 0.1)
205+
.withParam(FREQUENCY_PENALTY, 0)
206+
.withParam(PRESENCE_PENALTY, 0)
205207
.withVersion("2024-05-13");
206208
```
207209

@@ -221,4 +223,4 @@ var prompt = new OrchestrationPrompt(Map.of("your-input-parameter", "your-param-
221223
new OrchestrationClient().executeRequestFromJsonModuleConfig(prompt, configJson);
222224
```
223225

224-
While this is not recommended for long term use, it can be useful for creating demos and PoCs.
226+
While this is not recommended for long term use, it can be useful for creating demos and PoCs.

0 commit comments

Comments
 (0)