Skip to content

Commit b92629c

Browse files
committed
code update
1 parent ac40dda commit b92629c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/machine-learning/how-to-deploy-models-phi-3-5-vision.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ print_stream(result)
228228
Explore other parameters that you can specify in the inference client. For a full list of all the supported parameters and their corresponding documentation, see [Azure AI Model Inference API reference](reference-model-inference-api.md).
229229

230230
```python
231-
from azure.ai.inference.models import ChatCompletionsResponseFormatText
231+
from azure.ai.inference.models import ChatCompletionsResponseFormat
232232

233233
response = client.complete(
234234
messages=[
@@ -241,7 +241,7 @@ response = client.complete(
241241
stop=["<|endoftext|>"],
242242
temperature=0,
243243
top_p=1,
244-
response_format=ChatCompletionsResponseFormatText(),
244+
response_format={ "type": ChatCompletionsResponseFormat.TEXT },
245245
)
246246
```
247247

0 commit comments

Comments
 (0)