This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"properties": { | |
"@@odata.context": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"@@odata.count": { | |
"type": "integer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"properties": { | |
"@@odata.type": { | |
"type": "string" | |
}, | |
"displayName": { | |
"type": "string" | |
}, | |
"id": { | |
"type": "string" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"properties": { | |
"@@odata.context": { | |
"type": [ | |
"string", | |
"null" | |
] | |
}, | |
"attachments": { | |
"type": "array" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Question = "How many sick days do i have?" | |
$AzureOpenAIEndpointURL = "https://sharepointdocumentschat.openai.azure.com/" | |
$AzureOpenAIEndpointKey = "7256974864a9499499ca4d3e70fa0c7b" | |
$AzureOpenAIModelDelpoymentName = "ChatGPT4" | |
$AzureCognitiveSearchURL = "https://sharepointsearchinstance.search.windows.net" | |
$AzureCognitiveSearchAdminKey = "Wt1mZ0sjkKoXW913d2eJ8xXYJk4JHThk1UK8H0wZoIAzSeDjYTmC" | |
$Header = @{"api-key" = "$AzureOpenAIEndpointKey" | |
"ChatGpt_Key" = "$AzureOpenAIEndpointKey " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$AzureCognitiveSearchURL = "https://sharepointsearchinstance.search.windows.net" | |
$AzureCognitiveSearchAdminKey = "Wt1mZ0sjkKoXW913d2eJ8xXYJk4JHThk1UK8H0wZoIAzSeDjYTmC" | |
$Header = @{"api-key" = "$AzureCognitiveSearchAdminKey" | |
"content-type" = "application/json" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$AzureCognitiveSearchURL = "https://sharepointsearchinstance.search.windows.net" | |
$AzureCognitiveSearchAdminKey = "Wt1mZ0sjkKoXW913d2eJ8xXYJk4JHThk1UK8H0wZoIAzSeDjYTmC" | |
$Header = @{"api-key" = "$AzureCognitiveSearchAdminKey" | |
"content-type" = "application/json" | |
} | |
$Body = @" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$AzureCognitiveSearchURL = "https://sharepointsearchinstance.search.windows.net" | |
$AzureCognitiveSearchAdminKey = "Wt1mZ0sjkKoXW913d2eJ8xXYJk4JHThk1UK8H0wZoIAzSeDjYTmC" | |
$SharePointSiteURL = "https://alexholmeset.sharepoint.com/sites/TestDemoTeam/" | |
$AzureAppregistrationID = "861eade5-bb96-41cc-af4b-55dce97b020e" | |
$AzureAppregistrationSecret = "8re8Q~pR6icm6oT5Fx8UwiDO~xgoeYp~8KGiXaF3" | |
$TenantID = "29594fb0-53f2-490c-a1be-8b2cca824805" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-AzureOpenAIToken{ | |
<# .SYNOPSIS | |
Get an azure token for user or managed identity thats required to authenticate to Azure OpenAI with Rest API. | |
Also construct the header if you are using an Azure OpenAI API key instead of Azure AD authentication. | |
.PARAMETER ManagedIdentity | |
Use this parameter if you want to use a managed identity to authenticate to Azure OpenAI. | |
.PARAMETER User | |
Use this parameter if you want to use a user to authenticate to Azure OpenAI. | |
.PARAMETER APIKey | |
Use this parameter if you want to use an API key to authenticate to Azure OpenAI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "object", | |
"properties": { | |
"myString": { | |
"type": "string" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"properties": { | |
"MeetingID": { | |
"type": "string" | |
}, | |
"MeetingRoomUPN": { | |
"type": "string" | |
} | |
}, | |
"type": "object" |