Skip to content

Conversation

williamFalcon
Copy link
Contributor

from litai import LLM

llm = LLM()
response = llm.chat('hi there')
print(response)

if llm.if_('this TV is amazing', "is this a positive review?"):
    print("👍")
else:
    print("👎")

sentiment = llm.classify("This movie was awful.", ["positive", "negative"])
print("Sentiment:", sentiment)

@williamFalcon williamFalcon merged commit 63f608d into main Jul 28, 2025
29 checks passed
@williamFalcon williamFalcon deleted the h2 branch July 28, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant