Skip to content

Commit 0e23fbe

Browse files
Updated docs
1 parent 4e39550 commit 0e23fbe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/guides/SPRING_AI_INTEGRATION.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ class WeatherMethod {
123123
Then add your tool to the options:
124124

125125
```java
126-
OrchestrationChatOptions options = new OrchestrationChatOptions(config);
126+
ChatModel client = new OrchestrationChatModel();
127+
OrchestrationModuleConfig config = new OrchestrationModuleConfig().withLlmConfig(GPT_35_TURBO);
128+
OrchestrationChatOptions opts = new OrchestrationChatOptions(config);
129+
127130
options.setToolCallbacks(List.of(ToolCallbacks.from(new WeatherMethod())));
128131

129132
options.setInternalToolExecutionEnabled(false);// tool execution is not yet available in orchestration

0 commit comments

Comments
 (0)