@f5-sales-demo/pi-ai 19.105.4 → 19.105.7
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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@f5-sales-demo/pi-ai",
|
|
4
|
-
"version": "19.105.
|
|
4
|
+
"version": "19.105.7",
|
|
5
5
|
"description": "Unified LLM API with automatic model discovery and provider configuration",
|
|
6
6
|
"homepage": "https://github.com/f5-sales-demo/xcsh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@aws-sdk/client-bedrock-runtime": "^3",
|
|
46
46
|
"@bufbuild/protobuf": "^2.11",
|
|
47
47
|
"@google/genai": "^2.13",
|
|
48
|
-
"@f5-sales-demo/pi-utils": "19.105.
|
|
48
|
+
"@f5-sales-demo/pi-utils": "19.105.7",
|
|
49
49
|
"@sinclair/typebox": "^0.34",
|
|
50
50
|
"@smithy/node-http-handler": "^4.4",
|
|
51
51
|
"ajv": "^8.20",
|
|
@@ -6,7 +6,7 @@ export const CODEX_BASE_URL = "https://chatgpt.com/backend-api";
|
|
|
6
6
|
|
|
7
7
|
export const OPENAI_HEADERS = {
|
|
8
8
|
BETA: "OpenAI-Beta",
|
|
9
|
-
|
|
9
|
+
ACCOUNT_ID_HEADER: "chatgpt-account-id",
|
|
10
10
|
ORIGINATOR: "originator",
|
|
11
11
|
SESSION_ID: "session_id",
|
|
12
12
|
CONVERSATION_ID: "conversation_id",
|
|
@@ -1927,7 +1927,7 @@ function createCodexHeaders(
|
|
|
1927
1927
|
const headers = new Headers(initHeaders ?? {});
|
|
1928
1928
|
headers.delete("x-api-key");
|
|
1929
1929
|
headers.set("Authorization", `Bearer ${accessToken}`);
|
|
1930
|
-
headers.set(OPENAI_HEADERS.
|
|
1930
|
+
headers.set(OPENAI_HEADERS.ACCOUNT_ID_HEADER, accountId);
|
|
1931
1931
|
const betaHeader =
|
|
1932
1932
|
transport === "websocket"
|
|
1933
1933
|
? OPENAI_HEADER_VALUES.BETA_RESPONSES_WEBSOCKETS_V2
|
|
@@ -160,7 +160,7 @@ function buildCodexHeaders(options: CodexModelDiscoveryOptions): Headers {
|
|
|
160
160
|
const headers = new Headers(options.headers);
|
|
161
161
|
headers.set("Authorization", `Bearer ${options.accessToken}`);
|
|
162
162
|
if (options.accountId && options.accountId.trim().length > 0) {
|
|
163
|
-
headers.set(OPENAI_HEADERS.
|
|
163
|
+
headers.set(OPENAI_HEADERS.ACCOUNT_ID_HEADER, options.accountId);
|
|
164
164
|
}
|
|
165
165
|
headers.set(OPENAI_HEADERS.BETA, OPENAI_HEADER_VALUES.BETA_RESPONSES);
|
|
166
166
|
headers.set(OPENAI_HEADERS.ORIGINATOR, OPENAI_HEADER_VALUES.ORIGINATOR_CODEX);
|
package/src/utils/oauth/kagi.ts
CHANGED
|
@@ -26,7 +26,7 @@ export async function loginKagi(options: OAuthController): Promise<string> {
|
|
|
26
26
|
options.onAuth?.({
|
|
27
27
|
url: AUTH_URL,
|
|
28
28
|
instructions:
|
|
29
|
-
"Copy your Kagi Search API key from Kagi API settings. Search API access is beta-only; if unavailable, email support
|
|
29
|
+
"Copy your Kagi Search API key from Kagi API settings. Search API access is beta-only; if unavailable, email Kagi support.",
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
const apiKey = await options.onPrompt({
|