Skip to content

Commit 47513e8

Browse files
authored
Merge pull request #44 from cnblogs/expose-underlying-url
feat: expose underlying base url
2 parents 5fd2f18 + 2459963 commit 47513e8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Cnblogs.DashScope.Core/DashScopeClientCore.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public DashScopeClientCore(HttpClient httpClient)
3232
_httpClient = httpClient;
3333
}
3434

35+
/// <inheritdoc />
36+
public Uri? BaseAddress => _httpClient.BaseAddress;
37+
3538
/// <inheritdoc />
3639
public async Task<ModelResponse<TextGenerationOutput, TextGenerationTokenUsage>> GetTextCompletionAsync(
3740
ModelRequest<TextGenerationInput, ITextGenerationParameters> input,

src/Cnblogs.DashScope.Core/IDashScopeClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
/// </summary>
66
public interface IDashScopeClient
77
{
8+
/// <summary>
9+
/// Get the underlying api gateway address.
10+
/// </summary>
11+
Uri? BaseAddress { get; }
12+
813
/// <summary>
914
/// Return textual completions as configured for a given prompt.
1015
/// </summary>

0 commit comments

Comments
 (0)