Commit Graph
4 Commits
Author SHA1 Message Date
TashaSkyUp 40831eaa28 Add agent node docstrings, improve error handling, and update config
- Add detailed docstrings to AgentNode, BasicRecursionFilterNode, and
DocumentChunkRecursionFilterNode for clarity and documentation. -
Improve input validation and error handling in agent nodes. - Update
.gitignore to cover more environment, config, and IDE files. - Refactor
LiteLLMCustomEndpointProvider for custom API endpoints. - Add
conditional imports and dummy functions for LightRAG when unavailable. -
Update config.yaml to use environment variables for API keys and clarify
usage. - Refine requirements.txt to avoid heavy LightRAG dependencies. -
Add tests/__init__.py with test suite metadata; remove redundant test
files. - Fix CustomDict import and model config handling in
litellmnodes.py. - Improve chunk processing and recursion filter logic
in agent nodes. - Update utils/__init__.py to include env_config.
2025-06-24 17:47:36 -06:00
TashaSkyUp 7b9207eed2 feat: Add response caching for AgentNode
- Implement JSON-based response caching system
- Add use_last_response parameter for cache control
- Move cache directory to data folder
- Remove unused safe_print utilities
- Fix messages_results typo
2024-11-22 09:42:11 -07:00
Tasha Upchurch b52da5a267 feat: enhance LiteLLM functionality and update README
- Added safe_print and safe_error functions for improved error handling in install.py and litellmnodes.py.
- Introduced new model support in litellmnodes.py including Claude 3.5 Sonnet.
- Refactored LiteLLMCompletion node to improve readability and maintainability.
- Enhanced README.md with updated features, supported models, and usage instructions.
- Included new nodes in README.md for better user guidance.
2024-06-29 13:08:00 -06:00
Tasha Upchurch fe6a6c0b19 Add LiteLLM nodes for integration with ComfyUI
Add litellmnodes.py with various nodes for interacting with LiteLLM models, including:
LiteLLMModelProvider for providing LiteLLM models
LiteLLMCompletion for generating completions using LiteLLM
LiteLLMCompletionListOfPrompts for generating completions for a list of prompts
CreateReflectionFilter and FirstCodeBlockReflectionFilter for creating reflection filters
LiteLLMCompletionWithReflectionFilter for generating completions with a reflection filter
LiteLLMCompletionProvider for providing a completion function
LiteLLMMessage for creating LiteLLM messages
ListToMessages for converting a list to LiteLLM messages
Add .gitignore to ignore config.yaml
Add requirements.txt with required dependencies
Add install.py script for installing the addon via ComfyUI-Manager
Add litellm_uuid.txt to store the addon's UUID
Add init.py to initialize the addon and update node mappings
Add tests/test_litellmnodes.py with unit tests for LiteLLMCompletion
Add config.py for reading configuration settings from config.yaml
Add tests/init.py for tests package
This commit integrates LiteLLM nodes into ComfyUI, allowing users to interact with LiteLLM models directly within the ComfyUI interface. The nodes provide functionality for generating completions, creating reflection filters, handling messages, and more. Configuration settings are read from config.yaml, and the addon can be installed using the provided install.py script when using ComfyUI-Manager.
2024-04-15 19:00:50 -04:00