This commit is contained in:
Timothy J. Baek 2024-06-09 14:26:49 -07:00
parent 5e7237b9cb
commit aa1bb4fb6d
2 changed files with 2 additions and 2 deletions

View File

@ -494,7 +494,7 @@ async def get_models(user=Depends(get_verified_user)):
return {"data": models}
@app.post("/api/title/completions")
@app.post("/api/task/title/completions")
async def generate_title(form_data: dict, user=Depends(get_verified_user)):
print("generate_title")
model_id = form_data["model"]

View File

@ -112,7 +112,7 @@ export const generateTitle = async (
) => {
let error = null;
const res = await fetch(`${WEBUI_BASE_URL}/api/title/completions`, {
const res = await fetch(`${WEBUI_BASE_URL}/api/task/title/completions`, {
method: 'POST',
headers: {
Accept: 'application/json',