LangChain integration for FreelanceFlow - Smart AI model routing across 21+ models with cost tracking
Project description
LangChain FreelanceFlow Integration
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_freelanceflow-0.1.1.tar.gz.
File metadata
- Download URL: langchain_freelanceflow-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95bf2ad065d89be21f714bced119323178642d762ad676b3f726fa987a193968
|
|
| MD5 |
2c8112d6a5da36e3b0f9831c5bf82458
|
|
| BLAKE2b-256 |
6eba84f2261a4ad748a133ddb99e7b90e6f2a627b8e138f7b357c8edd4989591
|
File details
Details for the file langchain_freelanceflow-0.1.1-py3-none-any.whl.
File metadata
- Download URL: langchain_freelanceflow-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae49a198059c517d00abbf8c5457f38fad595b404de251d8493859897af36c66
|
|
| MD5 |
2ad11a06eada9f2860cec97fffbe036b
|
|
| BLAKE2b-256 |
4668c88f61cade77a34bd2b4478d2d30e4194362aaa28b5ef8eead42f94a3b32
|