hnishi / llm-api-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

llm-api-server

Install packages

pipenv install

Run the app

pipenv run start

サーバー起動後に以下のページから API documents を参照できる。

Call the API

Request

curl -X 'POST' \
  'http://0.0.0.0:8000/question' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "こんにちは"
}'

Response

{
  "text": "こんにちは!お元気ですか?何かお手伝いできることはありますか?"
}

参考

About

License:MIT License


Languages

Language:Python 100.0%