MCPcopy Create free account
hub / github.com/Roy3838/Observer / resetState

Function resetState

app/src/utils/pullModelManager.ts:44–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42};
43
44const resetState = () => {
45 setState({
46 status: 'idle',
47 modelName: '',
48 statusText: '',
49 errorText: '',
50 progress: 0,
51 completedBytes: 0,
52 totalBytes: 0,
53 });
54}
55
56const pullModel = async (modelName: string, serverAddress: string) => {
57 if (state.status === 'pulling') {

Callers 3

handleNextFunction · 0.85
handleCloseAndResetFunction · 0.85
pullModelFunction · 0.85

Calls 1

setStateFunction · 0.85

Tested by

no test coverage detected