Skip to content

aisbreaker-api-js - v0.1.15 / base/ServiceUrlUtils

Module: base/ServiceUrlUtils

Table of contents

Functions

Functions

getServiceUrl

getServiceUrl(url, engine, serviceDefaults): string | undefined

Derive the service URL.

Details on: https://aisbreaker.org/docs/url

Parameters

NameTypeDescription
urlundefined | stringThe (base) URL specified in AIsServiceProps.
engineundefined | stringThe engine derived form serviceId
serviceDefaultsAIsServiceDefaults

Returns

string | undefined

The URL to access the actual AI service.

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/base/ServiceUrlUtils.ts:17

Released under the MIT License.