@budibase/pro 3.27.5 → 3.28.1
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/ai/index.d.ts +1 -2
- package/dist/ai/llm.d.ts +1 -3
- package/dist/index.js +30 -30
- package/package.json +2 -2
- package/dist/ai/models/litellm.d.ts +0 -19
package/dist/ai/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export * from "./utils";
|
|
2
2
|
export * from "./prompts";
|
|
3
3
|
export { parseResponseFormat } from "./models/openai";
|
|
4
|
-
export { getLLM, getLLMConfig, getLLMOrThrow, LLMRequest
|
|
4
|
+
export { getLLM, getLLMConfig, getLLMOrThrow, LLMRequest } from "./llm";
|
|
5
5
|
export { LLM } from "./models/base";
|
|
6
|
-
export { createLiteLLMOpenAI, getLiteLLMProvider, getLiteLLMProviderOptions, } from "./models/litellm";
|
|
7
6
|
export * from "./prompts";
|
|
8
7
|
export * from "./generators";
|
|
9
8
|
export * from "./structuredOutputs";
|
package/dist/ai/llm.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ChatCompletionRequest, LLMConfigOptions, LLMProviderConfig, Message, ResponseFormat
|
|
1
|
+
import { ChatCompletionRequest, LLMConfigOptions, LLMProviderConfig, Message, ResponseFormat } from "@budibase/types";
|
|
2
2
|
import openai from "openai";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { LLM } from "./models/base";
|
|
5
|
-
import { OpenAI } from "./models/openai";
|
|
6
5
|
export declare function getLLMConfig(): Promise<LLMProviderConfig | undefined>;
|
|
7
6
|
export declare function getLLM(options?: LLMConfigOptions): Promise<LLM | undefined>;
|
|
8
7
|
export declare function getLLMOrThrow(): Promise<LLM>;
|
|
9
|
-
export declare function getChatLLM(config: WithRequired<LLMConfigOptions, "baseUrl">): Promise<OpenAI>;
|
|
10
8
|
export declare function getOpenAIUsingLocalAPIKey(): Promise<LLM | undefined>;
|
|
11
9
|
export declare class LLMRequest {
|
|
12
10
|
messages: Message[];
|