update compose

This commit is contained in:
2026-04-22 19:52:18 +02:00
parent e3e85e4a44
commit a4515f0332
4 changed files with 19 additions and 15 deletions

26
.env
View File

@@ -1,24 +1,24 @@
# Required # Required
JELLYFIN_URL=http://localhost:8096 JELLYFIN_URL=http://jellyfin.internal
JELLYFIN_API_KEY= JELLYFIN_API_KEY=4e8416e25e404688a202fec082af21fc
JELLYFIN_USER_ID= JELLYFIN_USER_ID=182031712c9240eb91f571003f2d3ba5
TMDB_API_KEY= TMDB_API_KEY=ad49c6908213b3aae1788825df8a08d1
# LLM (disabled by default — works with Ollama, OpenAI, LM Studio, etc.) # LLM (disabled by default — works with Ollama, OpenAI, LM Studio, etc.)
LLM_ENABLED=false LLM_ENABLED=true
LLM_BASE_URL=http://localhost:11434/v1 LLM_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai
LLM_API_KEY= LLM_API_KEY=AIzaSyCPSXWsWw78n_Wn4GOXMAyruAz5-05gF3Q
LLM_MODEL=gpt-oss-4080 LLM_MODEL=gemini-2.5-flash
# Radarr (disabled by default) # Radarr (disabled by default)
RADARR_ENABLED=false RADARR_ENABLED=true
RADARR_URL=http://localhost:7878 RADARR_URL=http://radarr.internal
RADARR_API_KEY= RADARR_API_KEY=3f0e10ad239f4be5b33abcdf06f6e373
RADARR_QUALITY_PROFILE_ID=1 RADARR_QUALITY_PROFILE_ID=1
RADARR_ROOT_FOLDER=/movies RADARR_ROOT_FOLDER=/movies
# Cron auto-run (disabled by default) # Cron auto-run (disabled by default)
CRON_ENABLED=false CRON_ENABLED=true
CRON_SCHEDULE=0 3 * * * CRON_SCHEDULE=0 3 * * *
# HTTP API (enabled by default) # HTTP API (enabled by default)
@@ -26,5 +26,5 @@ API_ENABLED=true
API_PORT=8080 API_PORT=8080
# Tuning # Tuning
RECOMMEND_COUNT=10 RECOMMEND_COUNT=20
MIN_RATED_MOVIES=5 MIN_RATED_MOVIES=5

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.env

View File

@@ -23,4 +23,3 @@ services:
networks: networks:
media: media:
external: true

View File

@@ -70,7 +70,11 @@ func (c *LLMClient) Recommend(prompt string) ([]model.MovieSuggestion, error) {
defer resp.Body.Close() defer resp.Body.Close()
if resp.StatusCode != http.StatusOK { if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("llm returned status %d", resp.StatusCode) var chatResp interface{}
if err := json.NewDecoder(resp.Body).Decode(&chatResp); err != nil {
return nil, fmt.Errorf("decoding llm response: %w", err)
}
return nil, fmt.Errorf("llm returned status %d with body: %s", resp.StatusCode, chatResp)
} }
var chatResp chatResponse var chatResp chatResponse