Skip to content

Commit

Permalink
fix: remove debugging code (#1546)
Browse files Browse the repository at this point in the history
* remove unused imports

* batch prompts

* delete debugging code
  • Loading branch information
niehaus59 authored Jun 25, 2022
1 parent 137577d commit 7f9eaec
Showing 1 changed file with 1 addition and 5 deletions.
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

0 comments on commit 7f9eaec

Please sign in to comment.