Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example service using fastapi and chatgpt

build and run

  • build the image

$ sudo docker build -t chattybird .

  • run the container

$ sudo docker run -p 8000:8000 chattybird

  • send a message

$ curl --header "Content-Type: application/json" --request POST --data '{"message":"hi!"}' http://localhost:8000/api/messages/

{"message":"hi!","id":2,"response":"Hello there! How are you doing today?"}

  • receive all conversation messages $ TODO

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages