Update server/chatStream.js
Browse files- server/chatStream.js +1 -0
server/chatStream.js
CHANGED
|
@@ -119,6 +119,7 @@ export async function streamChat(ws, {
|
|
| 119 |
onNewAsset,
|
| 120 |
abortSignal,
|
| 121 |
}) {
|
|
|
|
| 122 |
const client = makeClient(accessToken, clientId);
|
| 123 |
const enabledTools = buildToolList(tools);
|
| 124 |
|
|
|
|
| 119 |
onNewAsset,
|
| 120 |
abortSignal,
|
| 121 |
}) {
|
| 122 |
+
if (!accessToken) console.log("Missing access token");
|
| 123 |
const client = makeClient(accessToken, clientId);
|
| 124 |
const enabledTools = buildToolList(tools);
|
| 125 |
|