Spaces:
Configuration error
Configuration error
Download openhands/storage/conversation/conversation_validator.py from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/storage/conversation/conversation_validator.py
- Command line
-
hf download hf://spaces/flyingdarkdev/README/openhands/storage/conversation/conversation_validator.py
-
curl -L -o conversation_validator.py https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/storage/conversation/conversation_validator.py
566 Bytes
| import os | |
| from openhands.utils.import_utils import get_impl | |
| class ConversationValidator: | |
| """Storage for conversation metadata. May or may not support multiple users depending on the environment.""" | |
| async def validate(self, conversation_id: str, cookies_str: str): | |
| return None, None | |
| conversation_validator_cls = os.environ.get( | |
| 'OPENHANDS_CONVERSATION_VALIDATOR_CLS', | |
| 'openhands.storage.conversation.conversation_validator.ConversationValidator', | |
| ) | |
| ConversationValidatorImpl = get_impl(ConversationValidator, conversation_validator_cls) | |