Cloudfare WorkerAI

A Python wrapper for Cloudflare WorkersAI that enables seamless integration with their REST API, allowing direct access to AI models through a simplified manifold pipeline pattern.

v0.1.6
cloudfare_workerai.py
Python · 131 lines
20    class Valves(BaseModel):21        CF_ACCOUNT_ID: str = Field(default="")22        CF_API_KEY: str = Field(default="")23        CF_AI_Gateway: str = Field(default="")24 25    def __init__(self):26        self.type = "manifold"27        self.id = "cloudflare"28        self.name = "cloudflare/"29        self.valves = self.Valves(30            **{31                "CF_ACCOUNT_ID": os.getenv("CF_ACCOUNT_ID", ""),

A Python wrapper for Cloudflare WorkersAI that enables seamless integration with their REST API, allowing direct access to AI models through a simplified manifold pipeline pattern.

0
0

A Python wrapper for Cloudflare WorkersAI that enables seamless integration with their REST API, allowing direct access to AI models through a simplified manifold pipeline pattern.

0
0