Skip to content

ilkersigirci/podflix

Repository files navigation

Lint status Supported Python versions Docs License

Description

  • Langfuse credentials:

  • Chainlit credentials:

    • username: admin
    • password: admin
  • To change db backend from sqlite to postgresql: Change the DATABASES configuration .env file

SQLALCHEMY_DB_TYPE=postgres
POSTGRES_DB=your_db_name
POSTGRES_HOST=localhost
POSTGRES_PASSWORD=your_password
POSTGRES_PORT=5432
POSTGRES_USER=your_username

Healthchecks

  • Assuming DOMAIN_NAME=localhost

Openai like model api

  • Request with system message assuming MODEL_NAME=qwen2-0_5b-instruct-fp16.gguf
curl --request POST \
    --url https://llamacpp.localhost/v1/chat/completions \
    --header "Content-Type: application/json" \
    --data '{
  "model": "qwen2-0_5b-instruct-fp16.gguf",
  "messages": [
  {
      "role": "system",
      "content": "You are a helpful virtual assistant trained by OpenAI."
  },
  {
    "role": "user",
    "content": "Who are you?"
  }
  ],
  "temperature": 0.8,
  "stream": false
}'
  • Request without system message assuming MODEL_NAME=qwen2-0_5b-instruct-fp16.gguf
curl --request POST \
 --url https://llamacpp.localhost/v1/chat/completions \
    --header "Content-Type: application/json" \
    --data '{
  "model": "qwen2-0_5b-instruct-fp16.gguf",
  "messages": [
  {
    "role": "user",
    "content": "Who are you?"
  }
  ],
  "temperature": 0.8,
  "stream": false
}'