tests/testthat/test-openai_api_calls.R

test_that("fetching models works", {
  expect_type(get_available_models('openai'),'character')
})



test_that("fetching models works only when service is provided", {
  expect_error(get_available_models())
})

Try the mergenstudio package in your browser

Any scripts or data that you put into this service are public.

mergenstudio documentation built on Sept. 11, 2024, 5:17 p.m.