mirror of
https://github.com/FJurmanovic/sugarr.git
synced 2026-11-11 07:41:08 +00:00
add langfuse url to server starting
This commit is contained in:
@@ -32,10 +32,19 @@ async function main(): Promise<void> {
|
||||
const promptService = new PromptService(promptGateway, config.LANGFUSE_PROMPT_CACHE_ENABLED);
|
||||
const llmClient = new LlmClient({ baseUrl: config.LLM_BASE_URL, apiKey: config.LLM_API_KEY });
|
||||
|
||||
const jellyfin = new JellyfinClient(config.JELLYFIN_URL, config.JELLYFIN_API_KEY, config.JELLYFIN_USER_ID);
|
||||
const jellyfin = new JellyfinClient(
|
||||
config.JELLYFIN_URL,
|
||||
config.JELLYFIN_API_KEY,
|
||||
config.JELLYFIN_USER_ID
|
||||
);
|
||||
const tmdb = new TmdbClient(config.TMDB_API_KEY);
|
||||
const radarr = config.RADARR_ENABLED
|
||||
? new RadarrClient(config.RADARR_URL, config.RADARR_API_KEY, config.RADARR_QUALITY_PROFILE_ID, config.RADARR_ROOT_FOLDER)
|
||||
? new RadarrClient(
|
||||
config.RADARR_URL,
|
||||
config.RADARR_API_KEY,
|
||||
config.RADARR_QUALITY_PROFILE_ID,
|
||||
config.RADARR_ROOT_FOLDER
|
||||
)
|
||||
: undefined;
|
||||
|
||||
const recommenderTool = new MovieRecommenderTool(promptService, llmClient, config.LLM_MODEL);
|
||||
@@ -58,6 +67,7 @@ async function main(): Promise<void> {
|
||||
radarrEnabled: config.RADARR_ENABLED,
|
||||
cronEnabled: config.CRON_ENABLED,
|
||||
apiEnabled: config.API_ENABLED,
|
||||
langfuse: config.LANGFUSE_BASE_URL,
|
||||
},
|
||||
'sugarr starting'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user