Skip to content

Commit e7eb298

Browse files
Allow overriding the base URL in the javascript Navigator SDK (#445)
1 parent 3fb37ad commit e7eb298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/navigator_api/js/streaming_navigator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const DEFAULT_HYPERPARAMS = {
88
top_p: 0.9,
99
};
1010

11-
const BASE_URL = "https://api.gretel.cloud/";
11+
const BASE_URL = process.env.GRETEL_BASE_URL || "https://api.gretel.cloud/";
1212

1313
///////////////////////////////////////////////
1414
// Generates structured data given a prompt //

0 commit comments

Comments
 (0)