antaz / llm

Ruby adapter for various LLM providers
MIT License
5 stars 1 forks source link

'thread' is ambigious #50

Open 0x1eef opened 4 hours ago

0x1eef commented 4 hours ago

Especially in the context of programming, thread could be easily misunderstood as something else (like a separate thread of execution / Thread.new). I suggest we at least support an alias:

bot = llm.openai(key)
bot.chat "hello"
bot.messages.each do |message|
  # ..
end
antaz commented 4 hours ago

I have always been skeptical about that too. Ready to change it if we have a better idea