chore: refactor read-write lock on agent (#2225)
Co-authored-by: Alice Hau <ahau@squareup.com>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user