Stub LLM Calls with Gem RubyLLM::Test #741
toddkummer
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If you have application logic that interacts with an LLM, it can be hard to test. After having iterated through a few versions, I just released the RubyLLM::Test gem that allows you to stub cleanly and easily.
You can stub multiple calls, stub in blocks, pass in a
RubyLLM::Messagefor full control, or pass in a hash to get a JSON response.https://github.com/RockSolt/ruby_llm-test
Beta Was this translation helpful? Give feedback.
All reactions