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
5454
5555``` python
5656import asyncio
57- from simulator import Simulator
5857from azure.identity import DefaultAzureCredential
5958import wikipedia
6059import os
@@ -161,7 +160,11 @@ The callback function above processes each message generated by the simulator.
161160With the simulator initialized, you can now run it to generate synthetic conversations based on the provided text.
162161
163162``` 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)
165168
166169 outputs = await simulator(
167170 target = callback,
You can’t perform that action at this time.
0 commit comments