Stentor Fetch Service provides a simple fetch wrapper with configurable timeouts for conversational AI applications. Version 1.72.4 is stable with a monthly release cadence. It depends on stentor-models for types and is designed for use in the Stentor framework. Unlike raw fetch or axios, it ensures requests timeout properly in voice/chat contexts where responsiveness is critical. Ships TypeScript types.
npm install stentor-service-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Extends FetchService to add a method with timeout and error handling for a weather API.
Always chain .then(response => response.json()) or use async/await.
Update to >=1.20.0 or import from the internal path.
Pass options with timeout when calling fetch: this.fetch(url, { timeout: 5000 })Create a class that extends FetchService and call this.fetch inside its methods.
Run npm install stentor-models.