Commit Graph

5 Commits

Author SHA1 Message Date
Developer
da8c925e8e feat(config): add centralized API endpoint configuration
Add src/config/api-endpoints.ts with ENV variable support for all external API base URLs.
This enables routing traffic through a proxy for multi-tenant deployments, usage metering, and security filtering.

Supported ENV variables:
- TELEGRAM_API_BASE (default: https://api.telegram.org)
- DISCORD_API_BASE (default: https://discord.com/api/v10)
- OPENAI_API_BASE (default: https://api.openai.com/v1)
- ANTHROPIC_API_BASE (default: https://api.anthropic.com)
- GOOGLE_GENERATIVE_API_BASE (default: https://generativelanguage.googleapis.com/v1beta)
- GROQ_API_BASE (default: https://api.groq.com/openai/v1)
- DEEPGRAM_API_BASE (default: https://api.deepgram.com/v1)
- ELEVENLABS_API_BASE (default: https://api.elevenlabs.io)
- OPENAI_TTS_BASE_URL (default: same as OPENAI_API_BASE)

Updated files to use centralized configuration:
- telegram/audit.ts, probe.ts, download.ts, bot/delivery.ts
- channels/plugins/onboarding/telegram.ts
- discord/api.ts, probe.ts
- tts/tts.ts
- memory/embeddings-openai.ts, embeddings-gemini.ts
- media-understanding/providers/openai/audio.ts
- media-understanding/providers/google/audio.ts, video.ts
- media-understanding/providers/deepgram/audio.ts
- media-understanding/providers/groq/index.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 06:43:27 +01:00
Peter Steinberger
a5adedea91 refactor: add aws-sdk auth mode and tighten provider auth 2026-01-20 08:28:40 +00:00
Peter Steinberger
50fdd514ae refactor(logging): split config + subsystem imports 2026-01-19 00:15:44 +00:00
Gustavo Madeira Santana
acb523de86 CLI: streamline startup paths and env parsing
Add shared parseBooleanValue()/isTruthyEnvValue() and apply across CLI, gateway, memory, and live-test flags for consistent env handling.
Introduce route-first fast paths, lazy subcommand registration, and deferred plugin loading to reduce CLI startup overhead.
Centralize config validation via ensureConfigReady() and add config caching/deferred shell env fallback for fewer IO passes.
Harden logger initialization/imports and add focused tests for argv, boolean parsing, frontmatter, and CLI subcommands.
2026-01-18 23:10:39 +00:00
Peter Steinberger
be7191879a feat(memory): add gemini embeddings + auto select providers
Co-authored-by: Gustavo Madeira Santana <gumadeiras@gmail.com>
2026-01-18 16:12:10 +00:00