File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
articles/ai-studio/how-to/develop Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ You can generate query response pairs from a text blob like the following Wikipe
54
54
55
55
``` python
56
56
import asyncio
57
- from simulator import Simulator
58
57
from azure.identity import DefaultAzureCredential
59
58
import wikipedia
60
59
import os
@@ -161,7 +160,11 @@ The callback function above processes each message generated by the simulator.
161
160
With the simulator initialized, you can now run it to generate synthetic conversations based on the provided text.
162
161
163
162
``` python
164
- simulator = Simulator(azure_ai_project = azure_ai_project)
163
+ model_config = {
164
+ " azure_endpoint" : " <your_azure_endpoint>" ,
165
+ " azure_deployment" : " <deployment_name>"
166
+ }
167
+ simulator = Simulator(model_config = model_config)
165
168
166
169
outputs = await simulator(
167
170
target = callback,
You can’t perform that action at this time.
0 commit comments