@discomedia/utils 1.0.8 → 1.0.9
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.map +1 -1
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/types/llm-openai.d.ts +2 -2
- package/dist/types/llm-openai.d.ts.map +1 -1
- package/dist/types-frontend/llm-openai.d.ts +2 -2
- package/dist/types-frontend/llm-openai.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tool } from 'openai/resources/responses/responses';
|
|
2
|
-
import { LLMResponse, LLMOptions,
|
|
2
|
+
import { LLMResponse, LLMOptions, LLMModel } from './types';
|
|
3
3
|
import { ResponseCreateParamsNonStreaming } from 'openai/resources/responses/responses';
|
|
4
4
|
export declare const DEFAULT_OPTIONS: LLMOptions;
|
|
5
5
|
/**
|
|
@@ -53,7 +53,7 @@ export declare const makeResponsesAPICall: <T = any>(input: string | ResponseCre
|
|
|
53
53
|
*/
|
|
54
54
|
export declare function makeLLMCall<T = any>(input: string, options?: {
|
|
55
55
|
apiKey?: string;
|
|
56
|
-
model?:
|
|
56
|
+
model?: LLMModel;
|
|
57
57
|
responseFormat?: 'text' | 'json';
|
|
58
58
|
tools?: Tool[];
|
|
59
59
|
useCodeInterpreter?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-openai.d.ts","sourceRoot":"","sources":["../../src/llm-openai.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAiB,MAAM,sCAAsC,CAAC;AAK3E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"llm-openai.d.ts","sourceRoot":"","sources":["../../src/llm-openai.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAA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
1
|
import { Tool } from 'openai/resources/responses/responses';
|
|
2
|
-
import { LLMResponse, LLMOptions,
|
|
2
|
+
import { LLMResponse, LLMOptions, LLMModel } from './types';
|
|
3
3
|
import { ResponseCreateParamsNonStreaming } from 'openai/resources/responses/responses';
|
|
4
4
|
export declare const DEFAULT_OPTIONS: LLMOptions;
|
|
5
5
|
/**
|
|
@@ -53,7 +53,7 @@ export declare const makeResponsesAPICall: <T = any>(input: string | ResponseCre
|
|
|
53
53
|
*/
|
|
54
54
|
export declare function makeLLMCall<T = any>(input: string, options?: {
|
|
55
55
|
apiKey?: string;
|
|
56
|
-
model?:
|
|
56
|
+
model?: LLMModel;
|
|
57
57
|
responseFormat?: 'text' | 'json';
|
|
58
58
|
tools?: Tool[];
|
|
59
59
|
useCodeInterpreter?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-openai.d.ts","sourceRoot":"","sources":["../../src/llm-openai.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAiB,MAAM,sCAAsC,CAAC;AAK3E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"llm-openai.d.ts","sourceRoot":"","sources":["../../src/llm-openai.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAiB,MAAM,sCAAsC,CAAC;AAK3E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAwB,MAAM,SAAS,CAAC;AAClF,OAAO,EACL,gCAAgC,EAOjC,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,UAG7B,CAAC;AAkBF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAI1D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGvD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,oBAAo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