Commit Graph
8 Commits
Author SHA1 Message Date
TashaSkyUp 7cf82171e5 Make environment management non-polluting and safe
This commit implements a clean architecture where environment variables
are only read, never set, ensuring compatibility with other ComfyUI
packages.

The changes: - Remove all code that sets global environment variables -
Clean up config.yaml to remove API key placeholders - Add documentation
for safe environment handling - Add comprehensive tests to verify
non-polluting behavior - Ensure backward compatibility for other
packages

The commit includes detailed docs explaining the clean architecture and
safety guarantees for package compatibility.
2025-06-25 17:22:53 -06:00
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 1bf860bda2 refactor for consistency with pep 8 naming conventions 2024-11-27 10:25:04 -07:00
TashaSkyUp 5b54740591 feat: Add Agent and LightRAG integration nodes
- Add new Agent system with base node infrastructure and recursion filtering
- Implement LightRAG integration with document processing and query capabilities
- Add memory management system with Linux memory directory support
- Update node mappings to include new Agent and LightRAG components
- Fix model response format handling in LiteLLM nodes
- Add new dependencies for embedding and vector storage support
- Remove author attribution from init file
2024-11-20 19:52:32 -07:00
Tasha Upchurch 03d11eb82c Expand LiteLLM integration and enhance multi-modal capabilities
- Add new classes for advanced LLM interactions (HTMLRenderer, AddDataModelToLLLm, ModifyModelKwargs, LitellmCompletionV2)
- Implement PDF processing with PDFToImageNode for image extraction
- Enhance error handling and caching in LiteLLMCompletion for improved performance
- Update model options and add support for custom data models and kwargs modifications
- Refactor initialization process and simplify JavaScript components
- Improve multi-modal processing with better image handling in LLM completions
- Update project metadata to reflect evolving focus and capabilities

This commit significantly expands the system's ability to handle complex AI tasks,
including HTML rendering, PDF processing, and more flexible LLM interactions.
It represents a major step towards a more comprehensive, multi-modal AI toolkit
2024-09-24 10:32:28 -06:00
Tasha Upchurch 526de13aa0 fix for js issues 2024-06-12 11:41:21 -06:00
Tasha Upchurch 3c57275ecb Refactor import statements to use relative imports in ComfyUI_LiteLLM repository 2024-05-15 20:03:33 -04: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