Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AI Connector] Kibana inference connector should support openai compatible schema for completion task #202621

Closed
YulNaumenko opened this issue Dec 3, 2024 · 2 comments
Assignees
Labels
8.18 candidate Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.18.0

Comments

@YulNaumenko
Copy link
Contributor

Extend Kibana AI Connector sub actions to support _unified completion task execution with the usage openai schema as a standard.

this.registerSubAction({
      name: SUB_ACTION.UNIFIED_COMPLETION,
      method: 'performApiUnifiedCompletion',
      schema: ChatCompleteParamsSchema,
    });

Elasticsearch related ticket to implement the _unified inference endpoint elastic/elasticsearch#117589

Usage example:


await actionsClient.execute({
          actionId: connectorId,
          params: {
            subAction: 'invokeAIRaw',
            subActionParams: {
              messages: prepareMessages(inputBody.messages),
              temperature: params.temperature ?? inputBody.temperature,
              stop: inputBody.stop,
              max_tokens: params.maxTokens ?? inputBody.max_tokens,
              tools: inputBody.tools,
            },
          },
        })
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 13, 2024
@YulNaumenko
Copy link
Contributor Author

Resolved by #200249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.18 candidate Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.18.0
Projects
None yet
Development

No branches or pull requests

3 participants