AsChatClient(deploymentName) Deprecated - How to Update? #6290
-
Hi, I use the following line of code to get a chat client based on my Azure OpenAI deployed models extensively, but now
Could I please get some help on how to update my code to utilise a non-deprecated version or alternative code? Many thanks, Stu |
Beta Was this translation helpful? Give feedback.
Answered by
stephentoub
Apr 13, 2025
Replies: 1 comment 1 reply
-
Replace: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
essenbee2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace:
AsChatClient(deployment)
with
GetChatClient(deployment).AsIChatClient()
or with
GetResponseClient(deployment). AsIChatClient()