Skip to content

Commit

Permalink
[Security solution] GenAI - update response schema (elastic#166300)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic authored Sep 13, 2023
1 parent c7e360b commit 6e74efe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions x-pack/plugins/stack_connectors/common/gen_ai/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ export const GenAiStreamActionParamsSchema = schema.object({
});

export const GenAiStreamingResponseSchema = schema.any();

export const GenAiRunActionResponseSchema = schema.object(
{
id: schema.string(),
object: schema.string(),
created: schema.number(),
model: schema.string(),
id: schema.maybe(schema.string()),
object: schema.maybe(schema.string()),
created: schema.maybe(schema.number()),
model: schema.maybe(schema.string()),
usage: schema.object(
{
prompt_tokens: schema.number(),
Expand Down

0 comments on commit 6e74efe

Please sign in to comment.