Skip to content

Commit d2ae760

Browse files
authored
Merge pull request transformerlab#775 from transformerlab/fix/output-terminal
Fix Output Terminal going blank when re-connecting to another API server
2 parents 40c71dc + fc6355f commit d2ae760

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/renderer/App.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
ExperimentInfoProvider,
2626
useExperimentInfo,
2727
} from './lib/ExperimentInfoContext';
28+
import * as chatAPI from './lib/transformerlab-api-sdk';
2829

2930
type AppContentProps = {
3031
connection: string;
@@ -151,7 +152,11 @@ function AppContent({
151152
width: '100%',
152153
}}
153154
>
154-
<OutputTerminal initialMessage="** Running a Model will Display Output Here **" />
155+
<OutputTerminal
156+
key={connection}
157+
logEndpoint={chatAPI.Endpoints.ServerInfo.StreamLog()}
158+
initialMessage="** Running a Model will Display Output Here **"
159+
/>
155160
</Box>
156161
</Box>
157162
<AutoUpdateModal />

0 commit comments

Comments
 (0)