Skip to content

[Elastic Ramen] Expose model context window sizes#268310

Open
vigneshshanmugam wants to merge 2 commits into
elastic:mainfrom
vigneshshanmugam:path-a-kibana-context-limits
Open

[Elastic Ramen] Expose model context window sizes#268310
vigneshshanmugam wants to merge 2 commits into
elastic:mainfrom
vigneshshanmugam:path-a-kibana-context-limits

Conversation

@vigneshshanmugam
Copy link
Copy Markdown
Member

@vigneshshanmugam vigneshshanmugam commented May 7, 2026

Summary

  • Surfaces context_window_size from inference connector capabilities in the OpenAI-compatible models route.
  • Adds focused route coverage for connectors with known and unknown context window sizes.
  • Adds a Jest config for the elastic_console plugin so the new server route test can run directly.

Test plan

  • node scripts/jest x-pack/platform/plugins/shared/elastic_console/server/routes/models.test.ts
  • node scripts/eslint x-pack/platform/plugins/shared/elastic_console/server/routes/models.ts x-pack/platform/plugins/shared/elastic_console/server/routes/models.test.ts x-pack/platform/plugins/shared/elastic_console/jest.config.js

Surface connector context window metadata from the inference plugin so OpenAI-compatible clients can size prompts per model.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vigneshshanmugam vigneshshanmugam changed the title [Elastic Console] Expose model context window sizes [Elastic Ramen] Expose model context window sizes May 7, 2026
@vigneshshanmugam vigneshshanmugam added release_note:skip Skip the PR/issue when compiling release notes v9.4.0 v9.5.0 labels May 7, 2026
@vigneshshanmugam vigneshshanmugam marked this pull request as ready for review May 7, 2026 21:20
@vigneshshanmugam vigneshshanmugam requested a review from flash1293 May 7, 2026 21:20
@vigneshshanmugam vigneshshanmugam added the backport:version Backport to applied version labels label May 7, 2026
@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented May 7, 2026

💔 Build Failed

Failed CI Steps

Metrics [docs]

✅ unchanged

History

@flash1293
Copy link
Copy Markdown
Contributor

flash1293 commented May 8, 2026

That somehow doesn't work for me, am I doing something wrong?

Screenshot 2026-05-08 at 15 20 32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes v9.4.0 v9.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants