Skip to main content

LangChain FreelanceFlow Integration

PyPI version

LangChain-compatible LLM that routes prompts through FreelanceFlow's intelligent router.

Features

  • 🚀 Smart Routing - Auto-selects best model for cost, speed, or quality
  • 💰 Cost Tracking - Every call tracked automatically
  • 🛡️ Budget Protection - Kill switch prevents cost overruns
  • 🔧 5 LangChain Tools - Compare models, generate images, review code, RAG search, translate
  • 📊 21+ Models - Groq, Google, and more

Installation

ash pip install langchain-freelanceflow

Quick Start

python from langchain_freelanceflow import FreelanceFlowRouter

llm = FreelanceFlowRouter(api_key="your_key", preference="speed") response = llm.invoke("What is machine learning?") print(f"Model: {llm.last_model} | Cost: ")

LangChain Tools

python from langchain_freelanceflow import compare_models, generate_image, review_code

Compare models

result = compare_models.invoke({"prompt": "Explain AI", "api_key": "your_key"})

Generate image

result = generate_image.invoke({"prompt": "A sunset over mountains", "api_key": "your_key"})

Review code

result = review_code.invoke({"code": "def add(): pass", "language": "python", "api_key": "your_key"})

Documentation

Full docs: https://ai-api.usefreelanceflow.com/docs

Metadata

Release files for langchain-freelanceflow 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-freelanceflow 0.1.1
File Size Uploaded
langchain_freelanceflow-0.1.1.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-freelanceflow 0.1.1
File Interpreter ABI Platform
langchain_freelanceflow-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / langchain_freelanceflow-0.1.1.tar.gz

Download URL langchain_freelanceflow-0.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
95bf2ad065d89be21f714bced119323178642d762ad676b3f726fa987a193968
BLAKE2b-256 checksum
How to use checksums
6eba84f2261a4ad748a133ddb99e7b90e6f2a627b8e138f7b357c8edd4989591
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / langchain_freelanceflow-0.1.1-py3-none-any.whl

Download URL langchain_freelanceflow-0.1.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae49a198059c517d00abbf8c5457f38fad595b404de251d8493859897af36c66
BLAKE2b-256 checksum
How to use checksums
4668c88f61cade77a34bd2b4478d2d30e4194362aaa28b5ef8eead42f94a3b32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page