OpenPipe/OpenPipe

★ 2,830⑂ 177

Turn expensive prompts into cheap fine-tuned models

About OpenPipe/OpenPipe

OpenPipe/OpenPipe is an open-source project on GitHub, mainly written in TypeScript. Turn expensive prompts into cheap fine-tuned models It currently holds 2,830 stars and 177 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Prompt Engineering board.

GitHub Repository Details

Repository OpenPipe/OpenPipe · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Note: we’ve temporarily stopped development on the open-source version of OpenPipe to integrate some proprietary third-party code. We hope to make the non-proprietary parts of the repository open again under an open core model once we have the bandwidth to do so!

https://github.com/OpenPipe/OpenPipe/blob/HEAD/logo

OpenPipe

Open-source fine-tuning and model-hosting platform.

https://github.com/OpenPipe/OpenPipe/blob/HEAD/License Apache-2.0 https://github.com/OpenPipe/OpenPipe/blob/HEAD/GitHub commit activity https://github.com/OpenPipe/OpenPipe/blob/HEAD/GitHub closed issues https://github.com/OpenPipe/OpenPipe/blob/HEAD/Y Combinator S23

Demo - Running Locally - Docs


Use powerful but expensive LLMs to fine-tune smaller and cheaper models suited to your exact needs. Query your past requests and evaluate models against one another. Switch between OpenAI and fine-tuned models with one line of code.

Features

Supported Base Models

Documentation

Running Locally

1. Install Postgresql. 2. Install NodeJS 20 (earlier versions will very likely work but aren't tested). 3. Install pnpm: npm i -g pnpm 4. Clone this repository: git clone https://github.com/openpipe/openpipe 5. Install the dependencies: cd openpipe && pnpm install 6. Create a .env file (cd app && cp .env.example .env) and enter your OPENAI_API_KEY. 7. If you just installed postgres and wish to use the default DATABASE_URL run the following commands:

psql postgres
CREATE ROLE postgres WITH LOGIN PASSWORD 'postgres';
ALTER ROLE postgres SUPERUSER;

8. Update DATABASE_URL if necessary to point to your Postgres instance and run pnpm prisma migrate dev in the app directory to create the database. 9. Create a GitHub OAuth App, set the callback URL to /api/auth/callback/github, e.g. http://localhost:3000/api/auth/callback/github. 10. Update the GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET values from the Github OAuth app (Note: a PR to make auth optional when running locally would be a great contribution!). 11. To start the app run pnpm dev in the app directory. 12. Navigate to http://localhost:3000

Using Locally

import os
from openpipe import OpenAI

client = OpenAI( api_key="Your API Key", openpipe={ "api_key": "Your OpenPipe API Key", "base_url": "http://localhost:3000/api/v1", # Local OpenPipe instance } )

completion = client.chat.completions.create( model="gpt-3.5-turbo", messages=[{"role": "system", "content": "count to 10"}], openpipe={ "tags": {"prompt_id": "counting"}, "log_request": True }, )

Testing Locally

1. Copy your .env file to .env.test. 2. Update the DATABASE_URL to have a different database name than your development one 3. Run DATABASE_URL=[your new datatase url] pnpm prisma migrate dev --skip-seed --skip-generate 4. Run pnpm test

GitHub Stars & Activity

2,830Stars
177Forks
0Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars2,830
Forks177
Open issues0
Primary languageTypeScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

linshenkx / prompt-optimizer

TypeScript★ 35,188⑂ 4,108
2

langfuse / langfuse

TypeScript★ 34,845⑂ 3,816
3

humanlayer / 12-factor-agents

TypeScript★ 26,308⑂ 1,977
4

promptfoo / promptfoo

TypeScript★ 25,303⑂ 2,344
5
6

cobusgreyling / loop-engineering

TypeScript★ 11,263⑂ 1,512
7

YouMind-OpenLab / awesome-gpt-image-2

TypeScript★ 9,919⑂ 880
8

rockbenben / ChatGPT-Shortcut

TypeScript★ 8,771⑂ 957

More AI Rankings