22using Microsoft . OpenApi . ApiManifest . Helpers ;
33using Microsoft . OpenApi . ApiManifest . OpenAI ;
44using Microsoft . OpenApi . ApiManifest . OpenAI . Authentication ;
5- using Microsoft . OpenApi . Models ;
5+ using Microsoft . OpenApi ;
66using System . Globalization ;
77
88namespace Microsoft . OpenApi . ApiManifest . TypeExtensions
@@ -35,7 +35,7 @@ public static async Task<OpenAIPluginManifest> ToOpenAIPluginManifestAsync(this
3535 var result = await ParsingHelpers . ParseOpenApiAsync ( new Uri ( apiDependency ! . ApiDescriptionUrl ) , false , cancellationToken ) . ConfigureAwait ( false ) ;
3636 if ( string . IsNullOrWhiteSpace ( openApiPath ) )
3737 openApiPath = apiDependency . ApiDescriptionUrl ;
38- return apiManifestDocument . ToOpenAIPluginManifest ( result . Document
38+ return apiManifestDocument . ToOpenAIPluginManifest ( result . Document
3939 ?? throw new ApiManifestException ( ErrorMessage . OpenApiDocumentIsNull ) , logoUrl , legalInfoUrl , openApiPath ! ) ;
4040 }
4141 }
@@ -57,8 +57,8 @@ public static OpenAIPluginManifest ToOpenAIPluginManifest(this ApiManifestDocume
5757 apiManifestDocument . Validate ( ) ;
5858 string contactEmail = apiManifestDocument . Publisher ? . ContactEmail ! ;
5959
60- string title = string . IsNullOrEmpty ( openApiDocument . Info . Title ) || openApiDocument . Info . Title is null
61- ? "Default Title" : openApiDocument . Info . Title ;
60+ string title = string . IsNullOrEmpty ( openApiDocument . Info . Title ) || openApiDocument . Info . Title is null
61+ ? "Default Title" : openApiDocument . Info . Title ;
6262 var openApiManifest = OpenApiPluginFactory . CreateOpenAIPluginManifest ( title , title , logoUrl , contactEmail , legalInfoUrl ) ;
6363 openApiManifest . Api = new Api ( "openapi" , openApiPath ) ;
6464 openApiManifest . Auth = new ManifestNoAuth ( ) ;
0 commit comments