Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Blog Pricing

Carmine Paolino

๐Ÿ‘ค Speaker
201 total appearances

Appearances Over Time

Podcast Appearances

Coder Radio
639: RubyLLM with Carmine Paolino

And also, you can then have all kinds of other little nuggets of pleasure when you use Ruby LLM because now it's one interface and you can use it with whatever other APIs that are out there.

Coder Radio
639: RubyLLM with Carmine Paolino

So whether or not you're using Anthropic or OpenAI or...

Coder Radio
639: RubyLLM with Carmine Paolino

OpenRouter or Gemini or Vertex AI or any of the 11 supported providers that we have at the moment, you don't have to know anything about the underlying details of the actual chat.

Coder Radio
639: RubyLLM with Carmine Paolino

And we do all of the translation ourselves.

Coder Radio
639: RubyLLM with Carmine Paolino

And it's very simple.

Coder Radio
639: RubyLLM with Carmine Paolino

You know, it's basically made of two parts, right?

Coder Radio
639: RubyLLM with Carmine Paolino

So...

Coder Radio
639: RubyLLM with Carmine Paolino

There is the Ruby LM Ruby interface, right?

Coder Radio
639: RubyLLM with Carmine Paolino

So with all of the messages that are Ruby objects, the attachments are Ruby objects, all of that clear, plain Ruby.

Coder Radio
639: RubyLLM with Carmine Paolino

And then we have the providers and the providers have an adapter interface.

Coder Radio
639: RubyLLM with Carmine Paolino

So then you can, you know, have, you can develop your own provider really easily.

Coder Radio
639: RubyLLM with Carmine Paolino

And they are basically comprised of two types of functions.

Coder Radio
639: RubyLLM with Carmine Paolino

They are like the parse functions and the render functions.

Coder Radio
639: RubyLLM with Carmine Paolino

So the parse functions, they parse whatever the provider outputs and the render functions, they render to the provider, whatever we have in the Ruby LLM objects.

Coder Radio
639: RubyLLM with Carmine Paolino

So

Coder Radio
639: RubyLLM with Carmine Paolino

We do that translation every single time we communicate with a provider.

Coder Radio
639: RubyLLM with Carmine Paolino

And that allows us to even have this little magic thing that I like to say all the time, which is to even change the provider and the model during a conversation.

Coder Radio
639: RubyLLM with Carmine Paolino

Because all of the conversation is actually saved in plain old Ruby objects in Ruby LLM.

Coder Radio
639: RubyLLM with Carmine Paolino

That's how most APIs actually work right now.

Coder Radio
639: RubyLLM with Carmine Paolino

There's only one API that doesn't work like that right now, which is the responses API by OpenAI.