Skip to content

Commit a49ff98

Browse files
committed
remove container name property
it doesn't use when create TableStorageClient Related to: aliencube#208, aliencube#213
1 parent c491f0a commit a49ff98

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

src/AzureOpenAIProxy.ApiApp/Configurations/StorageAccountSettings.cs

-5
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,4 @@ public class StorageAccountSettings
1414
/// Gets or sets the connection string.
1515
/// </summary>
1616
public string? ConnectionString { get; set; }
17-
18-
/// <summary>
19-
/// Gets or sets the container name.
20-
/// </summary>
21-
public string? ContainerName { get; set; }
2217
}

src/AzureOpenAIProxy.ApiApp/Extensions/ServiceCollectionExtensions.cs

-5
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,6 @@ public static IServiceCollection AddTableStorageService(this IServiceCollection
155155
throw new InvalidOperationException($"{nameof(StorageAccountSettings.ConnectionString)} is not defined.");
156156
}
157157

158-
if (string.IsNullOrWhiteSpace(settings.ContainerName) == true)
159-
{
160-
throw new InvalidOperationException($"{nameof(StorageAccountSettings.ContainerName)} is not defined.");
161-
}
162-
163158
var client = new TableServiceClient(settings.ConnectionString);
164159

165160
return client;

src/AzureOpenAIProxy.ApiApp/appsettings.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"SecretName": "azure-openai-instances"
2929
},
3030
"StorageAccount": {
31-
"ConnectionString": "",
32-
"ContainerName": ""
31+
"ConnectionString": ""
3332
}
3433
},
3534

0 commit comments

Comments
 (0)