We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99f003e + 1eae30f commit 7802707Copy full SHA for 7802707
lib/src/core/builder/base_api_url.dart
@@ -5,14 +5,12 @@ import '../constants/config.dart';
5
@immutable
6
@internal
7
abstract class BaseApiUrlBuilder {
8
- static final String _baseUrl = OpenAIConfig.baseUrl;
9
- static final String _version = OpenAIConfig.version;
10
11
/// This is used to build the API url for all the requests, it will return a [String].
12
/// if an [id] is provided, it will be added to the url as well.
13
14
static String build(String endpoint, [String? id, String? query]) {
15
- String apiLink = "$_baseUrl/$_version$endpoint";
+ String apiLink = "${OpenAIConfig.baseUrl}/${OpenAIConfig.version}$endpoint";
16
if (id != null) {
17
apiLink += "/$id";
18
}
0 commit comments