Skip to content

Commit 4e636e5

Browse files
committed
fix prediction error
1 parent 9c11325 commit 4e636e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/llm/llms/OpenAI.ts

+2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ class OpenAI extends BaseLLM {
150150
finalOptions.max_completion_tokens = undefined;
151151

152152
finalOptions.prediction = options.prediction;
153+
} else {
154+
finalOptions.prediction = undefined;
153155
}
154156

155157
return finalOptions;

0 commit comments

Comments
 (0)