Skip to content

Commit

Permalink
pro ref
Browse files Browse the repository at this point in the history
  • Loading branch information
shogunpurple committed Dec 4, 2024
1 parent 7fcff8a commit 3a9795e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/pro
Submodule pro updated from 0d7fa3 to 7b8789
4 changes: 3 additions & 1 deletion packages/server/src/utilities/rowProcessor/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ export async function processAIColumns<T extends Row | Row[]>(
const numRows = Array.isArray(inputRows) ? inputRows.length : 1
span?.addTags({ table_id: table._id, numRows })
const rows = Array.isArray(inputRows) ? inputRows : [inputRows]
const llmWrapper = await pro.ai.LargeLanguageModel.forCurrentTenant("gpt-4o-mini")
const llmWrapper = await pro.ai.LargeLanguageModel.forCurrentTenant(
"gpt-4o-mini"
)
if (rows && llmWrapper.llm) {
// Ensure we have snippet context
await context.ensureSnippetContext()
Expand Down

0 comments on commit 3a9795e

Please sign in to comment.