Skip to content

feat - improve classify to use list#14

Merged
williamFalcon merged 8 commits into
mainfrom
h2
Jul 28, 2025
Merged

feat - improve classify to use list#14
williamFalcon merged 8 commits into
mainfrom
h2

Conversation

@williamFalcon
Copy link
Copy Markdown
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