@mate-academy/llm-gateway 8.8.4 → 8.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/README.md +11 -6
  2. package/dist/LLMService.constants.d.ts +11854 -4248
  3. package/dist/LLMService.typedefs.d.ts +1 -0
  4. package/dist/LLMService.typedefs.js.map +1 -1
  5. package/dist/providers/LLMAPI/LLMAPI.constants.d.ts +20581 -8909
  6. package/dist/providers/LLMAPI/LLMAPI.constants.js +2654 -655
  7. package/dist/providers/LLMAPI/LLMAPI.constants.js.map +1 -1
  8. package/dist/providers/LLMAPI/LLMAPI.typedefs.d.ts +163 -19
  9. package/dist/providers/LLMAPI/LLMAPI.typedefs.js +179 -18
  10. package/dist/providers/LLMAPI/LLMAPI.typedefs.js.map +1 -1
  11. package/dist/providers/LLMAPI/LLMAPI.voices.d.ts +14 -0
  12. package/dist/providers/LLMAPI/LLMAPI.voices.js +30 -7
  13. package/dist/providers/LLMAPI/LLMAPI.voices.js.map +1 -1
  14. package/dist/providers/LLMAPI/services/LLMAPISpeechToText.service.d.ts +2 -2
  15. package/dist/providers/LLMAPI/services/LLMAPISpeechToText.service.js +4 -3
  16. package/dist/providers/LLMAPI/services/LLMAPISpeechToText.service.js.map +1 -1
  17. package/dist/providers/OpenAI/services/OpenAISpeechToText.service.d.ts +1 -1
  18. package/dist/providers/OpenAI/services/OpenAISpeechToText.service.js +1 -1
  19. package/dist/providers/OpenAI/services/OpenAISpeechToText.service.js.map +1 -1
  20. package/dist/providers/OpenAICompatible/OpenAICompatibleSpeechToText.service.d.ts +1 -1
  21. package/dist/providers/OpenAICompatible/OpenAICompatibleSpeechToText.service.js +1 -1
  22. package/dist/providers/OpenAICompatible/OpenAICompatibleSpeechToText.service.js.map +1 -1
  23. package/dist/utilities/audio.d.ts +1 -0
  24. package/dist/utilities/audio.js +12 -0
  25. package/dist/utilities/audio.js.map +1 -0
  26. package/package.json +1 -1
package/README.md CHANGED
@@ -2113,15 +2113,20 @@ describe('Custom LLM Integration Test', () => {
2113
2113
  The `LLMAPIModelNames` enum and `LLMAPI_AVAILABLE_MODELS` map drift as
2114
2114
  LLMAPI adds/renames models. The pipeline in
2115
2115
  [`scripts/sync-llmapi-models/`](scripts/sync-llmapi-models/README.md)
2116
- reconciles them against `GET https://api.llmapi.ai/v1/models` under these
2117
- rules:
2116
+ reconciles them against `GET https://api.llmapi.ai/v1/models` and the audio
2117
+ catalog at `GET https://api.llmapi.ai/audio-models` under these rules:
2118
2118
 
2119
2119
  - Unscoped aliases are always present; scoped aliases (`openai/…`, `azure/…`,
2120
2120
  `nebius/…`) only when LLMAPI advertises 2+ providers for that model.
2121
- - Existing entries are never modified the pipeline only appends new
2122
- entries and removes stale ones.
2123
- - `maxOutputTokens` (the one field absent from the LLMAPI payload) is
2124
- researched from provider docs via web-search sub-agents.
2121
+ - Existing hand-tuned limits, capabilities, regular pricing, and configuration
2122
+ are preserved. Cached input prices are refreshed from LLMAPI for every
2123
+ existing and new route, including provider-specific overrides.
2124
+ - `maxOutputTokens` and any missing `maxInputTokens` are researched from
2125
+ provider docs via web-search sub-agents.
2126
+ - TTS/STT limits and pricing, batch/streaming STT classification,
2127
+ purpose-specific model maps, and default voice mappings are refreshed from
2128
+ the audio catalog. Streaming-only STT models are exported separately and are
2129
+ not exposed through the file-based `SpeechToText` service.
2125
2130
 
2126
2131
  See the linked README for the full classify → research → apply workflow.
2127
2132