Dockerizing the app (WIP)

This commit is contained in:
2025-12-09 16:12:58 +01:00
parent da3d6f123d
commit 52d568e924
10 changed files with 370 additions and 0 deletions

4
librechat/Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM ghcr.io/danny-avila/librechat:latest
COPY librechat.yaml /app/librechat.yaml
COPY librechat_providers.js /app/librechat_providers.js

110
librechat/librechat.yaml Normal file
View File

@@ -0,0 +1,110 @@
# For more information, see the Configuration Guide:
# https://www.librechat.ai/docs/configuration/librechat_yaml
version: 1.2.1
cache: true
endpoints:
custom:
# Deepseek
- name: "Deepseek"
apiKey: "${DEEPSEEK_API_KEY}"
baseURL: "https://api.deepseek.com/v1"
models:
default: ["deepseek-chat", "deepseek-coder", "deepseek-reasoner"]
fetch: false
titleConvo: true
titleModel: "deepseek-chat"
modelDisplayLabel: "Deepseek"
streamRate: 1
tools:
- toolName: media_finder
pluginKey: "media_finder_key"
manifest:
schema:
type: openapi
url: "http://agent-brain:8000/manifests/find_media_imdb_id.json"
auth:
type: none
# Outil 2: find_torrent
- toolName: torrent_search
pluginKey: "torrent_search_key"
manifest:
schema:
type: openapi
url: "http://agent-brain:8000/manifests/find_torrent.json"
auth:
type: none
# Outil 3: add_torrent_by_index
- toolName: torrent_downloader
pluginKey: "torrent_downloader_key"
manifest:
schema:
type: openapi
url: "http://agent-brain:8000/manifests/add_torrent_by_index.json"
auth:
type: none
# Outil 4: set_language
- toolName: lang_setter
pluginKey: "lang_setter_key"
manifest:
schema:
type: openapi
url: "http://agent-brain:8000/manifests/set_language.json"
auth:
type: none
# Backend Local Agent
- name: "Local Agent"
apiKey: "dummy_key"
baseURL: "http://host.docker.internal:8000/v1"
models:
default: ["local-deepseek-agent"]
fetch: false
titleConvo: false
titleModel: "current_model"
forcePrompt: true
modelDisplayLabel: "Local Agent"
streamRate: 1
tools:
- toolName: media_finder
pluginKey: "media_finder_key"
manifest:
schema:
type: openapi
url: "http://agent-brain:8000/manifests/find_media_imdb_id.json"
auth:
type: none
# Outil 2: find_torrent
- toolName: torrent_search
pluginKey: "torrent_search_key"
manifest:
schema:
type: openapi
url: "http://agent-brain:8000/manifests/find_torrent.json"
auth:
type: none
# Outil 3: add_torrent_by_index
- toolName: torrent_downloader
pluginKey: "torrent_downloader_key"
manifest:
schema:
type: openapi
url: "http://agent-brain:8000/manifests/add_torrent_by_index.json"
auth:
type: none
# Outil 4: set_language
- toolName: lang_setter
pluginKey: "lang_setter_key"
manifest:
schema:
type: openapi
url: "http://agent-brain:8000/manifests/set_language.json"
auth:
type: none

View File

@@ -0,0 +1,10 @@
[
{
"name": "LocalAgent",
"type": "openai",
"baseURL": "http://host.docker.internal:8000",
"apiKey": "sk-8b00d72c417740ea96efd9c3eeddd148",
"model": "local-deepseek-agent",
"custom": true
}
]