llm-strings 1.4.0 → 1.5.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.
package/dist/parse.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as HostAlias } from './provider-core-B934MuhJ.cjs';
1
+ import { a as HostAlias } from './provider-core-B1GMszQP.cjs';
2
2
 
3
3
  interface LlmConnectionConfig {
4
4
  /** The original connection string */
@@ -7,7 +7,7 @@ interface LlmConnectionConfig {
7
7
  host: string;
8
8
  /** Short provider alias that was expanded to host, if any. */
9
9
  hostAlias?: HostAlias;
10
- /** Model name (e.g. "gpt-5.2") */
10
+ /** Model name (e.g. "gpt-5.5") */
11
11
  model: string;
12
12
  /** Optional label or app name */
13
13
  label?: string;
@@ -23,8 +23,8 @@ interface LlmConnectionConfig {
23
23
  *
24
24
  * @example
25
25
  * ```ts
26
- * parse("llm://api.openai.com/gpt-5.2?temp=0.7&max_tokens=1500")
27
- * parse("llm://app-name:sk-proj-123456@api.openai.com/gpt-5.2?temp=0.7")
26
+ * parse("llm://api.openai.com/gpt-4o?temp=0.7&max_tokens=1500")
27
+ * parse("llm://app-name:sk-proj-123456@api.openai.com/gpt-4o?temp=0.7")
28
28
  * ```
29
29
  */
30
30
  declare function parse(connectionString: string): LlmConnectionConfig;
package/dist/parse.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as HostAlias } from './provider-core-B934MuhJ.js';
1
+ import { a as HostAlias } from './provider-core-B1GMszQP.js';
2
2
 
3
3
  interface LlmConnectionConfig {
4
4
  /** The original connection string */
@@ -7,7 +7,7 @@ interface LlmConnectionConfig {
7
7
  host: string;
8
8
  /** Short provider alias that was expanded to host, if any. */
9
9
  hostAlias?: HostAlias;
10
- /** Model name (e.g. "gpt-5.2") */
10
+ /** Model name (e.g. "gpt-5.5") */
11
11
  model: string;
12
12
  /** Optional label or app name */
13
13
  label?: string;
@@ -23,8 +23,8 @@ interface LlmConnectionConfig {
23
23
  *
24
24
  * @example
25
25
  * ```ts
26
- * parse("llm://api.openai.com/gpt-5.2?temp=0.7&max_tokens=1500")
27
- * parse("llm://app-name:sk-proj-123456@api.openai.com/gpt-5.2?temp=0.7")
26
+ * parse("llm://api.openai.com/gpt-4o?temp=0.7&max_tokens=1500")
27
+ * parse("llm://app-name:sk-proj-123456@api.openai.com/gpt-4o?temp=0.7")
28
28
  * ```
29
29
  */
30
30
  declare function parse(connectionString: string): LlmConnectionConfig;
package/dist/parse.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  build,
3
3
  parse
4
- } from "./chunk-5YTG2NRX.js";
5
- import "./chunk-76EFNZCF.js";
4
+ } from "./chunk-6HQOCOQI.js";
5
+ import "./chunk-PCJDQTOV.js";
6
6
  export {
7
7
  build,
8
8
  parse
@@ -18,6 +18,7 @@ interface HostResolution {
18
18
  */
19
19
  declare function resolveHostAlias(host: string, env?: Env): HostResolution;
20
20
  declare function providerFromHostAlias(alias: string): Provider | undefined;
21
+ declare function modelMatchesFamily(model: string, family: string): boolean;
21
22
  declare function detectProvider(host: string): Provider | undefined;
22
23
  /**
23
24
  * Shorthand aliases → canonical param name.
@@ -66,7 +67,5 @@ declare function bedrockSupportsCaching(model: string): boolean;
66
67
  declare const CACHE_VALUES: Record<Provider, string | undefined>;
67
68
  /** Valid cache TTL values per provider. */
68
69
  declare const CACHE_TTLS: Record<Provider, string[] | undefined>;
69
- /** Match a duration expression like "5m", "1h", "30m". */
70
- declare const DURATION_RE: RegExp;
71
70
 
72
- export { ALIASES as A, type BedrockModelFamily as B, CACHE_TTLS as C, DURATION_RE as D, HOST_ALIASES as H, type Provider as P, REASONING_MODEL_UNSUPPORTED as R, type HostAlias as a, type HostResolution as b, CACHE_VALUES as c, PARAM_SPECS as d, PROVIDER_PARAMS as e, type ParamSpec as f, bedrockSupportsCaching as g, canHostOpenAIModels as h, detectBedrockModelFamily as i, detectGatewaySubProvider as j, detectProvider as k, isGatewayProvider as l, isReasoningModel as m, providerFromHostAlias as p, resolveHostAlias as r };
71
+ export { ALIASES as A, type BedrockModelFamily as B, CACHE_TTLS as C, HOST_ALIASES as H, type Provider as P, REASONING_MODEL_UNSUPPORTED as R, type HostAlias as a, type HostResolution as b, CACHE_VALUES as c, PARAM_SPECS as d, PROVIDER_PARAMS as e, type ParamSpec as f, bedrockSupportsCaching as g, canHostOpenAIModels as h, detectBedrockModelFamily as i, detectGatewaySubProvider as j, detectProvider as k, isGatewayProvider as l, isReasoningModel as m, modelMatchesFamily as n, providerFromHostAlias as p, resolveHostAlias as r };
@@ -18,6 +18,7 @@ interface HostResolution {
18
18
  */
19
19
  declare function resolveHostAlias(host: string, env?: Env): HostResolution;
20
20
  declare function providerFromHostAlias(alias: string): Provider | undefined;
21
+ declare function modelMatchesFamily(model: string, family: string): boolean;
21
22
  declare function detectProvider(host: string): Provider | undefined;
22
23
  /**
23
24
  * Shorthand aliases → canonical param name.
@@ -66,7 +67,5 @@ declare function bedrockSupportsCaching(model: string): boolean;
66
67
  declare const CACHE_VALUES: Record<Provider, string | undefined>;
67
68
  /** Valid cache TTL values per provider. */
68
69
  declare const CACHE_TTLS: Record<Provider, string[] | undefined>;
69
- /** Match a duration expression like "5m", "1h", "30m". */
70
- declare const DURATION_RE: RegExp;
71
70
 
72
- export { ALIASES as A, type BedrockModelFamily as B, CACHE_TTLS as C, DURATION_RE as D, HOST_ALIASES as H, type Provider as P, REASONING_MODEL_UNSUPPORTED as R, type HostAlias as a, type HostResolution as b, CACHE_VALUES as c, PARAM_SPECS as d, PROVIDER_PARAMS as e, type ParamSpec as f, bedrockSupportsCaching as g, canHostOpenAIModels as h, detectBedrockModelFamily as i, detectGatewaySubProvider as j, detectProvider as k, isGatewayProvider as l, isReasoningModel as m, providerFromHostAlias as p, resolveHostAlias as r };
71
+ export { ALIASES as A, type BedrockModelFamily as B, CACHE_TTLS as C, HOST_ALIASES as H, type Provider as P, REASONING_MODEL_UNSUPPORTED as R, type HostAlias as a, type HostResolution as b, CACHE_VALUES as c, PARAM_SPECS as d, PROVIDER_PARAMS as e, type ParamSpec as f, bedrockSupportsCaching as g, canHostOpenAIModels as h, detectBedrockModelFamily as i, detectGatewaySubProvider as j, detectProvider as k, isGatewayProvider as l, isReasoningModel as m, modelMatchesFamily as n, providerFromHostAlias as p, resolveHostAlias as r };