chore: Note in the guide about restricted env + modernize fixes

This commit is contained in:
Kayvan Sylvan 2026-01-15 15:16:40 -08:00
parent 1af6418486
commit a2370a0e3b
2 changed files with 4 additions and 3 deletions

View file

@ -2,6 +2,8 @@
This guide walks you through setting up and using Microsoft 365 Copilot with Fabric CLI. Microsoft 365 Copilot provides AI capabilities grounded in your organization's Microsoft 365 data, including emails, documents, meetings, and more.
> NOTE: As per the conversation in [discussion 1853](https://github.com/danielmiessler/Fabric/discussions/1853) - enterprise users with restrictive consent policies will probably need their IT admin to either create an app registration with the required permissions, or grant admin consent for an existing app like Graph Explorer.
## Table of Contents
- [What is Microsoft 365 Copilot?](#what-is-microsoft-365-copilot)

View file

@ -381,8 +381,7 @@ func (c *Client) parseSSEStream(reader io.Reader, channel chan domain.StreamUpda
newText := c.extractResponseText(event.Messages)
if newText != "" && newText != lastMessageText {
// Send only the delta (new content)
if strings.HasPrefix(newText, lastMessageText) {
delta := strings.TrimPrefix(newText, lastMessageText)
if delta, ok := strings.CutPrefix(newText, lastMessageText); ok {
if delta != "" {
channel <- domain.StreamUpdate{Type: domain.StreamTypeContent, Content: delta}
}
@ -474,7 +473,7 @@ type responseMessage struct {
ID string `json:"id"`
Text string `json:"text"`
CreatedDateTime string `json:"createdDateTime"`
AdaptiveCards []interface{} `json:"adaptiveCards,omitempty"`
AdaptiveCards []any `json:"adaptiveCards,omitempty"`
Attributions []attribution `json:"attributions,omitempty"`
}