Skip to content

Commit 54e7e1d

Browse files
committed
Rename llm variable to model
1 parent f2ca866 commit 54e7e1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ loaded LLM is as straightforward as:
2626
```python
2727
import lmstudio as lms
2828

29-
llm = lms.llm()
30-
llm.complete("Once upon a time,")
29+
model = lms.llm()
30+
model.complete("Once upon a time,")
3131
```
3232

3333
Requesting a chat response instead only requires the extra step of
@@ -42,12 +42,12 @@ EXAMPLE_MESSAGES = (
4242
"I will not buy this record, it is scratched."
4343
)
4444

45-
llm = lms.llm()
45+
model = lms.llm()
4646
chat = lms.Chat("You are a helpful shopkeeper assisting a foreign traveller")
4747
for message in EXAMPLE_MESSAGES:
4848
chat.add_user_message(message)
4949
print(f"Customer: {message}")
50-
response = llm.respond(chat)
50+
response = model.respond(chat)
5151
chat.add_assistant_response(response)
5252
print(f"Shopkeeper: {response}")
5353
```

0 commit comments

Comments
 (0)