Commit c28ff68 1 parent 3f85275 commit c28ff68 Copy full SHA for c28ff68
File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export async function runLLMStep({
79
79
80
80
const user = input ;
81
81
const startTime = performance . now ( ) ;
82
- const res = await litlytics . runPrompt ( { system, user } ) ;
82
+ const res = await litlytics . runPrompt ( { system, user, args : step . llmArgs } ) ;
83
83
const endTime = performance . now ( ) ;
84
84
// replace existing result if present
85
85
const existingResult = doc ?. processingResults . find (
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ export async function executeOnLLM({
80
80
// set key
81
81
const modelObj = getModel ( { provider, model, key } ) ;
82
82
const { text, usage } = await generateText ( {
83
- maxTokens : 4096 ,
84
83
...modelArgs ,
85
84
model : modelObj ,
86
85
messages,
Original file line number Diff line number Diff line change 1
- import type { LanguageModelUsage } from 'ai' ;
1
+ import type { CoreTool , LanguageModelUsage } from 'ai' ;
2
2
import type { Doc } from '../doc/Document' ;
3
3
4
4
export interface StepResult {
@@ -44,7 +44,10 @@ export interface SourceStep extends BaseStep {
44
44
export interface ProcessingStep extends BaseStep {
45
45
type : ProcessingStepTypes ;
46
46
input ?: StepInput ;
47
+ // llm
47
48
prompt ?: string ;
49
+ llmArgs ?: Record < string , CoreTool > ;
50
+ // code
48
51
code ?: string ;
49
52
codeExplanation ?: string ;
50
53
}
You can’t perform that action at this time.
0 commit comments