claude2openai

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 11 Imported by: 0

README

Claude2OpenAI

This project is used to convert the Claude API to OpenAI compatible API.

Compatibility

Currently it is only compatible with the Claude-3 family of models, if you pass in any other model, the default will be to use claude-3-haiku-20240307.

Usage

Docker
docker run -d --restart always -p 6600:6600 ghcr.io/missuo/claude2openai:latest
docker run -d --restart always -p 6600:6600 missuo/claude2openai:latest
Docker Compose
mkdir claude2openai && cd claude2openai
wget -O compose.yaml https://raw.githubusercontent.com/missuo/claude2openai/main/compose.yaml
docker compose up -d
Manual

Download the latest release from the release page.

chmod +x claude2openai
./claude2openai

Documentation

Overview

* @Author: Vincent Yang * @Date: 2024-03-29 23:11:29 * @LastEditors: Vincent Yang * @LastEditTime: 2024-03-30 00:00:44 * @FilePath: /claude2openai/types.go * @Telegram: https://t.me/missuo * @GitHub: https://github.com/missuo * * Copyright © 2024 by Vincent, All Rights Reserved.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL