ChatGPT is incorrectly making action requests with double leading slashes

I’m making my first action-using GPT. I’m an experienced developer, so I don’t think I need help with the backend creation! I’m sure I’m overlooking something obvious here. However, my GPT keeps making requests to //manage_test rather than /manage_test.

Here’s the schema:

openapi: 3.0.0
info:
  title: Test Generator API
  version: 1.0.0
  description: API for creating tests.

servers:
  - url: https://some-cool-domain.123/
    description: The one and only API server

paths:
  /manage_test:
    post:
      summary: Create a new test
      operationId: createTest
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTestSchema"
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  test_id:
                    type: string

components:
  schemas:
    CreateTestSchema:
      type: object
      required:
        - title
      properties:
        title:
          type: string
          description: The title of the test.

What’s going on here?

Your URL has a trailing slash.

Christ. Thanks! I completely missed that.

1 Like