Skip to content

feat: toggle ai features#9232

Merged
shelby-moore merged 1 commit intoKong:feat/generative-aifrom
shelby-moore:feat-toggle-ai-features
Oct 14, 2025
Merged

feat: toggle ai features#9232
shelby-moore merged 1 commit intoKong:feat/generative-aifrom
shelby-moore:feat-toggle-ai-features

Conversation

@shelby-moore
Copy link
Contributor

@shelby-moore shelby-moore commented Oct 10, 2025

Adds the ability for a user to toggle AI features on off. There are currently two AI features - one for mock server generation, and another for commit message generation. Both can be toggled on/off individually.

This PR also disables the functionality for using the AI features depending on whether or not they're toggled on/off. If the features have been toggled off at the organization level, the user cannot toggle them on/off, the toggles are simply disabled along with the features.

@shelby-moore shelby-moore force-pushed the feat-toggle-ai-features branch from 87a36f6 to 0c9c6aa Compare October 10, 2025 00:19
Copy link
Contributor

@jackkav jackkav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some thoughts about terminology.
Mock servers are currently an entity under workspace, which has within it a number of mock routes. This work appears to be introducing a new definition of mock servers and an idea that a mock server can be enabled and fully enabled. For the future, lets come up with some more specific names. Happy to join a call and spit ball some ideas. Might help me give a better review too.
I understand that this work has some time pressure an I don't mean to hold it up over a nuance, but this kind of nuance is less painful to add now than later.

@shelby-moore
Copy link
Contributor Author

This work appears to be introducing a new definition of mock servers and an idea that a mock server can be enabled and fully enabled. For the future, lets come up with some more specific names. Happy to join a call and spit ball some ideas. Might help me give a better review too.

I don't think that's the case - these toggles are turning the AI generation for creating a mock server on/off. It's not actually enabling a mock server itself. I can work on renaming to make this more clear

@shelby-moore shelby-moore force-pushed the feat-toggle-ai-features branch 2 times, most recently from 5ded18e to add0cf0 Compare October 10, 2025 21:31
@shelby-moore shelby-moore marked this pull request as ready for review October 10, 2025 21:32
@shelby-moore shelby-moore force-pushed the feat-toggle-ai-features branch from add0cf0 to d69e2f6 Compare October 10, 2025 21:37
@shelby-moore shelby-moore requested a review from jackkav October 14, 2025 17:54
@shelby-moore shelby-moore merged commit 070b537 into Kong:feat/generative-ai Oct 14, 2025
9 checks passed
@shelby-moore shelby-moore deleted the feat-toggle-ai-features branch October 14, 2025 21:49
shelby-moore added a commit to shelby-moore/insomnia that referenced this pull request Oct 14, 2025
gatzjames pushed a commit that referenced this pull request Oct 22, 2025
gatzjames added a commit that referenced this pull request Oct 23, 2025
* feat: integrate AI plugin and configure LLMs in preferences (#9192)

* poc: LLM configuration

* fix formatting + tidy script

* fix openpath type send method

* exempt node_modules from vitest

* reset package-lock for inso build

* switch from send/on to invoke/handle

* switch to pluginData

* remove unnecessary animation

* remove extraneous external defs in frontend bundle config

* rebase fix

* feat: mock server gen (#9201)

* add ipc handler methods in front of llm config service (#9202)

* feat: gemini first class config support (#9209)

* feat: add gemini as a backend

* fix: save api key the first time

* chore: call plugin from utility process (#9210)

* feat: additional mock server event tracking (#9215)

* feat(Git Commit): Automatically generate commits (#9164)

* feat: add AI-generated commit message functionality in staging modal

* feat: enhance AI commit message generation with error handling and improved UI

* fix: update button icon and text for commit generation state in staging modal

* feat: add diff functionality to Git service and integrate with AI commit message generation

* feat: update isomorphic-git to version 1.33.1 and add stash functionality to Git VCS

* feat: implement multiple commit functionality for Git VCS and integrate with staging modal

* feat: add validation for staged changes before generating commit messages

* feat: implement generateCommitsFromDiff functionality for AI commit message generation

* Cleanup staging modal and use tree data for reordering and submitting multiple commits

* Revert "feat: update isomorphic-git to version 1.33.1 and add stash functionality to Git VCS"

This reverts commit b731372.

* feat: update type definitions for diff changes in Git VCS

* refactor: remove console logs and commented code from staging modal and AI commit generation

* feat: implement git commit generation process using a separate utility process for improved error handling and performance

* fix: improve error handling messages in AI commit generation

* chore: update optional dependency for AI plugin to alpha version 1.0.3

* fix: ensure data dir exists prior to reading (#9220)

* fix: ensure data dir exists prior to reading

* rename handler

* feat: mock server gen ux improvements (#9221)

* fix: include mockgen script in build (#9222)

* feat: add git commit generation process to build script (#9226)

* fix: set min height for git folder selector (#9242)

* chore: ai plugin 1.0.4 (#9243)

* feat: toggle ai features (#9232)

* feat: track commit generation and saving events for analytics (#9293)

* feat: add analytics tracking for commit message generation events

* fix: update segment event names to camelCase for consistency

* Update package-lock with the plugin modules

* fix(build): add x64ArchFiles option back (#9297)

* fix: autoselect self hosted mock when cloud mock disabled (#9299)

* fix: hide ai settings from scratch pad user (#9300)

---------

Co-authored-by: Shelby Moore <13246465+shelby-moore@users.noreply.github.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants