SessionTarget.FromModel(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a session target for a model-centric session.
public static Azure.AI.VoiceLive.SessionTarget FromModel(string model);
static member FromModel : string -> Azure.AI.VoiceLive.SessionTarget
Public Shared Function FromModel (model As String) As SessionTarget
Parameters
- model
- String
The model name to use for the session (e.g., "gpt-4o-realtime-preview").
Returns
A SessionTarget configured for a model session.
Exceptions
model is null.
model is empty.