Skip to content

Commit 182cf48

Browse files
committed
bugfix in the chatbot correction
+ add a note on how to manage the ollama server
1 parent ccae3da commit 182cf48

File tree

8 files changed

+29
-7
lines changed

8 files changed

+29
-7
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# The CPU instance
2+
3+
## infra
4+
5+
runs in a container in stupeflip
6+
7+
## security
8+
9+
runs on port 8080; no authentication
10+
11+
## management
12+
13+
to manage it, use the `ollama` command but that requires an environment variable to be set
14+
15+
```bash
16+
export OLLAMA_HOST=0.0.0.0:8080
17+
# then you can use the ollama command as usual
18+
ollama list
19+
ollama pull gemma2:2b
20+
ollama pull mistral:7b
21+
ollama pull deepseek-r1:7b
22+
```

notebooks/tps/chatbot/.teacher/chatbot-05b.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def send_request(self, _event):
105105

106106
# authenticate if needed
107107
auth_args = {}
108-
if 'username in server_record':
108+
if 'username' in server_record:
109109
auth_args = {
110110
'auth': (server_record['username'], server_record['password'])
111111
}

notebooks/tps/chatbot/.teacher/chatbot-06.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def send_request(self, _event):
115115

116116
# authenticate if needed
117117
auth_args = {}
118-
if 'username in server_record':
118+
if 'username' in server_record:
119119
auth_args = {
120120
'auth': (server_record['username'], server_record['password'])
121121
}

notebooks/tps/chatbot/.teacher/chatbot-07a.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def send_request(self, _event):
126126

127127
# authenticate if needed
128128
auth_args = {}
129-
if 'username in server_record':
129+
if 'username' in server_record:
130130
auth_args = {
131131
'auth': (server_record['username'], server_record['password'])
132132
}

notebooks/tps/chatbot/.teacher/chatbot-07b.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def send_request(self, _event):
139139

140140
# authenticate if needed
141141
auth_args = {}
142-
if 'username in server_record':
142+
if 'username' in server_record:
143143
auth_args = {
144144
'auth': (server_record['username'], server_record['password'])
145145
}

notebooks/tps/chatbot/.teacher/chatbot-07c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def send_request_2(self, _event):
143143

144144
# authenticate if needed
145145
auth_args = {}
146-
if 'username in server_record':
146+
if 'username' in server_record:
147147
auth_args = {
148148
'auth': (server_record['username'], server_record['password'])
149149
}

notebooks/tps/chatbot/.teacher/chatbot-08.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def send_request_2(self, _event):
143143

144144
# authenticate if needed
145145
auth_args = {}
146-
if 'username in server_record':
146+
if 'username' in server_record:
147147
auth_args = {
148148
'auth': (server_record['username'], server_record['password'])
149149
}

notebooks/tps/chatbot/.teacher/chatbot-09.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def send_request_2(self, _event):
198198

199199
# authenticate if needed
200200
auth_args = {}
201-
if 'username in server_record':
201+
if 'username' in server_record:
202202
auth_args = {
203203
'auth': (server_record['username'], server_record['password'])
204204
}

0 commit comments

Comments
 (0)