source method

dynamic source()

The bridge's source: the model directory, or the endpoint with its model and key.

Implementation

TextSource source() => kind == PlaygroundSourceKind.local
    ? TextSource(modelDir: modelDir, provider: provider)
    : TextSource(
        provider: provider,
        baseUrl: baseUrl,
        model: model.isEmpty ? null : model,
        apiKey: apiKey.isEmpty ? null : apiKey,
      );