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
a4507008c1
complete_stream: Stop response streaming ( #2031 )
...
* (feat:pause-stream) generator exit
* (feat:pause-stream) close request
* (feat:pause-stream) finally close; google anthropic
---------
Co-authored-by: GH Action - Upstream Sync <action@github.com >
2025-10-08 20:37:30 +03:00
Siddhant Rai
896dcf1f9e
feat: add support for structured output and JSON schema validation
2025-08-13 13:29:51 +05:30
Pavel
416b776062
redundant f string
2025-05-15 16:57:41 +04:00
Pavel
dbb822f6b0
fix for OPENAI_BASE_URL + ollama can't connect to container
...
- fix for OpenAI trying to use base_url=""
- fix for ollama container error:
`Error code: 404 - {'error': {'message': 'model "MODEL_NAME" not found, try pulling it first', 'type': 'api_error', 'param': None, 'code': None}}`
2025-05-15 13:50:08 +04:00
Alex
481df4d604
fix: enhance error logging with exception info across multiple modules
2025-05-05 13:12:39 +01:00
Alex
df9d432d29
fix: mongo db database name in settings
2025-04-24 17:29:41 +01:00
ManishMadan2882
0a31ddaae6
(feat:storage) use get storage
2025-04-22 01:41:53 +05:30
ManishMadan2882
c8efef8f04
(fix:openai) image uplads, use lambda in process_files
2025-04-18 18:27:02 +05:30
ManishMadan2882
5aa51f5f36
(feat:file_abstract) openai attachments comply
2025-04-18 01:27:21 +05:30
ManishMadan2882
335c21c48a
(fix:attachment) dont calculate MIME again
2025-04-17 16:36:40 +05:30
Alex
5b77f3839b
fix: maybe
2025-04-14 20:24:05 +01:00
ManishMadan2882
5421bc1386
(feat:attach) extend support for imgs
2025-04-08 15:51:37 +05:30
ManishMadan2882
e4945b41e9
(feat:files) link attachment to openai_api
2025-04-06 15:57:18 +05:30
Nilesh Agarwal
5438bf9754
fix signature for AzureOpenAILLM
2025-03-14 09:52:09 -07:00
Alex
51eced00aa
fix: openai compatable with llama and gemini
2025-03-13 00:10:13 +00:00
Siddhant Rai
f88c34a0be
feat: streaming responses with function call
2025-03-05 09:02:55 +05:30
Siddhant Rai
f35af54e9f
refactor: clean up code and improve UI elements in various components
2025-02-18 13:10:35 +05:30
Siddhant Rai
5cf5bed6a8
feat: enhance tool call handling with structured message cleaning and improved UI display
2025-02-14 00:15:01 +05:30
Siddhant Rai
811dfecf98
refactor: tool agent for action parser and handlers
2025-01-15 16:35:26 +05:30
Alex
1f649274d1
feat: tooling init
2024-12-05 22:44:40 +00:00
Alex
5246d85f11
fix: ruff
2024-09-02 20:00:24 +01:00
Alex
9526ed0258
feat: added easy way to proxy
2024-09-02 19:46:25 +01:00
Siddhant Rai
af5e73c8cb
fix: user_api_key capturing
2024-04-16 15:31:11 +05:30
Siddhant Rai
77991896b4
fix: api_key capturing + pytest errors
2024-04-15 22:32:24 +05:30
Siddhant Rai
60a670ce29
fix: changes to llm classes according to base
2024-04-15 19:47:24 +05:30
Siddhant Rai
c1c69ed22b
fix: pytest issues
2024-04-15 19:35:59 +05:30
Alex
391f686173
Update application files and fix LLM models, create new retriever class
2024-04-09 14:02:33 +01:00
Alex
7870749077
fix openai
2024-01-03 12:09:05 +00:00
Alex
e4be38b9f7
sagemaker + llm creator class
2023-09-29 01:09:01 +01:00
Alex
025549ebf8
fixes to make it work
2023-09-26 13:00:17 +01:00
Alex
e85a583f0a
testings
2023-09-26 10:03:22 +01:00