@open-mercato/shared 0.6.1-develop.3246.1.dbef9d7392 → 0.6.1-develop.3256.1.fe3dec2464
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/dist/lib/version.js
CHANGED
package/dist/lib/version.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/lib/version.ts"],
|
|
4
|
-
"sourcesContent": ["// Build-time generated version\nexport const APP_VERSION = '0.6.1-develop.
|
|
4
|
+
"sourcesContent": ["// Build-time generated version\nexport const APP_VERSION = '0.6.1-develop.3256.1.fe3dec2464'\nexport const appVersion = APP_VERSION\n"],
|
|
5
5
|
"mappings": "AACO,MAAM,cAAc;AACpB,MAAM,aAAa;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/shared",
|
|
3
|
-
"version": "0.6.1-develop.
|
|
3
|
+
"version": "0.6.1-develop.3256.1.fe3dec2464",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@mikro-orm/core": "^7.0.15",
|
|
93
93
|
"@mikro-orm/decorators": "^7.0.15",
|
|
94
94
|
"@mikro-orm/postgresql": "^7.0.15",
|
|
95
|
-
"@open-mercato/cache": "0.6.1-develop.
|
|
95
|
+
"@open-mercato/cache": "0.6.1-develop.3256.1.fe3dec2464",
|
|
96
96
|
"dotenv": "^17.4.2",
|
|
97
97
|
"rate-limiter-flexible": "^11.1.0",
|
|
98
98
|
"reflect-metadata": "^0.2.2",
|
|
@@ -21,7 +21,7 @@ export type EnvLookup = Record<string, string | undefined>
|
|
|
21
21
|
* Metadata describing a single model available in an LLM provider.
|
|
22
22
|
*
|
|
23
23
|
* Used by the AI Assistant UI to populate model dropdowns and by the
|
|
24
|
-
* routing layer to pick defaults when `
|
|
24
|
+
* routing layer to pick defaults when `OM_AI_MODEL` is not set.
|
|
25
25
|
*/
|
|
26
26
|
export interface LlmModelInfo {
|
|
27
27
|
/**
|
|
@@ -56,9 +56,10 @@ export interface LlmCreateModelOptions {
|
|
|
56
56
|
/** Resolved API key for the provider. */
|
|
57
57
|
apiKey: string
|
|
58
58
|
/**
|
|
59
|
-
* Optional override for
|
|
60
|
-
*
|
|
61
|
-
*
|
|
59
|
+
* Optional override for the upstream base URL. Every OpenAI-compatible
|
|
60
|
+
* adapter MUST honor baseURL; Anthropic now also honors it (Messages-
|
|
61
|
+
* protocol relays only — Cloudflare AI Gateway in Anthropic mode, Helicone
|
|
62
|
+
* proxy); Google honors it when the SDK supports it (@ai-sdk/google ≥3.0).
|
|
62
63
|
*/
|
|
63
64
|
baseURL?: string
|
|
64
65
|
}
|
|
@@ -76,8 +77,8 @@ export interface LlmProvider {
|
|
|
76
77
|
/**
|
|
77
78
|
* Stable identifier used in configuration, env vars, and the registry.
|
|
78
79
|
* MUST be lowercase snake_case or kebab-case (e.g. `anthropic`, `deepinfra`,
|
|
79
|
-
* `openai`, `internal-litellm`). The `
|
|
80
|
-
*
|
|
80
|
+
* `openai`, `internal-litellm`). The `OM_AI_PROVIDER` env var resolves to
|
|
81
|
+
* this value; the legacy `OPENCODE_PROVIDER` env var is a BC fallback.
|
|
81
82
|
*/
|
|
82
83
|
readonly id: string
|
|
83
84
|
/** Human-readable display name for UI dropdowns. */
|
|
@@ -90,7 +91,7 @@ export interface LlmProvider {
|
|
|
90
91
|
/**
|
|
91
92
|
* Default model id returned by {@link LlmProvider.defaultModels}[0]
|
|
92
93
|
* when the caller does not specify one. Used by the routing layer when
|
|
93
|
-
* `
|
|
94
|
+
* `OM_AI_MODEL` is not set.
|
|
94
95
|
*/
|
|
95
96
|
readonly defaultModel: string
|
|
96
97
|
/** Curated list of models shown in the UI dropdown for this provider. */
|