Skip to content

feat(core): introduce instance-aware provider management - #512

Merged
haiphucnguyen merged 10 commits into
askimo-ai:mainfrom
terry-lamp:feature/support-ai-providers-instance
Jul 18, 2026
Merged

feat(core): introduce instance-aware provider management#512
haiphucnguyen merged 10 commits into
askimo-ai:mainfrom
terry-lamp:feature/support-ai-providers-instance

Conversation

@terry-lamp

Copy link
Copy Markdown
Contributor
  • Support multiple instances of AI providers
  • Adjust the UI / encryption accordingly
  • Adjust the AppConfig.

BREAKING CHANGE: askimo.yml structure modified. The configuration file is no longer backward compatible. Manual migration is required.

Screenshots:

Screenshot 2026-07-16 at 6 21 22 PM Screenshot 2026-07-16 at 6 22 16 PM Screenshot 2026-07-16 at 6 23 11 PM

- Refactors application state to support multiple configured instances per provider type (e.g., different API keys or setups for the same provider).
- CLI commands now track and display active provider instances, not just the provider type.
- Desktop settings are updated with a dedicated provider wizard for creation and configuration.
- Core context tracking (`AppContext`, `AppContextParams`) now manages instance IDs and instances lists.
@haiphucnguyen

Copy link
Copy Markdown
Collaborator

Thank you @terry-lamp . This is a huge PR :). Thank you for your effort to invest to Askimo, I will spend time to review it soon.

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

By the way, because the breaking change in the config. We will somehow require users to choose provider / model again, we should inform user if we detect the old config format?

@haiphucnguyen

haiphucnguyen commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

There are some UI improvements:

  • Add the validation in AI provider edit

Now if I enter the invalid key, the popup still allow user to save the invalid key
Screenshot 2026-07-16 at 9 08 43 PM

  • The project (RAG) can not load the embedding model?

Just run the app, I will look into the code and do the review on tomorrow. Thank you again for this PR @terry-lamp

Comment thread desktop/src/main/kotlin/io/askimo/desktop/shell/FooterBar.kt
Comment thread shared/src/main/kotlin/io/askimo/core/providers/ProviderInstance.kt
Comment thread shared/src/main/kotlin/io/askimo/core/providers/ProviderInstance.kt

@haiphucnguyen haiphucnguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you @terry-lamp for this excellent PR.

@haiphucnguyen
haiphucnguyen merged commit ee789b0 into askimo-ai:main Jul 18, 2026
10 checks passed
@terry-lamp
terry-lamp deleted the feature/support-ai-providers-instance branch July 24, 2026 01:38
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.

2 participants