Skip to content

Commit

Permalink
add contract
Browse files Browse the repository at this point in the history
  • Loading branch information
m-h-s committed Sep 30, 2024
1 parent b751c1c commit 6e1fbb7
Showing 1 changed file with 82 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2859,6 +2859,11 @@
"$ref": "#/definitions/PipelineDiagnosticSettings",
"description": "Diagnostic settings for incoming/outgoing HTTP messages to the Backend"
},
"largeLanguageModel": {

"$ref": "#/definitions/LLMDiagnosticSettings",
"description": "Large Language Models diagnostic settings"
},
"logClientIp": {
"type": "boolean",
"description": "Log the ClientIP. Default is false."
Expand Down Expand Up @@ -3001,6 +3006,11 @@
"$ref": "#/definitions/PipelineDiagnosticSettings",
"description": "Diagnostic settings for incoming/outgoing HTTP messages to the Backend"
},
"largeLanguageModel": {

"$ref": "#/definitions/LLMDiagnosticSettings",
"description": "Large Language Models diagnostic settings"
},
"logClientIp": {
"type": "boolean",
"description": "Log the ClientIP. Default is false."
Expand Down Expand Up @@ -4745,6 +4755,78 @@
}
}
},
"LLMDiagnosticSettings": {
"type": "object",
"description": "Diagnostic settings for Large Language Models",
"properties": {
"logs": {
"$ref": "#/definitions/LLMLogsTypes",
"description": "Specifies whether default diagnostic should be enabled for Large Language Models or not."
},
"requests": {
"$ref": "#/definitions/LLMMessageDiagnosticSettings",
"description": "Diagnostic settings for Large Language Models requests."
},
"responses": {
"$ref": "#/definitions/LLMMessageDiagnosticSettings",
"description": "Diagnostic settings for Large Language Models responses."
}
}
},
"LLMLogsTypes": {
"type": "string",
"enum": [
"enabled",
"disabled"
],
"x-ms-enum": {
"modelAsString": true,
"name": "llm-diagnostic-settings",
"values": [
{
"value": "enabled",
"description": "Default llm logs are enabled."
},
{
"value": "disabled",
"description": "Default llm logs are disabled."
}
]
}
},
"LLMMessageDiagnosticSettings": {
"type": "object",
"description": "Diagnostic settings for Large Language Models Messages",
"properties": {
"messages": {
"$ref": "#/definitions/LLMMessageLogTypes",
"description": "Specifies which message should be logged. Currently there is only 'all' option."
},
"maxSizeInBytes": {
"type": "integer",
"format": "int32",
"description": "Maximum size of message to logs in bytes. The maximum size is 32KB.",
"maximum": 32768
}
}
},
"LLMMessageLogTypes": {
"type": "string",
"enum": [
"all"
],
"x-ms-enum": {
"modelAsString": true,
"name": "llm-message-log-types",
"values": [
{
"value": "all",
"description": "Log all messages.",
"x-apim-code-enumValue": 1
}
]
}
},
"PipelineDiagnosticSettings": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 6e1fbb7

Please sign in to comment.