Skip to content

jackeyzzz12138/ChatClaude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatClaude

Important

The software is still in beta, maybe some updates later.
you need to key in your own endpoint and api-key.

background

Because some third-party transporters use the old api format, not support new Claude api like v1/message. To use old post method like

# example
https:/xxx.xxx/v1/completions
Authorization: Bearer sk-...
{
    "model": "claude-3-opus-20240229",
    "max_tokens": 1024,
    "messages": [
        {"role": "user", "content": "Hello, world"}
    ]
}

No products compatible with this method were found for use Maybe.

usage

pip install -r requirements.txt
python app.py

TODO

  • streaming output.
  • save history.
  • support vercel and huggingface space.

About

A gradio frontend with Claude api support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages