@adaptic/lumic-utils 1.0.25 → 1.0.27
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/{apollo-client.client-D6jG5B1n.js → apollo-client.client-DD13VF_T.js} +3 -3
- package/dist/{apollo-client.client-D6jG5B1n.js.map → apollo-client.client-DD13VF_T.js.map} +1 -1
- package/dist/{apollo-client.client-DLW-p46Y.js → apollo-client.client-eo-xgmdi.js} +4 -4
- package/dist/{apollo-client.client-DLW-p46Y.js.map → apollo-client.client-eo-xgmdi.js.map} +1 -1
- package/dist/{apollo-client.server-Cx30LaNh.js → apollo-client.server-2zi9dbLa.js} +3 -3
- package/dist/{apollo-client.server-Cx30LaNh.js.map → apollo-client.server-2zi9dbLa.js.map} +1 -1
- package/dist/{apollo-client.server-CXLiLmSz.js → apollo-client.server-BxpJcsVI.js} +3 -3
- package/dist/{apollo-client.server-CXLiLmSz.js.map → apollo-client.server-BxpJcsVI.js.map} +1 -1
- package/dist/{index-CqnZ-XiI.js → index-BQ1buNZm.js} +2 -2
- package/dist/{index-CqnZ-XiI.js.map → index-BQ1buNZm.js.map} +1 -1
- package/dist/{index-Bvc61lYS.js → index-BbwdRyPk.js} +232 -84
- package/dist/{index-ChygDqeG.js.map → index-BbwdRyPk.js.map} +1 -1
- package/dist/{index-D2TPDKw0.js → index-CV0UmY0w.js} +2 -2
- package/dist/{index-D2TPDKw0.js.map → index-CV0UmY0w.js.map} +1 -1
- package/dist/{index-ChygDqeG.js → index-zDK1X6HR.js} +232 -84
- package/dist/{index-Bvc61lYS.js.map → index-zDK1X6HR.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/test.cjs +1 -1
- package/dist/test.mjs +1 -1
- package/dist/types/functions/llm-deepseek.d.ts +4 -0
- package/dist/types/types/openai-types.d.ts +37 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bW as AWSLambdaError, bX as AWSS3Error, c5 as AWS_LAMBDA_TIMEOUT_MS, c6 as AWS_S3_TIMEOUT_MS, aV as CircuitBreaker, aX as CircuitBreakerOpenError, aW as CircuitBreakerState, aY as DEFAULT_CIRCUIT_BREAKER_CONFIG, c8 as GENERIC_FETCH_TIMEOUT_MS, c3 as GOOGLE_SHEETS_TIMEOUT_MS, bY as GoogleSheetsError, b_ as JsonParseError, b0 as LLMCostTracker, bV as LLMError, bt as LLM_ADVANCED_PROVIDER, bq as LLM_DEFAULT_PROVIDER, br as LLM_MINI_PROVIDER, bx as LLM_MODEL_ADVANCED, bv as LLM_MODEL_MINI, bw as LLM_MODEL_NORMAL, bs as LLM_NORMAL_PROVIDER, bu as LLM_PROVIDER, c4 as LLM_TIMEOUT_MS, bT as LumicError, bn as MODEL_ALIASES, bo as OPENAI_COMPATIBLE_PROVIDERS, c7 as OPENWEATHER_TIMEOUT_MS, b$ as PDFError, c2 as PERPLEXITY_TIMEOUT_MS, bp as PROVIDER_DEFAULT_MODELS, bZ as PerplexityError, be as RATE_LIMIT_PROFILES, c1 as SLACK_TIMEOUT_MS, bj as SUPPORTED_MODELS, bU as SlackError, bd as TokenBucketRateLimiter, c0 as ZipError, bi as checkIntegrationHealth, bS as createSafeValidator, bR as createValidator, b8 as generateCorrelationId, ba as getCorrelationContext, bc as getCorrelationHeaders, b9 as getCorrelationId, b1 as getLLMCostTracker, aM as getLumicLogger, b5 as getMetricsCollector, bl as getModelCapabilities, bm as getModelProvider, bf as getRateLimiter, aR as getSecrets, bH as googleSheetsValueRangeSchema, bk as isValidModel, bM as lambdaInvokeResponseSchema, l as lumic, by as makeAnthropicCall, bz as makeOpenAICompatibleCall, bA as openAIChatCompletionSchema, bB as openAIImageResponseSchema, bE as perplexityResponseSchema, aT as requireSecret, bg as resetAllRateLimiters, b3 as resetLLMCostTracker, b6 as resetMetricsCollector, aS as resetSecrets, bL as s3GetObjectSchema, bK as s3ListObjectsSchema, bJ as safeValidateGoogleSheetsResponse, bQ as safeValidateLambdaResponse, bD as safeValidateOpenAIChatCompletion, bG as safeValidatePerplexityResponse, bO as safeValidateS3ListObjects, aP as sanitizeAWSAuth, aO as sanitizeError, aN as sanitizeForLog, aQ as sanitizeObject, b2 as setLLMCostTracker, aL as setLumicLogger, b4 as setMetricsCollector, a$ as validateGoogleSheetsRange, bI as validateGoogleSheetsResponse, bP as validateLambdaResponse, bC as validateOpenAIChatCompletion, bF as validatePerplexityResponse, a_ as validateS3Key, bN as validateS3ListObjects, aZ as validateSlackChannel, bb as withCorrelationId, b7 as withMetrics, bh as withRateLimit, aU as withRetry } from './index-
|
|
1
|
+
export { bW as AWSLambdaError, bX as AWSS3Error, c5 as AWS_LAMBDA_TIMEOUT_MS, c6 as AWS_S3_TIMEOUT_MS, aV as CircuitBreaker, aX as CircuitBreakerOpenError, aW as CircuitBreakerState, aY as DEFAULT_CIRCUIT_BREAKER_CONFIG, c8 as GENERIC_FETCH_TIMEOUT_MS, c3 as GOOGLE_SHEETS_TIMEOUT_MS, bY as GoogleSheetsError, b_ as JsonParseError, b0 as LLMCostTracker, bV as LLMError, bt as LLM_ADVANCED_PROVIDER, bq as LLM_DEFAULT_PROVIDER, br as LLM_MINI_PROVIDER, bx as LLM_MODEL_ADVANCED, bv as LLM_MODEL_MINI, bw as LLM_MODEL_NORMAL, bs as LLM_NORMAL_PROVIDER, bu as LLM_PROVIDER, c4 as LLM_TIMEOUT_MS, bT as LumicError, bn as MODEL_ALIASES, bo as OPENAI_COMPATIBLE_PROVIDERS, c7 as OPENWEATHER_TIMEOUT_MS, b$ as PDFError, c2 as PERPLEXITY_TIMEOUT_MS, bp as PROVIDER_DEFAULT_MODELS, bZ as PerplexityError, be as RATE_LIMIT_PROFILES, c1 as SLACK_TIMEOUT_MS, bj as SUPPORTED_MODELS, bU as SlackError, bd as TokenBucketRateLimiter, c0 as ZipError, bi as checkIntegrationHealth, bS as createSafeValidator, bR as createValidator, b8 as generateCorrelationId, ba as getCorrelationContext, bc as getCorrelationHeaders, b9 as getCorrelationId, b1 as getLLMCostTracker, aM as getLumicLogger, b5 as getMetricsCollector, bl as getModelCapabilities, bm as getModelProvider, bf as getRateLimiter, aR as getSecrets, bH as googleSheetsValueRangeSchema, bk as isValidModel, bM as lambdaInvokeResponseSchema, l as lumic, by as makeAnthropicCall, bz as makeOpenAICompatibleCall, bA as openAIChatCompletionSchema, bB as openAIImageResponseSchema, bE as perplexityResponseSchema, aT as requireSecret, bg as resetAllRateLimiters, b3 as resetLLMCostTracker, b6 as resetMetricsCollector, aS as resetSecrets, bL as s3GetObjectSchema, bK as s3ListObjectsSchema, bJ as safeValidateGoogleSheetsResponse, bQ as safeValidateLambdaResponse, bD as safeValidateOpenAIChatCompletion, bG as safeValidatePerplexityResponse, bO as safeValidateS3ListObjects, aP as sanitizeAWSAuth, aO as sanitizeError, aN as sanitizeForLog, aQ as sanitizeObject, b2 as setLLMCostTracker, aL as setLumicLogger, b4 as setMetricsCollector, a$ as validateGoogleSheetsRange, bI as validateGoogleSheetsResponse, bP as validateLambdaResponse, bC as validateOpenAIChatCompletion, bF as validatePerplexityResponse, a_ as validateS3Key, bN as validateS3ListObjects, aZ as validateSlackChannel, bb as withCorrelationId, b7 as withMetrics, bh as withRateLimit, aU as withRetry } from './index-BbwdRyPk.js';
|
|
2
2
|
import 'openai';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@aws-sdk/client-s3';
|
package/dist/test.cjs
CHANGED
package/dist/test.mjs
CHANGED
|
@@ -7,5 +7,9 @@ import { LLMResponse, LLMOptions, OpenAIResponseFormat } from '../types';
|
|
|
7
7
|
* @param responseFormat The format of the response. Defaults to 'json'.
|
|
8
8
|
* @param options Configuration options including model ('deepseek-chat' or 'deepseek-reasoner'), tools, and apiKey.
|
|
9
9
|
* @return A promise that resolves to the response from the Deepseek API.
|
|
10
|
+
* @throws {Error} If the requested capability (JSON output / tool calling) is
|
|
11
|
+
* unsupported by the model, or if the underlying API call fails. This matches
|
|
12
|
+
* the OpenAI and Anthropic providers, which surface failures by throwing
|
|
13
|
+
* rather than returning a success-shaped response carrying an error payload.
|
|
10
14
|
*/
|
|
11
15
|
export declare const makeDeepseekCall: <T = unknown>(content: string | ChatCompletionContentPart[], responseFormat?: OpenAIResponseFormat, options?: LLMOptions) => Promise<LLMResponse<T>>;
|
|
@@ -34,6 +34,33 @@ export declare const OPENAI_COMPATIBLE_PROVIDERS: Record<string, OpenAICompatibl
|
|
|
34
34
|
* Supported models with their capabilities
|
|
35
35
|
*/
|
|
36
36
|
export declare const SUPPORTED_MODELS: {
|
|
37
|
+
readonly 'gpt-5.6-sol': {
|
|
38
|
+
readonly provider: "openai";
|
|
39
|
+
readonly supportsTools: true;
|
|
40
|
+
readonly supportsJson: true;
|
|
41
|
+
readonly supportsStructuredOutput: true;
|
|
42
|
+
readonly supportsDeveloperPrompt: true;
|
|
43
|
+
readonly supportsTemperature: false;
|
|
44
|
+
readonly isReasoningModel: false;
|
|
45
|
+
};
|
|
46
|
+
readonly 'gpt-5.6-terra': {
|
|
47
|
+
readonly provider: "openai";
|
|
48
|
+
readonly supportsTools: true;
|
|
49
|
+
readonly supportsJson: true;
|
|
50
|
+
readonly supportsStructuredOutput: true;
|
|
51
|
+
readonly supportsDeveloperPrompt: true;
|
|
52
|
+
readonly supportsTemperature: false;
|
|
53
|
+
readonly isReasoningModel: false;
|
|
54
|
+
};
|
|
55
|
+
readonly 'gpt-5.6-luna': {
|
|
56
|
+
readonly provider: "openai";
|
|
57
|
+
readonly supportsTools: true;
|
|
58
|
+
readonly supportsJson: true;
|
|
59
|
+
readonly supportsStructuredOutput: true;
|
|
60
|
+
readonly supportsDeveloperPrompt: true;
|
|
61
|
+
readonly supportsTemperature: false;
|
|
62
|
+
readonly isReasoningModel: false;
|
|
63
|
+
};
|
|
37
64
|
readonly 'gpt-5.5': {
|
|
38
65
|
readonly provider: "openai";
|
|
39
66
|
readonly supportsTools: true;
|
|
@@ -79,6 +106,15 @@ export declare const SUPPORTED_MODELS: {
|
|
|
79
106
|
readonly supportsTemperature: false;
|
|
80
107
|
readonly isReasoningModel: false;
|
|
81
108
|
};
|
|
109
|
+
readonly 'gpt-5.4-pro': {
|
|
110
|
+
readonly provider: "openai";
|
|
111
|
+
readonly supportsTools: true;
|
|
112
|
+
readonly supportsJson: true;
|
|
113
|
+
readonly supportsStructuredOutput: true;
|
|
114
|
+
readonly supportsDeveloperPrompt: true;
|
|
115
|
+
readonly supportsTemperature: false;
|
|
116
|
+
readonly isReasoningModel: false;
|
|
117
|
+
};
|
|
82
118
|
readonly 'gpt-5': {
|
|
83
119
|
readonly provider: "openai";
|
|
84
120
|
readonly supportsTools: true;
|
|
@@ -429,7 +465,7 @@ export type SupportedModel = keyof typeof SUPPORTED_MODELS;
|
|
|
429
465
|
/**
|
|
430
466
|
* Represents OpenAI models
|
|
431
467
|
*/
|
|
432
|
-
export type OpenAIModel = Extract<SupportedModel, 'gpt-5.5' | 'gpt-5.5-pro' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'o1' | 'o1-mini' | 'o3' | 'o3-mini' | 'o4-mini'>;
|
|
468
|
+
export type OpenAIModel = Extract<SupportedModel, 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-pro' | 'gpt-5.4' | 'gpt-5.4-pro' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'o1' | 'o1-mini' | 'o3' | 'o3-mini' | 'o4-mini'>;
|
|
433
469
|
/**
|
|
434
470
|
* Represents Anthropic Claude models
|
|
435
471
|
*/
|