@discomedia/utils 1.0.67 → 1.0.69
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/index-frontend.cjs +90 -438
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +88 -439
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +90 -438
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +88 -439
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +4 -4
- package/dist/test.js +663 -3568
- package/dist/test.js.map +1 -1
- package/dist/types/index-frontend.d.ts +1 -0
- package/dist/types/index-frontend.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/llm-config.d.ts +2 -2
- package/dist/types/llm-config.d.ts.map +1 -1
- package/dist/types/llm-images.d.ts.map +1 -1
- package/dist/types/llm-openai.d.ts +4 -16
- package/dist/types/llm-openai.d.ts.map +1 -1
- package/dist/types/types/llm-types.d.ts +7 -2
- package/dist/types/types/llm-types.d.ts.map +1 -1
- package/dist/types-frontend/index-frontend.d.ts +1 -0
- package/dist/types-frontend/index-frontend.d.ts.map +1 -1
- package/dist/types-frontend/index.d.ts +1 -0
- package/dist/types-frontend/index.d.ts.map +1 -1
- package/dist/types-frontend/llm-config.d.ts +2 -2
- package/dist/types-frontend/llm-config.d.ts.map +1 -1
- package/dist/types-frontend/llm-images.d.ts.map +1 -1
- package/dist/types-frontend/llm-openai.d.ts +4 -16
- package/dist/types-frontend/llm-openai.d.ts.map +1 -1
- package/dist/types-frontend/types/llm-types.d.ts +7 -2
- package/dist/types-frontend/types/llm-types.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-frontend.d.ts","sourceRoot":"","sources":["../../src/index-frontend.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAGtC,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index-frontend.d.ts","sourceRoot":"","sources":["../../src/index-frontend.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAGtC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,eAAO,MAAM,KAAK;;;;;;;;CAQjB,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { PerformanceTimer } from './performance-timer';
|
|
|
9
9
|
export * from './types';
|
|
10
10
|
export { AlpacaTradingAPI } from './alpaca-trading-api';
|
|
11
11
|
export { AlpacaMarketDataAPI } from './alpaca-market-data-api';
|
|
12
|
+
export { supportsTemperature } from './llm-openai';
|
|
12
13
|
export declare const disco: {
|
|
13
14
|
types: typeof Types;
|
|
14
15
|
alpaca: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAOvD,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAOvD,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CjB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const DEFAULT_MODEL = "gpt-
|
|
1
|
+
export declare const DEFAULT_MODEL = "gpt-5-mini";
|
|
2
2
|
export declare const DEFAULT_DEVELOPER_PROMPT = "\n You are a highly experienced coding, business analyst, and financial analyst associate.\n Help with coding, business process design and analysis, data generation and refinement, content creation, financial analysis, and more.\n When presented with a coding problem, logic problem, or other problem benefiting from systematic thinking, think through it step by step before giving your final answer.\n Present complete, high-confidence, final answers only. Do not rephrase to be more brief or omit parts of answers.\n Respond only with final content (e.g. code, a json or yaml object, a formatted string, or a markdown document) and nothing else. Do not reply with a preamble, introduction, or conclusion.\n";
|
|
3
3
|
interface AIModelCosts {
|
|
4
4
|
[modelName: string]: {
|
|
@@ -7,7 +7,7 @@ interface AIModelCosts {
|
|
|
7
7
|
cacheHitCost?: number;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
/** Token costs in USD per 1M tokens. Last updated
|
|
10
|
+
/** Token costs in USD per 1M tokens. Last updated May 2026. */
|
|
11
11
|
export declare const openAiModelCosts: AIModelCosts;
|
|
12
12
|
export declare const deepseekModelCosts: AIModelCosts;
|
|
13
13
|
/** Image generation costs in USD per image. Based on OpenAI pricing as of Feb 2025. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-config.d.ts","sourceRoot":"","sources":["../../src/llm-config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"llm-config.d.ts","sourceRoot":"","sources":["../../src/llm-config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,eAAe,CAAC;AAE1C,eAAO,MAAM,wBAAwB,wtBAMpC,CAAC;AAEF,UAAU,YAAY;IACpB,CAAC,SAAS,EAAE,MAAM,GAAG;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAMD,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,EAAE,YA2D9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,YAWhC,CAAC;AAMF,uFAAuF;AACvF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAGnD,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAS5E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,eAAe,CAAC,EAAE,MAAM,EACxB,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM,CAgCR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-images.d.ts","sourceRoot":"","sources":["../../src/llm-images.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"llm-images.d.ts","sourceRoot":"","sources":["../../src/llm-images.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,eAAe,EAAiB,MAAM,SAAS,CAAC;AAE3F,OAAO,EAAuB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG;QAChC,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,eAAe,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,QAAQ,CAAC;KACxB,CAAC;CACH;AAED,eAAO,MAAM,mBAAmB,EAAE,eAAiC,CAAC;AAEpE,eAAO,MAAM,iBAAiB,GAAI,QAAQ,eAAe,KAAG,eAA+C,CAAC;AAI5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,sBAAsB,CAAC,CAoGjC"}
|
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
import { Tool } from 'openai/resources/responses/responses';
|
|
2
|
-
import { LLMResponse, LLMOptions, LLMModel, OpenAIResponseFormat, ContextMessage,
|
|
2
|
+
import { LLMResponse, LLMOptions, LLMModel, OpenAIResponseFormat, ContextMessage, OpenAISchemaInput } from './types';
|
|
3
3
|
import { ResponseCreateParamsNonStreaming } from 'openai/resources/responses/responses';
|
|
4
4
|
export declare const DEFAULT_OPTIONS: LLMOptions;
|
|
5
5
|
/**
|
|
6
|
-
* Checks if the given model supports the temperature parameter.
|
|
6
|
+
* Checks if the given direct OpenAI model supports the temperature parameter.
|
|
7
7
|
* @param model The model to check.
|
|
8
8
|
* @returns True if the model supports the temperature parameter, false otherwise.
|
|
9
9
|
*/
|
|
10
|
-
export declare function supportsTemperature(
|
|
11
|
-
/**
|
|
12
|
-
* Checks if the given model is a reasoning model. Reasoning models have different tool choice constraints.
|
|
13
|
-
* @param model The model to check.
|
|
14
|
-
* @returns True if the model is a reasoning model, false otherwise.
|
|
15
|
-
*/
|
|
16
|
-
export declare function isReasoningModel(model: string): model is OpenAIModel;
|
|
17
|
-
/**
|
|
18
|
-
* Checks if the given model is a GPT-5 model. GPT-5 models don't support tool_choice other than 'auto'.
|
|
19
|
-
* @param model The model to check.
|
|
20
|
-
* @returns True if the model is a GPT-5 model, false otherwise.
|
|
21
|
-
*/
|
|
22
|
-
export declare function isGPT5Model(model: string): model is OpenAIModel;
|
|
10
|
+
export declare function supportsTemperature(_model: string): boolean;
|
|
23
11
|
/**
|
|
24
12
|
* Makes a call to OpenAI's Responses API for more advanced use cases with built-in tools.
|
|
25
13
|
*
|
|
@@ -27,7 +15,7 @@ export declare function isGPT5Model(model: string): model is OpenAIModel;
|
|
|
27
15
|
* - Built-in tools (web search, file search, computer use, code interpreter, image generation)
|
|
28
16
|
* - Background processing
|
|
29
17
|
* - Conversation state management
|
|
30
|
-
* -
|
|
18
|
+
* - GPT-5 reasoning controls
|
|
31
19
|
*
|
|
32
20
|
* @example
|
|
33
21
|
* // Basic text response
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-openai.d.ts","sourceRoot":"","sources":["../../src/llm-openai.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,IAAI,
|
|
1
|
+
{"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AAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IACtC,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;CACvB,GACL,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAwHzB"}
|
|
@@ -5,7 +5,12 @@ import type { ZodType } from 'zod';
|
|
|
5
5
|
/**
|
|
6
6
|
* Represents OpenAI models
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export declare const OPENAI_MODELS: readonly ["gpt-5", "gpt-5-mini", "gpt-5.4-mini", "gpt-5-nano", "gpt-5.1", "gpt-5.4", "gpt-5.5", "gpt-5.5-pro", "gpt-5.2", "gpt-5.2-pro", "gpt-5.1-codex", "gpt-5.1-codex-max"];
|
|
9
|
+
export type OpenAIModel = (typeof OPENAI_MODELS)[number];
|
|
10
|
+
/**
|
|
11
|
+
* Type guard to check if a model is a supported direct OpenAI model.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isOpenAIModel(model: string): model is OpenAIModel;
|
|
9
14
|
/**
|
|
10
15
|
* Represents Deepseek models
|
|
11
16
|
*/
|
|
@@ -13,7 +18,7 @@ export type DeepseekModel = 'deepseek-chat' | 'deepseek-reasoner';
|
|
|
13
18
|
/**
|
|
14
19
|
* Represents OpenRouter models
|
|
15
20
|
*/
|
|
16
|
-
export type OpenRouterModel = 'openai/gpt-5' | 'openai/gpt-5-mini' | 'openai/gpt-5.4-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5.1' | 'openai/gpt-5.4' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.2' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-oss-120b' | 'z.ai/glm-4.5' | 'z.ai/glm-4.5-air' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-lite' | 'deepseek/deepseek-r1-0528' | 'deepseek/deepseek-chat-v3-0324';
|
|
21
|
+
export type OpenRouterModel = 'openai/gpt-5' | 'openai/gpt-5-mini' | 'openai/gpt-5.4-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5.1' | 'openai/gpt-5.4' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-pro' | 'openai/gpt-5.2' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-oss-120b' | 'z.ai/glm-4.5' | 'z.ai/glm-4.5-air' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-lite' | 'deepseek/deepseek-r1-0528' | 'deepseek/deepseek-chat-v3-0324';
|
|
17
22
|
/**
|
|
18
23
|
* Represents pricing information for OpenRouter models
|
|
19
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-types.d.ts","sourceRoot":"","sources":["../../../src/types/llm-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClI,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEnC;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"llm-types.d.ts","sourceRoot":"","sources":["../../../src/types/llm-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClI,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEnC;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;IACrB,OAAO,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAC/C,UAAU,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAC/C;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;CACxB;AAED,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,eAAe,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACpD,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-frontend.d.ts","sourceRoot":"","sources":["../../src/index-frontend.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAGtC,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index-frontend.d.ts","sourceRoot":"","sources":["../../src/index-frontend.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAGtC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,eAAO,MAAM,KAAK;;;;;;;;CAQjB,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { PerformanceTimer } from './performance-timer';
|
|
|
9
9
|
export * from './types';
|
|
10
10
|
export { AlpacaTradingAPI } from './alpaca-trading-api';
|
|
11
11
|
export { AlpacaMarketDataAPI } from './alpaca-market-data-api';
|
|
12
|
+
export { supportsTemperature } from './llm-openai';
|
|
12
13
|
export declare const disco: {
|
|
13
14
|
types: typeof Types;
|
|
14
15
|
alpaca: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAOvD,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAOvD,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CjB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const DEFAULT_MODEL = "gpt-
|
|
1
|
+
export declare const DEFAULT_MODEL = "gpt-5-mini";
|
|
2
2
|
export declare const DEFAULT_DEVELOPER_PROMPT = "\n You are a highly experienced coding, business analyst, and financial analyst associate.\n Help with coding, business process design and analysis, data generation and refinement, content creation, financial analysis, and more.\n When presented with a coding problem, logic problem, or other problem benefiting from systematic thinking, think through it step by step before giving your final answer.\n Present complete, high-confidence, final answers only. Do not rephrase to be more brief or omit parts of answers.\n Respond only with final content (e.g. code, a json or yaml object, a formatted string, or a markdown document) and nothing else. Do not reply with a preamble, introduction, or conclusion.\n";
|
|
3
3
|
interface AIModelCosts {
|
|
4
4
|
[modelName: string]: {
|
|
@@ -7,7 +7,7 @@ interface AIModelCosts {
|
|
|
7
7
|
cacheHitCost?: number;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
/** Token costs in USD per 1M tokens. Last updated
|
|
10
|
+
/** Token costs in USD per 1M tokens. Last updated May 2026. */
|
|
11
11
|
export declare const openAiModelCosts: AIModelCosts;
|
|
12
12
|
export declare const deepseekModelCosts: AIModelCosts;
|
|
13
13
|
/** Image generation costs in USD per image. Based on OpenAI pricing as of Feb 2025. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-config.d.ts","sourceRoot":"","sources":["../../src/llm-config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"llm-config.d.ts","sourceRoot":"","sources":["../../src/llm-config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,eAAe,CAAC;AAE1C,eAAO,MAAM,wBAAwB,wtBAMpC,CAAC;AAEF,UAAU,YAAY;IACpB,CAAC,SAAS,EAAE,MAAM,GAAG;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAMD,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,EAAE,YA2D9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,YAWhC,CAAC;AAMF,uFAAuF;AACvF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAGnD,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAS5E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,eAAe,CAAC,EAAE,MAAM,EACxB,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM,CAgCR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-images.d.ts","sourceRoot":"","sources":["../../src/llm-images.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"llm-images.d.ts","sourceRoot":"","sources":["../../src/llm-images.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,eAAe,EAAiB,MAAM,SAAS,CAAC;AAE3F,OAAO,EAAuB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG;QAChC,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,eAAe,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,QAAQ,CAAC;KACxB,CAAC;CACH;AAED,eAAO,MAAM,mBAAmB,EAAE,eAAiC,CAAC;AAEpE,eAAO,MAAM,iBAAiB,GAAI,QAAQ,eAAe,KAAG,eAA+C,CAAC;AAI5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,sBAAsB,CAAC,CAoGjC"}
|
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
import { Tool } from 'openai/resources/responses/responses';
|
|
2
|
-
import { LLMResponse, LLMOptions, LLMModel, OpenAIResponseFormat, ContextMessage,
|
|
2
|
+
import { LLMResponse, LLMOptions, LLMModel, OpenAIResponseFormat, ContextMessage, OpenAISchemaInput } from './types';
|
|
3
3
|
import { ResponseCreateParamsNonStreaming } from 'openai/resources/responses/responses';
|
|
4
4
|
export declare const DEFAULT_OPTIONS: LLMOptions;
|
|
5
5
|
/**
|
|
6
|
-
* Checks if the given model supports the temperature parameter.
|
|
6
|
+
* Checks if the given direct OpenAI model supports the temperature parameter.
|
|
7
7
|
* @param model The model to check.
|
|
8
8
|
* @returns True if the model supports the temperature parameter, false otherwise.
|
|
9
9
|
*/
|
|
10
|
-
export declare function supportsTemperature(
|
|
11
|
-
/**
|
|
12
|
-
* Checks if the given model is a reasoning model. Reasoning models have different tool choice constraints.
|
|
13
|
-
* @param model The model to check.
|
|
14
|
-
* @returns True if the model is a reasoning model, false otherwise.
|
|
15
|
-
*/
|
|
16
|
-
export declare function isReasoningModel(model: string): model is OpenAIModel;
|
|
17
|
-
/**
|
|
18
|
-
* Checks if the given model is a GPT-5 model. GPT-5 models don't support tool_choice other than 'auto'.
|
|
19
|
-
* @param model The model to check.
|
|
20
|
-
* @returns True if the model is a GPT-5 model, false otherwise.
|
|
21
|
-
*/
|
|
22
|
-
export declare function isGPT5Model(model: string): model is OpenAIModel;
|
|
10
|
+
export declare function supportsTemperature(_model: string): boolean;
|
|
23
11
|
/**
|
|
24
12
|
* Makes a call to OpenAI's Responses API for more advanced use cases with built-in tools.
|
|
25
13
|
*
|
|
@@ -27,7 +15,7 @@ export declare function isGPT5Model(model: string): model is OpenAIModel;
|
|
|
27
15
|
* - Built-in tools (web search, file search, computer use, code interpreter, image generation)
|
|
28
16
|
* - Background processing
|
|
29
17
|
* - Conversation state management
|
|
30
|
-
* -
|
|
18
|
+
* - GPT-5 reasoning controls
|
|
31
19
|
*
|
|
32
20
|
* @example
|
|
33
21
|
* // Basic text response
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-openai.d.ts","sourceRoot":"","sources":["../../src/llm-openai.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"llm-openai.d.ts","sourceRoot":"","sources":["../../src/llm-openai.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,IAAI,EAGL,MAAM,sCAAsC,CAAC;AAI9C,OAAO,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EAElB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,gCAAgC,EAOjC,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,UAG7B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE3D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5-nano", "gpt-5.1", "gpt-5.4", "gpt-5.5", "gpt-5.5-pro", "gpt-5.2", "gpt-5.2-pro", "gpt-5.1-codex", "gpt-5.1-codex-max"];
|
|
9
|
+
export type OpenAIModel = (typeof OPENAI_MODELS)[number];
|
|
10
|
+
/**
|
|
11
|
+
* Type guard to check if a model is a supported direct OpenAI model.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isOpenAIModel(model: string): model is OpenAIModel;
|
|
9
14
|
/**
|
|
10
15
|
* Represents Deepseek models
|
|
11
16
|
*/
|
|
@@ -13,7 +18,7 @@ export type DeepseekModel = 'deepseek-chat' | 'deepseek-reasoner';
|
|
|
13
18
|
/**
|
|
14
19
|
* Represents OpenRouter models
|
|
15
20
|
*/
|
|
16
|
-
export type OpenRouterModel = 'openai/gpt-5' | 'openai/gpt-5-mini' | 'openai/gpt-5.4-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5.1' | 'openai/gpt-5.4' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.2' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-oss-120b' | 'z.ai/glm-4.5' | 'z.ai/glm-4.5-air' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-lite' | 'deepseek/deepseek-r1-0528' | 'deepseek/deepseek-chat-v3-0324';
|
|
21
|
+
export type OpenRouterModel = 'openai/gpt-5' | 'openai/gpt-5-mini' | 'openai/gpt-5.4-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5.1' | 'openai/gpt-5.4' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-pro' | 'openai/gpt-5.2' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-oss-120b' | 'z.ai/glm-4.5' | 'z.ai/glm-4.5-air' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-lite' | 'deepseek/deepseek-r1-0528' | 'deepseek/deepseek-chat-v3-0324';
|
|
17
22
|
/**
|
|
18
23
|
* Represents pricing information for OpenRouter models
|
|
19
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-types.d.ts","sourceRoot":"","sources":["../../../src/types/llm-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClI,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEnC;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"llm-types.d.ts","sourceRoot":"","sources":["../../../src/types/llm-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClI,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,aAAa,gLAahB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAEjE;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,cAAc,GACd,mBAAmB,GACnB,qBAAqB,GACrB,mBAAmB,GACnB,gBAAgB,GAChB,gBAAgB,GAChB,o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AC7B,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACpD,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.69",
|
|
7
7
|
"author": "Disco Media",
|
|
8
8
|
"description": "Utility functions used in Disco Media apps",
|
|
9
9
|
"always-build-npm": true,
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"dotenv": "^17.4.2",
|
|
36
|
-
"openai": "^6.
|
|
36
|
+
"openai": "^6.35.0",
|
|
37
37
|
"p-limit": "^7.3.0",
|
|
38
38
|
"tslib": "^2.8.1",
|
|
39
39
|
"ws": "^8.20.0",
|
|
40
|
-
"zod": "^4.
|
|
40
|
+
"zod": "^4.4.2"
|
|
41
41
|
},
|
|
42
42
|
"license": "ISC",
|
|
43
43
|
"devDependencies": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
47
47
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
48
48
|
"@types/ws": "^8.18.1",
|
|
49
|
-
"lightweight-charts": "^5.
|
|
49
|
+
"lightweight-charts": "^5.2.0",
|
|
50
50
|
"rollup": "^4.60.2",
|
|
51
51
|
"typescript": "^6.0.3"
|
|
52
52
|
}
|