Commit aa1bb4fb authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent 5e7237b9
......@@ -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"]
......
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment