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
- The [Spring Boot CLI tool](https://docs.spring.io/spring-boot/docs/current/reference/html/getting-started.html#getting-started.installing.cli)
18
18
- An Azure OpenAI Service resource with the `gpt-35-turbo` model deployed. For more information about model deployment, see the [resource deployment guide](../how-to/create-resource.md).
log.info("Sending completion prompt to AI service. One moment please...");
169
+
var response = chatClient.prompt()
170
+
.user("When was Microsoft founded?")
171
+
.call()
172
+
.content();
173
+
log.info("Response: {}", response);
174
+
};
178
175
}
179
-
180
176
}
181
177
```
182
178
@@ -192,23 +188,22 @@ ai-completion-demo/
192
188
## Output
193
189
194
190
```output
195
-
. ____ _ __ _ _
196
-
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
191
+
. ____ _ __ _ _
192
+
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
197
193
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
198
-
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
199
-
' |____| .__|_| |_|_| |_\__, | / / / /
200
-
=========|_|==============|___/=/_/_/_/
201
-
:: Spring Boot :: (v3.1.5)
194
+
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
195
+
' |____| .__|_| |_|_| |_\__, | / / / /
196
+
=========|_|==============|___/=/_/_/_/
202
197
203
-
2023-11-07T12:47:46.126-06:00 INFO 98687 --- [ main] c.e.a.AiCompletionApplication : No active profile set, falling back to 1 default profile: "default"
204
-
2023-11-07T12:47:46.823-06:00 INFO 98687 --- [ main] c.e.a.AiCompletionApplication : Started AiCompletionApplication in 0.925 seconds (process running for 1.238)
205
-
Sending completion prompt to AI service. One moment please...
198
+
:: Spring Boot :: (v3.3.4)
206
199
207
-
Prompt created 1 generated response(s).
208
-
Generated respose from "assistant": Microsoft was founded on April 4, 1975.
200
+
2025-01-09T13:51:48.426-05:00 INFO 8264 --- [AICompletion] [ main] c.e.a.AiCompletionApplication : Starting AiCompletionApplication using Java 17.0.12 with PID 8264 (/Users/vega/dev/msft/spring-ai-samples/ai-completion-demo/target/classes started by vega in /Users/vega/dev/msft/spring-ai-samples/ai-completion-demo)
201
+
2025-01-09T13:51:48.427-05:00 INFO 8264 --- [AICompletion] [ main] c.e.a.AiCompletionApplication : No active profile set, falling back to 1 default profile: "default"
202
+
2025-01-09T13:51:48.781-05:00 INFO 8264 --- [AICompletion] [ main] c.e.a.AiCompletionApplication : Started AiCompletionApplication in 0.465 seconds (process running for 0.624)
203
+
2025-01-09T13:51:48.782-05:00 INFO 8264 --- [AICompletion] [ main] c.e.a.AiCompletionApplication : Sending completion prompt to AI service. One moment please...
204
+
2025-01-09T13:51:50.447-05:00 INFO 8264 --- [AICompletion] [ main] c.e.a.AiCompletionApplication : Response: Microsoft was founded on April 4, 1975, by Bill Gates and Paul Allen.
209
205
```
210
206
211
-
212
207
## Clean up resources
213
208
214
209
If you want to clean up and remove an Azure OpenAI resource, you can delete the resource. Before deleting the resource, you must first delete any deployed models.
- Added `--provision-network-now` property to trigger the provisioning of the managed network when creating a workspace with the managed network enabled, or else it does nothing.
35
+
## Azure Machine Learning CLI (v2) v 2.34.0
36
+
-`az ml workspace update --network-acls`
37
+
- Added `--network-acls` property to allow user to specify IPs or IP ranges in CIDR notation for workspace access.
33
38
-`az ml capability-host`
34
39
- Added create operation.
35
40
- Added get operation.
36
41
- Added delete operation.
37
42
43
+
## 2024-12-17
44
+
45
+
## Azure Machine Learning CLI (v2) v 2.33.0
46
+
-`az ml workspace create --provision-network-now`
47
+
- Added `--provision-network-now` property to trigger the provisioning of the managed network when creating a workspace with the managed network enabled, or else it does nothing.
0 commit comments