@huaweidevtools/aishell-dsh-llm 0.0.6 → 0.0.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/README.md +1 -1
- package/lib/index.js +1 -1
- package/lib/types/adapter.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ dsh plugin --profile <name> add @huaweidevtools/aishell-dsh-base
|
|
|
70
70
|
|
|
71
71
|
| Field | Type | Default | Description |
|
|
72
72
|
|---|---|---|---|
|
|
73
|
-
| `baseUrl` | `string?` | `https://
|
|
73
|
+
| `baseUrl` | `string?` | `https://openai.aishell.openbuildlab.com/v1` | Chat API base URL. `/chat/completions` and `/models` are appended, so a base carrying its own path segment is signed and requested in full. |
|
|
74
74
|
| `keyringService` | `string?` | `aishell-dsh` | Credential store service name. |
|
|
75
75
|
| `requestImagePixelBudget` | `number?` | `4194304` | Total-pixel cap one request image is scaled into. |
|
|
76
76
|
| `requestImageMaxBytes` | `number?` | `1048576` | Encoded-byte target for one request image. |
|
package/lib/index.js
CHANGED
|
@@ -1658,7 +1658,7 @@ GatewayAdapter.MODELS_TTL_MS = 6e4;
|
|
|
1658
1658
|
//#endregion
|
|
1659
1659
|
//#region src/index.ts
|
|
1660
1660
|
/** Default chat API base URL. Both `/chat/completions` and `/models` hang below `/v1`. */
|
|
1661
|
-
const DEFAULT_BASE_URL = "https://
|
|
1661
|
+
const DEFAULT_BASE_URL = "https://openai.aishell.openbuildlab.com/v1";
|
|
1662
1662
|
/**
|
|
1663
1663
|
* Default total-pixel cap one request image is scaled into, and the encoded
|
|
1664
1664
|
* byte target the encoder aims for. Both match the pi-ai defaults, for the
|
package/lib/types/adapter.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { type ImageRequestBudget } from './images.ts';
|
|
|
16
16
|
/** Adapter construction options. */
|
|
17
17
|
export interface GatewayAdapterOptions {
|
|
18
18
|
/**
|
|
19
|
-
* Resolve the current chat API base URL (e.g. `https://
|
|
19
|
+
* Resolve the current chat API base URL (e.g. `https://openai.aishell.openbuildlab.com/v1`).
|
|
20
20
|
*
|
|
21
21
|
* A reader, not a value, for the same reason `resolveAttachments` is: this
|
|
22
22
|
* plugin's whole Config is `Volatile`, so a settings edit is a
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaweidevtools/aishell-dsh-llm",
|
|
3
3
|
"description": "aishell LLM gateway adapter for DSH — OpenAI-compatible, Huawei Cloud AK/SK auth via credential store",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"eventsource-parser": "^3.0.0",
|
|
36
|
-
"@huaweidevtools/aishell-dsh-credentials-store": "0.0.
|
|
36
|
+
"@huaweidevtools/aishell-dsh-credentials-store": "0.0.7"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@deepseek-ai/cordis": "^4.0.4",
|