MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / handleRoleChange

Function handleRoleChange

frontend/src/components/playgroundModel/index.tsx:319–325  ·  view source on GitHub ↗
(value: any, index: number)

Source from the content-addressed store, hash-verified

317 setStreamSwitch(e.target.checked)
318 }
319 const handleRoleChange = (value: any, index: number) => {
320 setContentList((prev) => {
321 prev[index].role = value
322 localStorage.setItem('modelContentList', JSON.stringify([...prev]))
323 return [...prev]
324 })
325 }
326 const handleChangeContentValue = (value: any) => {
327 setSystemContent(value)
328 }

Callers 1

PlaygroundModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected