mirror of
https://github.com/danielmiessler/fabric.git
synced 2026-09-10 07:36:44 -04:00
chore: Note in the guide about restricted env + modernize fixes
This commit is contained in:
parent
1af6418486
commit
a2370a0e3b
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"`
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue