Cloud-based Ollama Models that can be used with TIER free

Tiempo de lectura: < 1 minutoHoy vamos a indicar cuales son los modelos Ollama Cloud que no dan el error de: {«error»:»this model requires a subscription, upgrade for access: https://ollama.com/upgrade (ref: 374c814e-dc9c-4fc1-a898-0bbc57cb0d0a)»} To determine this and by running tests with this script we can know which models are available to use with cloud and free tier cat

How to Block Bots using User-Agents in Python and FastAPI

How to Block Bots using User-Agents in Python and FastAPI

Tiempo de lectura: < 1 minutoWe will learn today how to implement a bot blocker using user-agents. 1. Install the library pip install user-agents 2. Creating the decorator file # dependencies/bot_detection.py import functools from fastapi import Request, HTTPException from user_agents import parse def block_bots(func): @functools.wraps(func) async def wrapper(request: Request, *args, **kwargs): ua_string = request.headers.get(“user-agent”, “”) ua = parse(ua_string) if ua.is_bot: … Read more

Installing OpenClaw using Docker Compose

Installing OpenClaw using Docker Compose

Tiempo de lectura: < 1 minutoHoy vamos a aprender a instalar OpenClaw en un sistema Docker mediante Docker Compose y dejarlo de forma aislada. Primero instalamos Docker. Once installed, we need to update Docker Compose: # Add official Docker repository curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo “deb [arch=$(dpkg –print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable” | sudo … Read more