[LIVE] [OshekharO/GPT-AI] 3 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,156 characters
Status: [LIVE]
Endpoints found:
https://gen.pollinations.ai
https://chat.freedomgpt.com
https://chataibot.ru
Source: https://github.com/OshekharO/GPT-AI
# GPT AI
A versatile Node.js server that integrates multiple chatbot APIs, offering a unified interface for various AI conversation models.
## 📚 Table of Contents
- [Features](#-features)
- [API Usage](#-api-usage)
- [Conversation Memory & System Prompts](#-conversation-memory--system-prompts)
- [Available Endpoints](#-available-endpoints)
- [Technologies](#-technologies)
- [Contributing](#-contributing)
- [License](#-license)
- [Contact](#-contact)
## 🌟 Features
- Seamless integration of multiple chatbot APIs (v1 to v15)
- **Built-in Conversation Memory Management:** Automatically maintains context across multi-turn chats using sliding window message trimming and token estimation without exceeding upstream limits
- **System Prompt Support:** Preserves `system` and `developer` instructions at the top of conversation context
- Built with Express.js for robust server-side operations
- Cross-Origin Resource Sharing (CORS) enabled for web application compatibility
- Straightforward error handling for improved debugging
## 🔧 API Usage
### Send a Single Message
Send a POST request to any `/chat/vN` endpoint with `userMessage`.
```bash
curl -X POST http://localhost:3000/chat/v1 \
-H "Content-Type: application/json" \
-d '{"userMessage": "Hello, how are you?"}'
```
Response:
```json
{
"reply": "Hello! I am ready to assist you. How can I help you today?"
}
```
## 🧠Conversation Memory & System Prompts
Endpoints support multi-turn conversation memory and system instructions by sending a `messages` array in the request body.
### Request Body with System Prompt & Multi-Turn History
```json
{
"messages": [
{
"role": "system",
"content": "You are a helpful coding assistant specialized in JavaScript."
},
{
"role": "user",
"content": "What is array destructuring in JS?"
},
{
"role": "assistant",
"content": "Array destructuring allows unpacking values from arrays into distinct variables."