@budibase/pro 3.31.4 → 3.31.5

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.
@@ -1,8 +1,6 @@
1
1
  export * from "./utils";
2
2
  export * from "./prompts";
3
- export { parseResponseFormat } from "./models/openai";
4
- export { getLLM, getLLMConfig, LLMRequest } from "./llm";
5
- export { LLM } from "./models/base";
3
+ export { getLLMConfig, LLMRequest, parseResponseFormat } from "./llm";
6
4
  export * from "./prompts";
7
5
  export * from "./reasoningFallback";
8
6
  export * from "./generators";
package/dist/ai/llm.d.ts CHANGED
@@ -1,17 +1,8 @@
1
- import { ChatCompletionRequest, LLMConfigOptions, LLMProviderConfig, Message, ResponseFormat } from "@budibase/types";
1
+ import { ChatCompletionRequest, LLMProviderConfig, Message, ResponseFormat } from "@budibase/types";
2
2
  import openai from "openai";
3
3
  import { z } from "zod";
4
- import { LLM } from "./models/base";
5
- /**
6
- * @deprecated use the new `ai.sdk` instead
7
- */
8
4
  export declare function getLLMConfig(): Promise<LLMProviderConfig | undefined>;
9
- /**
10
- * @deprecated use the new `ai.sdk` instead
11
- */
12
- export declare function getLLM(options?: Omit<LLMConfigOptions, "model"> & {
13
- model?: string;
14
- }): Promise<LLM | undefined>;
5
+ export declare function parseResponseFormat(responseFormat?: ResponseFormat): openai.ResponseFormatText | openai.ResponseFormatJSONObject | openai.ResponseFormatJSONSchema | undefined;
15
6
  export declare class LLMRequest {
16
7
  messages: Message[];
17
8
  format?: ResponseFormat;