mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-10 00:20:06 +08:00
add trailing slash to text_labels post path
This commit is contained in:
@@ -207,7 +207,7 @@ export class OasstApiClient {
|
||||
* Send a report about a message
|
||||
*/
|
||||
async send_report(message_id: string, user: BackendUserCore, text: string) {
|
||||
return this.post("/api/v1/text_labels", {
|
||||
return this.post("/api/v1/text_labels/", {
|
||||
type: "text_labels",
|
||||
message_id,
|
||||
labels: [], // Not yet implemented
|
||||
|
||||
@@ -9,7 +9,7 @@ const handler = withoutRole("banned", async (req, res, token) => {
|
||||
// Parse out the local message_id, and the interaction contents.
|
||||
const { message_id, label_map } = req.body;
|
||||
|
||||
const interactionRes = await fetch(`${process.env.FASTAPI_URL}/api/v1/text_labels`, {
|
||||
const interactionRes = await fetch(`${process.env.FASTAPI_URL}/api/v1/text_labels/`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"X-API-Key": process.env.FASTAPI_KEY,
|
||||
|
||||
Reference in New Issue
Block a user