touchtop / claude-api-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Claude-API-Server

Unofficial API for Claude 2. Run as a Ktor Server.

This is an unofficial project for Claude 2. It uses Ktor as the Http Client and server side, running on 127.0.0.1:8001 by default.

Routing

Please check out file Routing.kt in controller.plugins

  • /conversations
    • GET: get all conversations
    • POST: create a new conversation
  • /conversation-history/{uuid}
    • GET: get conversation history (message list) by conversation UUID
  • /conversation/{uuid}
    • POST: append a new chat message to conversation
    • DELETE: delete a conversation by UUID
  • /generate-conversation-title/{uuid}
    • POST not working yet

Cookie

Try to find it in your browser. I will not teach you how to do it.

Organization UUID

Try to find it in your browser. I will not teach you how to do it.

About


Languages

Language:Kotlin 97.0%Language:Shell 3.0%