You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.info("Sending chat prompts to AI service. One moment please...");
170
+
String response = chatClient.prompt()
171
+
.user("What was Microsoft's original internal codename for the project that eventually became Azure?")
172
+
.call()
173
+
.content();
174
+
175
+
log.info("Response: {}", response);
176
+
};
177
+
}
185
178
}
186
179
```
187
180
@@ -203,14 +196,14 @@ ai-chat-demo/
203
196
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
204
197
' |____| .__|_| |_|_| |_\__, | / / / /
205
198
=========|_|==============|___/=/_/_/_/
206
-
:: Spring Boot :: (v3.1.5)
207
199
208
-
2023-11-07T13:31:10.884-06:00 INFO 6248 --- [ main] c.example.aichatdemo.AiChatApplication : No active profile set, falling back to 1 default profile: "default"
209
-
2023-11-07T13:31:11.595-06:00 INFO 6248 --- [ main] c.example.aichatdemo.AiChatApplication : Started AiChatApplication in 0.994 seconds (process running for 1.28)
210
-
Sending chat prompts to AI service. One moment please...
200
+
:: Spring Boot :: (v3.3.4)
211
201
212
-
Prompt created 1 generated response(s).
213
-
Generated respose from "assistant": Yes, other Azure AI services also support customer managed keys. Azure AI Services, Azure Machine Learning, and other AI services in Azure provide options for customers to manage and control their encryption keys. This allows customers to have greater control over their data and security.
202
+
2025-03-14T13:35:30.145-04:00 INFO 93252 --- [AIChat] [ main] c.example.aichatdemo.AiChatApplication : Starting AiChatApplication using Java 23.0.2 with PID 93252 (/Users/vega/dev/msft/spring-ai-samples/ai-chat-demo/target/classes started by vega in /Users/vega/dev/msft/spring-ai-samples/ai-chat-demo)
203
+
2025-03-14T13:35:30.146-04:00 INFO 93252 --- [AIChat] [ main] c.example.aichatdemo.AiChatApplication : No active profile set, falling back to 1 default profile: "default"
204
+
2025-03-14T13:35:30.500-04:00 INFO 93252 --- [AIChat] [ main] c.example.aichatdemo.AiChatApplication : Started AiChatApplication in 0.445 seconds (process running for 0.633)
205
+
2025-03-14T13:35:30.501-04:00 INFO 93252 --- [AIChat] [ main] c.example.aichatdemo.AiChatApplication : Sending chat prompts to AI service. One moment please...
206
+
2025-03-14T13:35:31.950-04:00 INFO 93252 --- [AIChat] [ main] c.example.aichatdemo.AiChatApplication : Response: Microsoft's original internal codename for the project that eventually became Azure was "Project Red Dog." This initiative ultimately led to the development and launch of the Microsoft Azure cloud computing platform.
0 commit comments