Skip to content

Commit 7a0fd50

Browse files
committed
fix: improve user guidance for Azure connection in chat API response
1 parent e6750ef commit 7a0fd50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Dashboard/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ async Task<SessionConfig> CreateSessionConfigAsync(long userId)
936936
if (tokens.StorageToken is not null) connectedApis.Add("Azure Storage (ListCostExportBlobs, ReadCostExportBlob)");
937937
var connectionContext = connectedApis.Count > 0
938938
? $"[CONTEXT: User IS connected to Azure. Available APIs: {string.Join(", ", connectedApis)}. Proceed with tool calls directly.]"
939-
: "[CONTEXT: User is NOT connected to Azure. Tell them to click 'Connect Azure' in the sidebar.]";
939+
: "[CONTEXT: User is NOT connected to Azure. You can still answer any question that does NOT require their tenant-specific data — including public Azure information (regions, datacenters, services, pricing via RetailPrices, service health, general FinOps guidance), rendering charts/maps with public data, and explaining concepts. Use your built-in knowledge and public tools (RenderChart, RenderAdvancedChart, RetailPricing, GetAzureServiceHealth, web fetch) freely. Only ask the user to click 'Connect Azure' when the question genuinely requires their subscription/tenant data (their costs, their resources, their usage). Do NOT refuse public questions.]";
940940
prompt = $"{connectionContext}\n{prompt}";
941941

942942
// SSE headers

0 commit comments

Comments
 (0)