Spaces:
Sleeping
Sleeping
sync
Browse filesFiles changed (2)
- README.md+2-2
- hf_agent.py+3-3
60 unmodified lines61626364656667263 unmodified lines33133233333433533633760 unmodified lines- **Framework**: Smolagents CodeAgent with custom tools- **Default Strategy**: Remote (HuggingFace Serverless Inference API)- **Access**: NO approval required - all models are openly accessible- **API Endpoint**: `https://api-inference.huggingface.co` - FORCED to HuggingFace only, no external providers### Tools1. **Web Search Tool**: DuckDuckGo-based real-time information retrieval263 unmodified lines- **Fallback:** `HuggingFaceH4/zephyr-7b-beta` (MIT license, ungated, no approval needed)- **Embedding:** `sentence-transformers/all-MiniLM-L6-v2` (ungated)- **Default:** Remote strategy (HuggingFace Serverless Inference API)- **API Endpoint:** Hardcoded to `https://api-inference.huggingface.co` - prevents external provider routing#### Benefits- Uses latest high-performance ungated models60 unmodified lines61626364656667263 unmodified lines33133233333433533633760 unmodified lines- **Framework**: Smolagents CodeAgent with custom tools- **Default Strategy**: Remote (HuggingFace Serverless Inference API)- **Access**: NO approval required - all models are openly accessible- **API Endpoint**: `https://router.huggingface.co/hf-inference` - FORCED to HuggingFace infrastructure only (no external providers)### Tools1. **Web Search Tool**: DuckDuckGo-based real-time information retrieval263 unmodified lines- **Fallback:** `HuggingFaceH4/zephyr-7b-beta` (MIT license, ungated, no approval needed)- **Embedding:** `sentence-transformers/all-MiniLM-L6-v2` (ungated)- **Default:** Remote strategy (HuggingFace Serverless Inference API)- **API Endpoint:** Hardcoded to `https://router.huggingface.co/hf-inference` - routes to HuggingFace infrastructure only#### Benefits- Uses latest high-performance ungated models
558 unmodified lines55956056156256356456521 unmodified lines5875885895905915925936 unmodified lines600601602603604605606558 unmodified lineselse:# Use remote model with InferenceClientModel (HuggingFace)from huggingface_hub import InferenceClientmodel_url = f"https://api-inference.huggingface.co/models/{self.model_config['llm_model']}"hf_client = InferenceClient(base_url=model_url,token=get_hf_token()21 unmodified lineselse:print("Local fallback not available, using remote fallback...")from huggingface_hub import InferenceClientmodel_url = f"https://api-inference.huggingface.co/models/{self.model_config['fallback_model']}"hf_client = InferenceClient(base_url=model_url,token=get_hf_token()6 unmodified lineselse:from huggingface_hub import InferenceClientmodel_url = f"https://api-inference.huggingface.co/models/{self.model_config['fallback_model']}"hf_client = InferenceClient(base_url=model_url,token=get_hf_token()558 unmodified lines55956056156256356456521 unmodified lines5875885895905915925936 unmodified lines600601602603604605606558 unmodified lineselse:# Use remote model with InferenceClientModel (HuggingFace)from huggingface_hub import InferenceClientmodel_url = f"https://router.huggingface.co/hf-inference/models/{self.model_config['llm_model']}"hf_client = InferenceClient(base_url=model_url,token=get_hf_token()21 unmodified lineselse:print("Local fallback not available, using remote fallback...")from huggingface_hub import InferenceClientmodel_url = f"https://router.huggingface.co/hf-inference/models/{self.model_config['fallback_model']}"hf_client = InferenceClient(base_url=model_url,token=get_hf_token()6 unmodified lineselse:from huggingface_hub import InferenceClientmodel_url = f"https://router.huggingface.co/hf-inference/models/{self.model_config['fallback_model']}"hf_client = InferenceClient(base_url=model_url,token=get_hf_token()
README.md+2-2
hf_agent.py+3-3