Siddhant Rai
3f7de867cc
feat: model registry and capabilities for multi-provider support ( #2158 )
...
* feat: Implement model registry and capabilities for multi-provider support
- Added ModelRegistry to manage available models and their capabilities.
- Introduced ModelProvider enum for different LLM providers.
- Created ModelCapabilities dataclass to define model features.
- Implemented methods to load models based on API keys and settings.
- Added utility functions for model management in model_utils.py.
- Updated settings.py to include provider-specific API keys.
- Refactored LLM classes (Anthropic, OpenAI, Google, etc.) to utilize new model registry.
- Enhanced utility functions to handle token limits and model validation.
- Improved code structure and logging for better maintainability.
* feat: Add model selection feature with API integration and UI component
* feat: Add model selection and default model functionality in agent management
* test: Update assertions and formatting in stream processing tests
* refactor(llm): Standardize model identifier to model_id
* fix tests
---------
Co-authored-by: Alex <a@tushynski.me >
2025-11-14 13:13:19 +02:00
Siddhant Rai
21e5c261ef
feat: template-based prompt rendering with dynamic namespace injection ( #2091 )
...
* feat: template-based prompt rendering with dynamic namespace injection
* refactor: improve template engine initialization with clearer formatting
* refactor: streamline ReActAgent methods and improve content extraction logic
feat: enhance error handling in NamespaceManager and TemplateEngine
fix: update NewAgent component to ensure consistent form data submission
test: modify tests for ReActAgent and prompt renderer to reflect method changes and improve coverage
* feat: tools namespace + three-tier token budget
* refactor: remove unused variable assignment in message building tests
* Enhance prompt customization and tool pre-fetching functionality
* ruff lint fix
* refactor: cleaner error handling and reduce code clutter
---------
Co-authored-by: Alex <a@tushynski.me >
2025-10-31 12:47:44 +00:00
Manish Madan
6a4cb617f9
Frontend audit: Bug fixes and refinements ( #2112 )
...
* (fix:attachements) sep id for redux ops
* (fix:ui) popups, toast, share modal
* (feat:agentsPreview) stable preview, ui fixes
* (fix:ui) light theme icon, sleek scroll
* (chore:i18n) missin keys
* (chore:i18n) missing keys
* (feat:preferrenceSlice) autoclear invalid source from storage
* (fix:general) delete all conv close btn
* (fix:tts) play one at a time
* (fix:tts) gracefully unmount
* (feat:tts) audio LRU cache
* (feat:tts) pointer on hovered area
* (feat:tts) clean text for speach
---------
Co-authored-by: GH Action - Upstream Sync <action@github.com >
2025-10-29 01:47:26 +02:00
Siddhant Rai
125ce0aad3
test: implement full API test suite with mongomock and centralized fixtures ( #2068 )
2025-10-17 12:01:14 +03:00
Siddhant Rai
da6317a242
feat: agent templates and seeding premade agents ( #1910 )
...
* feat: agent templates and seeding premade agents
* fix: ensure ObjectId is used for source reference in agent configuration
* fix: improve source handling in DatabaseSeeder and update tool config processing
* feat: add prompt handling in DatabaseSeeder for agent configuration
* Docs premade agents
* link to prescraped docs
* feat: add template agent retrieval and adopt agent functionality
* feat: simplify agent descriptions in premade_agents.yaml added docs
---------
Co-authored-by: Pavel <pabin@yandex.ru >
Co-authored-by: Alex <a@tushynski.me >
2025-10-07 13:00:14 +03:00
Siddhant Rai
76973a4b4c
feat: answer routes re-structure for better maintainability and reuse
2025-07-23 20:07:42 +05:30
Siddhant Rai
a472ee7602
feat: add validation for required fields and improve agent creation logic
2025-07-12 12:30:00 +05:30
Siddhant Rai
e35f1d70e4
- Added image upload functionality for agents in the backend and frontend.
...
- Implemented image URL generation based on storage strategy (S3 or local).
- Updated agent creation and update endpoints to handle image files.
- Enhanced frontend components to display agent images with fallbacks.
- New API endpoint to serve images from storage.
- Refactored API client to support FormData for file uploads.
- Improved error handling and logging for image processing.
2025-06-18 18:17:20 +05:30
GH Action - Upstream Sync
0a3e8ca535
Merge branch 'main' of https://github.com/arc53/DocsGPT
2025-06-12 01:43:21 +00:00
ManishMadan2882
142477ab9b
(feat:safe_filename) handles case of non-ascii char
2025-06-11 21:03:38 +05:30
Siddhant Rai
e9530d5ec5
refactor: update env variable names
2025-06-06 15:29:53 +05:30
Alex
05319e36a7
Merge pull request #1630 from siiddhantt/feat/show-tool-execution
...
feat: tool calls tracking
2025-02-14 10:27:15 +00:00
Alex
2d8aa229c6
fix: used for security comment
2025-02-13 11:10:44 +00:00
Siddhant Rai
8a3612e56c
fix: improve tool call handling and UI adjustments
2025-02-13 05:02:10 +05:30
Alex
60772889d5
fix: handle bad tool name input
2025-02-10 16:20:37 +00:00
Alex
0a246d3de7
Merge branch 'main' into tool-use
2024-12-20 17:29:41 +00:00
ManishMadan2882
b19c14787e
(fix) avoid stringifying list
2024-12-19 17:58:55 +05:30
ManishMadan2882
89a2f249c1
(feat:conv history) token limit from settings
2024-12-19 05:15:33 +05:30
ManishMadan2882
f8e4e42a36
(feat:limit conv history) add util method
2024-12-17 16:14:17 +05:30
Alex
1f649274d1
feat: tooling init
2024-12-05 22:44:40 +00:00
fadingNA
3e55be910b
hashlib helper to gen cachekey
2024-10-12 10:47:33 -04:00
Siddhant Rai
e8988e82d0
refactor: answer routes to comply with OpenAPI spec using flask-restx
2024-09-30 00:41:34 +05:30
Alex
d9309ebc6e
feat: better token counter
2024-08-31 17:07:40 +01:00
Alex
5c8133a810
chore: Update Docker build platforms for application and frontend and optimised embedding import
2024-05-18 12:10:24 +01:00
Alex
431755144e
fix: Update count_tokens function in utils.py
2024-05-04 10:39:23 +01:00
Alex
391f686173
Update application files and fix LLM models, create new retriever class
2024-04-09 14:02:33 +01:00