chore: refactor read-write lock on agent (#2225)

Co-authored-by: Alice Hau <ahau@squareup.com>
This commit is contained in:
Salman Mohammed
2025-04-23 23:46:22 -03:00
committed by GitHub
parent 85e2ee3984
commit 199fa6adbc
24 changed files with 409 additions and 237 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ interface initializeAgentProps {
}
export async function initializeAgent({ model, provider }: initializeAgentProps) {
const response = await fetch(getApiUrl('/agent'), {
const response = await fetch(getApiUrl('/agent/update_provider'), {
method: 'POST',
headers: {
'Content-Type': 'application/json',