Skip to content

Commit f2ca866

Browse files
committed
Update code snippets in README
1 parent 2bbad8f commit f2ca866

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Using this convenience API, requesting text completion from an already
2424
loaded LLM is as straightforward as:
2525

2626
```python
27-
import lmstudio as lm
27+
import lmstudio as lms
2828

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

@@ -35,15 +35,15 @@ setting up a `Chat` helper to manage the chat history and include
3535
it in response prediction requests:
3636

3737
```python
38-
import lmstudio as lm
38+
import lmstudio as lms
3939

4040
EXAMPLE_MESSAGES = (
4141
"My hovercraft is full of eels!",
4242
"I will not buy this record, it is scratched."
4343
)
4444

45-
llm = lm.llm()
46-
chat = lm.Chat("You are a helpful shopkeeper assisting a foreign traveller")
45+
llm = lms.llm()
46+
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}")

0 commit comments

Comments
 (0)