Skip to content

Commit

Permalink
[8.10] [Security solution] Another GenAI response schema update (#166495
Browse files Browse the repository at this point in the history
) (#166498)

# Backport

This will backport the following commits from `main` to `8.10`:
- [[Security solution] Another GenAI response schema update
(#166495)](#166495)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Steph
Milovic","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-09-14T19:06:11Z","message":"[Security
solution] Another GenAI response schema update (#166495)\n\n##
Summary\r\n\r\nFollow up from
https://github.com/elastic/kibana/pull/166300\r\n\r\nWe are only using
`messages` from `choices`, so I made the other\r\n`choices` properties
`maybe` as
well","sha":"6e4ecff7c8776e6d446ba9d8b784cee3d9cf1d3f","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat
Hunting","Team:
SecuritySolution","v8.11.0","v8.10.1"],"number":166495,"url":"https://github.com/elastic/kibana/pull/166495","mergeCommit":{"message":"[Security
solution] Another GenAI response schema update (#166495)\n\n##
Summary\r\n\r\nFollow up from
https://github.com/elastic/kibana/pull/166300\r\n\r\nWe are only using
`messages` from `choices`, so I made the other\r\n`choices` properties
`maybe` as
well","sha":"6e4ecff7c8776e6d446ba9d8b784cee3d9cf1d3f"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/166495","number":166495,"mergeCommit":{"message":"[Security
solution] Another GenAI response schema update (#166495)\n\n##
Summary\r\n\r\nFollow up from
https://github.com/elastic/kibana/pull/166300\r\n\r\nWe are only using
`messages` from `choices`, so I made the other\r\n`choices` properties
`maybe` as
well","sha":"6e4ecff7c8776e6d446ba9d8b784cee3d9cf1d3f"}},{"branch":"8.10","label":"v8.10.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Steph Milovic <[email protected]>
  • Loading branch information
kibanamachine and stephmilovic authored Sep 14, 2023
1 parent 6cc42f1 commit 7a490ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/stack_connectors/common/gen_ai/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export const GenAiRunActionResponseSchema = schema.object(
},
{ unknowns: 'ignore' }
),
finish_reason: schema.string(),
index: schema.number(),
finish_reason: schema.maybe(schema.string()),
index: schema.maybe(schema.number()),
},
{ unknowns: 'ignore' }
)
Expand Down

0 comments on commit 7a490ba

Please sign in to comment.