File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,11 @@ The orchestration service streamlines AI interactions while ensuring adherence t
3131** Example:** Chat completion. ([ more] ( https://github.com/SAP/ai-sdk-java/blob/main/docs/guides/ORCHESTRATION_CHAT_COMPLETION.md ) )
3232``` java
3333var client = new OrchestrationClient ();
34- var config = new OrchestrationModuleConfig (). withLlmConfig(LLMModuleConfig . create() . modelName( " gpt-35-turbo " ) );
34+ var config = new OrchestrationModuleConfig (). withLlmConfig(OrchestrationAiModel . GPT_4O );
3535var prompt = new OrchestrationPrompt (" Hello world! Why is this phrase so famous?" );
3636var result = client. chatCompletion(prompt, config);
3737
38- String messageResult =
39- result. getOrchestrationResult(). getChoices(). get(0 ). getMessage(). getContent();
38+ String messageResult = result. getContent();
4039```
4140
4241## AI Management
You can’t perform that action at this time.
0 commit comments