Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove debugging code #1546

Merged
merged 9 commits into from
Jun 25, 2022
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,9 @@ class OpenAICompletionSuite extends TransformerFuzzing[OpenAICompletion] with Op

def testCompletion(completion: OpenAICompletion, df: DataFrame, requiredLength: Int = 10): Unit = {
val fromRow = CompletionResponse.makeFromRowConverter
val t = completion.transform(df)
t.collect().map(r =>
completion.transform(df).collect().map(r =>
fromRow(r.getAs[Row]("out")).choices.map(c =>
assert(c.text.length > requiredLength)))
/*completion.transform(df).collect().map(r =>
fromRow(r.getAs[Row]("out")).choices.map(c =>
assert(c.text.length > requiredLength)))*/
}

def newCompletion(): OpenAICompletion = {
Expand Down