58 lines
1.9 KiB
YAML
58 lines
1.9 KiB
YAML
---
|
|
# tasks file for matrixchatgptbot
|
|
- name: Create Matrix ChatGPT Bot namespace
|
|
k8s:
|
|
state: present
|
|
definition:
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: matrixchatgptbot
|
|
|
|
- name: Create a Deployment for Matrix ChatGPT Bot
|
|
k8s:
|
|
definition:
|
|
apiVersion: v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: matrixchatgptbot
|
|
namespace: matrixchatgptbot
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: matrixchatgptbot
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: matrixchatgptbot
|
|
spec:
|
|
containers:
|
|
- name: matrixchatgptbot
|
|
image: ericomeehan/matrixchatgptbot
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: HOMESERVER
|
|
value: https://synapse.eom.dev/
|
|
- name: USER_ID
|
|
value: "@localai:eom.dev"
|
|
- name: PASSWORD
|
|
value: "{{ localai_admin_password }}"
|
|
- name: DEVICE_ID
|
|
value: "MatrixChatGPTBot"
|
|
- name: ROOM_ID
|
|
value: "!SVlxBQRtoGTXOgcAzW:eom.dev"
|
|
- name: OPENAI_API_KEY
|
|
value: "{{ localai_api_keys[1] }}"
|
|
- name: GPT_API_ENDPOINT
|
|
value: https://localai.eom.dev/v1/chat/completions
|
|
- name: GPT_MODEL
|
|
value: falcon3-3b-instruct
|
|
- name: SYSTEM_PROMPT
|
|
value: "You are LocalAI, a large language model running on eom.dev. Respond conversationally."
|
|
- name: IMAGE_GENERATION_ENDPOINT
|
|
value: https://localai.eom.dev/v1/images/generations
|
|
- name: IMAGE_GENERATION_BACKEND
|
|
value: localai
|
|
|