-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…166879) # Backport This will backport the following commits from `main` to `8.10`: - [[OAS] Add defaultModel to generative AI connector (#166394)](#166394) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lisa Cawley","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-09-20T18:39:08Z","message":"[OAS] Add defaultModel to generative AI connector (#166394)","sha":"82024c240a89ab8f63c27d3f42ac2a80b6c2cd2c","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","docs","Team: SecuritySolution","Feature:Actions/ConnectorTypes","v8.11.0","v8.10.1"],"number":166394,"url":"https://github.com/elastic/kibana/pull/166394","mergeCommit":{"message":"[OAS] Add defaultModel to generative AI connector (#166394)","sha":"82024c240a89ab8f63c27d3f42ac2a80b6c2cd2c"}},"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/166394","number":166394,"mergeCommit":{"message":"[OAS] Add defaultModel to generative AI connector (#166394)","sha":"82024c240a89ab8f63c27d3f42ac2a80b6c2cd2c"}},{"branch":"8.10","label":"v8.10.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
- Loading branch information
Showing
6 changed files
with
198 additions
and
48 deletions.
There are no files selected for viewing
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
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
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
32 changes: 27 additions & 5 deletions
32
x-pack/plugins/actions/docs/openapi/components/schemas/config_properties_genai.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,32 @@ | ||
title: Connector request properties for a generative AI connector | ||
description: Defines properties for connectors when type is `.gen-ai`. | ||
type: object | ||
properties: | ||
apiProvider: | ||
oneOf: | ||
- type: object | ||
required: | ||
- apiProvider | ||
- apiUrl | ||
properties: | ||
apiProvider: | ||
type: string | ||
description: The OpenAI API provider. | ||
apiUrl: | ||
enum: ['Azure OpenAI'] | ||
apiUrl: | ||
type: string | ||
description: The OpenAI API endpoint. | ||
description: The OpenAI API endpoint. | ||
- type: object | ||
required: | ||
- apiProvider | ||
- apiUrl | ||
properties: | ||
apiProvider: | ||
type: string | ||
description: The OpenAI API provider. | ||
enum: ['OpenAI'] | ||
apiUrl: | ||
type: string | ||
description: The OpenAI API endpoint. | ||
defaultModel: | ||
type: string | ||
description: The default model to use for requests. | ||
discriminator: | ||
propertyName: apiProvider |
13 changes: 13 additions & 0 deletions
13
x-pack/plugins/actions/docs/openapi/components/schemas/update_connector_request_genai.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title: Update generative AI connector request | ||
type: object | ||
required: | ||
- config | ||
- name | ||
properties: | ||
config: | ||
$ref: 'config_properties_genai.yaml' | ||
name: | ||
type: string | ||
description: The display name for the connector. | ||
secrets: | ||
$ref: 'secrets_properties_genai.yaml' |
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