@upstash/qstash 2.6.2 → 2.6.4-workflow-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,30 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/client/llm/providers.ts
2
+ var upstash = () => {
3
+ return {
4
+ owner: "upstash",
5
+ baseUrl: "https://qstash.upstash.io/llm",
6
+ token: ""
7
+ };
8
+ };
9
+ var openai = ({
10
+ token
11
+ }) => {
12
+ return { token, owner: "openai", baseUrl: "https://api.openai.com" };
13
+ };
14
+ var custom = ({
15
+ baseUrl,
16
+ token
17
+ }) => {
18
+ const trimmedBaseUrl = baseUrl.replace(/\/(v1\/)?chat\/completions$/, "");
19
+ return {
20
+ token,
21
+ owner: "custom",
22
+ baseUrl: trimmedBaseUrl
23
+ };
24
+ };
25
+
26
+
27
+
28
+
29
+
30
+ exports.upstash = upstash; exports.openai = openai; exports.custom = custom;