Skip to content

Commit 77addba

Browse files
authored
Merge pull request #30 from jaseci-labs/byllm-v2
ByLLM website tweaks
2 parents 333f371 + 4d48acd commit 77addba

File tree

3 files changed

+203
-144
lines changed

3 files changed

+203
-144
lines changed

byllm/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848
"embla-carousel-react": "^8.6.0",
4949
"input-otp": "^1.4.2",
5050
"lucide-react": "^0.462.0",
51+
"monaco-editor-textmate": "^4.0.0",
52+
"monaco-textmate": "^3.0.1",
5153
"next-themes": "^0.3.0",
54+
"onigasm": "^2.2.5",
5255
"prismjs": "^1.30.0",
5356
"react": "^18.3.1",
5457
"react-day-picker": "^8.10.1",
@@ -61,10 +64,7 @@
6164
"tailwind-merge": "^2.6.0",
6265
"tailwindcss-animate": "^1.0.7",
6366
"vaul": "^0.9.9",
64-
"zod": "^3.25.76",
65-
"monaco-editor-textmate": "^4.0.0",
66-
"monaco-textmate": "^3.0.1",
67-
"onigasm": "^2.2.5"
67+
"zod": "^3.25.76"
6868
},
6969
"devDependencies": {
7070
"@eslint/js": "^9.32.0",

byllm/src/assets/byllmeval.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import jaclang
2+
from enum import Enum
3+
from byllm import Model, by
4+
llm = Model(model_name='gpt-4o-mini')
5+
6+
class Tell(Enum):
7+
YES = 'yes'
8+
NO = 'no'
9+
10+
@by(llm)
11+
def yes_or_no(question: str) -> Tell:
12+
"""Yes/No answering Bot"""
13+
14+
question: str = 'Are you an AI?'
15+
answer: Tell = yes_or_no(question)
16+
print(f'Question: {question}')
17+
print('The bot answered ' + answer.value)

0 commit comments

Comments
 (0)