AI Personal Learning
and practical guidance

notdiamond2api: Reverse Not Diamond API interface service for multiple AI models, with support for multi-account polling and automated management

General Introduction

notdiamond2api is a Flask-based chat proxy service designed to forward requests to the chat.notdiamond.ai server. The project is available inoriginal authornotdiamond2api supports mapping processing of multiple AI models, including GPT-4, Claude-3.5, Gemini-1.5, etc. It is compatible with the OpenAI API format, and supports the Docker Compose deployment. Users can quickly start and use the service with simple configuration and commands.

 

Function List

  • Supports mapping processing of multiple AI models
  • Handling streaming and non-streaming responses
  • Compatible with OpenAI API formats
  • Support for Docker Compose Deployment
  • Automatic login and cookie management
  • Token Failure auto refresh
  • One-click, hassle-free deployment startup
  • Supports multi-account polling

 

Using Help

Installation process

  1. downloading docker-compose.yml Documentation:
    wget https://raw.githubusercontent.com/Jiabinone/notdiamond2api/main/docker-compose.yml

or using curl Command:

curl -O https://raw.githubusercontent.com/Jiabinone/notdiamond2api/main/docker-compose.yml
  1. Set the Docker environment variables and configure the boot port:
    • AUTH_EMAIL: Your login email.
    • AUTH_PASSWORD: Your login password.
    • PORTThe default is 3000. To change this, add the following command to the docker-compose.yml modifications ports The first item of the mapping settings.
    • AUTH_ENABLED: Whether or not authentication is enabled.
    • AUTH_TOKEN: The identity token used.
  2. Start the service using Docker Compose:
    docker-compose up -d && docker-compose logs -f
    

    The service will run on the http://localhost:3000The

Usage Functions

  1. Get a list of available models:
    GET /v1/models
    

    Returns a list of supported models.

  2. Send a chat completion request:
    POST /v1/chat/completions
    

    Send a chat request and get a response.

Featured Functions

  • multi-account polling: Supports polled usage of multiple accounts to ensure high availability of services.
  • Automatic Cookie Management: Automatically handles login and cookie management, reducing the operational burden on users.
  • Token Failure Auto Refresh: Automatically refreshes the Token when it expires, ensuring continuity of service.

 

Cloudflare workers deployment

Chief AI Sharing CircleThis content has been hidden by the author, please enter the verification code to view the content
Captcha:
Please pay attention to this site WeChat public number, reply "CAPTCHA, a type of challenge-response test (computing)", get the verification code. Search in WeChat for "Chief AI Sharing Circle"or"Looks-AI"or WeChat scanning the right side of the QR code can be concerned about this site WeChat public number.

AI Easy Learning

The layman's guide to getting started with AI

Help you learn how to utilize AI tools at a low cost and from a zero base.AI, like office software, is an essential skill for everyone. Mastering AI will give you an edge in your job search and half the effort in your future work and studies.

View Details>
May not be reproduced without permission:Chief AI Sharing Circle " notdiamond2api: Reverse Not Diamond API interface service for multiple AI models, with support for multi-account polling and automated management

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish