Skip to content

Commit

Permalink
Fix tests (#35)
Browse files Browse the repository at this point in the history
Change tests to use existing models not deprecated models
  • Loading branch information
nickhs authored Jul 13, 2024
1 parent b1756a4 commit e90eac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openai-hs/test/ApiSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ apiTests2022 =
do
describe "embeddings" $ do
it "computes embeddings" $ \cli -> do
res <- forceSuccess $ engineCreateEmbedding cli (EngineId "babbage-similarity") (EngineEmbeddingCreate "This is nice")
res <- forceSuccess $ engineCreateEmbedding cli (EngineId "text-embedding-3-small") (EngineEmbeddingCreate "This is nice")
V.null (olData res) `shouldBe` False
let embedding = V.head (olData res)
V.length (eneEmbedding embedding) `shouldBe` 2048
Expand Down Expand Up @@ -149,7 +149,7 @@ apiTests2022 =
do
completionResults <-
forceSuccess $
engineCompleteText cli (EngineId "text-curie-001") $
engineCompleteText cli (EngineId "gpt-3.5-turbo-instruct") $
(defaultEngineTextCompletionCreate "Why is the house ")
{ tccrMaxTokens = Just 2
}
Expand Down

0 comments on commit e90eac9

Please sign in to comment.