@@ -83,6 +83,13 @@ public AssistantClient(AuthenticationPolicy authenticationPolicy, OpenAIClientOp
8383 _threadSubClient = new ( Pipeline , options ) ;
8484 }
8585
86+ /// <summary>
87+ /// Gets the endpoint URI for the service.
88+ /// </summary>
89+ [ Experimental ( "OPENAI001" ) ]
90+ public Uri Endpoint => _endpoint ;
91+
92+
8693 // CUSTOM:
8794 // - Used a custom pipeline.
8895 // - Demoted the endpoint parameter to be a property in the options class.
@@ -114,7 +121,7 @@ public virtual async Task<ClientResult<Assistant>> CreateAssistantAsync(string m
114121 options ??= new ( ) ;
115122 options . Model = model ;
116123
117- ClientResult protocolResult = await CreateAssistantAsync ( options ? . ToBinaryContent ( ) , cancellationToken . ToRequestOptions ( ) ) . ConfigureAwait ( false ) ;
124+ ClientResult protocolResult = await CreateAssistantAsync ( options ? . ToBinaryContent ( ) , cancellationToken . ToRequestOptions ( ) ) . ConfigureAwait ( false ) ;
118125 return ClientResult . FromValue ( ( Assistant ) protocolResult , protocolResult . GetRawResponse ( ) ) ;
119126 }
120127
@@ -130,7 +137,7 @@ public virtual ClientResult<Assistant> CreateAssistant(string model, AssistantCr
130137 options . Model = model ;
131138
132139 ClientResult protocolResult = CreateAssistant ( options ? . ToBinaryContent ( ) , cancellationToken . ToRequestOptions ( ) ) ;
133- return ClientResult . FromValue ( ( Assistant ) protocolResult , protocolResult . GetRawResponse ( ) ) ;
140+ return ClientResult . FromValue ( ( Assistant ) protocolResult , protocolResult . GetRawResponse ( ) ) ;
134141 }
135142
136143 /// <summary>
@@ -319,7 +326,7 @@ public virtual ClientResult<AssistantDeletionResult> DeleteAssistant(string assi
319326 public virtual async Task < ClientResult < AssistantThread > > CreateThreadAsync ( ThreadCreationOptions options = null , CancellationToken cancellationToken = default )
320327 {
321328 ClientResult protocolResult = await CreateThreadAsync ( options ? . ToBinaryContent ( ) , cancellationToken . ToRequestOptions ( ) ) . ConfigureAwait ( false ) ;
322- return ClientResult . FromValue ( ( AssistantThread ) protocolResult , protocolResult . GetRawResponse ( ) ) ; ;
329+ return ClientResult . FromValue ( ( AssistantThread ) protocolResult , protocolResult . GetRawResponse ( ) ) ; ;
323330 }
324331
325332 /// <summary>
@@ -717,7 +724,7 @@ public virtual ClientResult<ThreadRun> CreateRun(string threadId, string assista
717724 options . Stream = null ;
718725
719726 ClientResult protocolResult = CreateRun ( threadId , options ? . ToBinaryContent ( ) , cancellationToken . ToRequestOptions ( ) ) ;
720- return ClientResult . FromValue ( ( ThreadRun ) protocolResult , protocolResult . GetRawResponse ( ) ) ;
727+ return ClientResult . FromValue ( ( ThreadRun ) protocolResult , protocolResult . GetRawResponse ( ) ) ;
721728 }
722729
723730 /// <summary>
0 commit comments