Merge pull request #16158 from Budibase/BUDI-9238/fix-truncated-json

Fixing AI table generation
This commit is contained in:
Adria Navarro 2025-05-15 17:03:30 +02:00 committed by GitHub
commit 90aa62e643
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit f2cbe5aff7645eb9b0b4e864924a1e1171ad85bf
Subproject commit 271b8677c3ea814395cd67a10137900ec3a34dc7

View File

@ -41,7 +41,7 @@ export async function run({
try {
let response
const llm = await ai.getLLM(inputs.model)
const llm = await ai.getLLM({ model: inputs.model })
response = llm
? (await llm.prompt(inputs.prompt)).message
: await legacyOpenAIPrompt(inputs)

View File

@ -95,6 +95,7 @@ export type AIColumnSchema =
export interface LLMConfigOptions {
model: string
apiKey?: string
maxTokens?: number
}
export interface LLMProviderConfig extends LLMConfigOptions {