( name: string, prompts: Partial<ProjectPrompts> )
| 92 | } |
| 93 | |
| 94 | export async function updateProjectPrompts( |
| 95 | name: string, |
| 96 | prompts: Partial<ProjectPrompts> |
| 97 | ): Promise<void> { |
| 98 | await fetchJSON(`/projects/${encodeURIComponent(name)}/prompts`, { |
| 99 | method: 'PUT', |
| 100 | body: JSON.stringify(prompts), |
| 101 | }) |
| 102 | } |
| 103 | |
| 104 | export async function updateProjectSettings( |
| 105 | name: string, |
nothing calls this directly
no test coverage detected