222 feat enhance ai analyzer providers power user prompt versioning and swapping#225
Open
MatiasOS wants to merge 8 commits intoopenscan-explorer:release/v1.2.1-afrom
Conversation
… order and locales
|
🚀 Preview: https://pr-225--openscan.netlify.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Enhance the AI Analyzer with new provider support (Perplexity and Gemini), a prompt versioning system with power/regular user modes, and improved contract analysis context with smarter ABI summarization.
Related Issue
Closes #222
Type of Change
Changes Made
AI Providers
callGemini) with its native REST API formatMAX_TOKENSfrom 1024 to 4096Prompt Versioning & User Modes
PromptVersiontype ("stable"|"latest") to support prompt experimentationPROMPT_REGISTRYfor O(1) lookup by version → mode → typeSmarter Contract Context (
aiContext.ts)Transaction Context
i18n
Screenshots (if applicable)
Checklist
npm run format:fixandnpm run lint:fixnpm run typecheckwith no errorsnpm run test:runAdditional Notes
latestprompt configs are initially clones ofstable— they serve as an experimentation sandbox for prompt iteration without risking regression on the stable path.callGeminimethod was added.