CodepilotX

CodepilotX · Acciones GPT

phindCodeLLaMa

API for interacting with CodeLLaMa model fine-tuned by phind.

  • POST /chat/completionsGet chat completions from the CodeLLaMa.
Esquema original API
openapi: 3.0.0
info:
  title: phindCodeLLaMa
  description: API for interacting with CodeLLaMa model fine-tuned by phind.
  version: 1.0.0
servers:
  - url: https://openrouter.ai/api/v1
    description: Main API server
paths:
  /chat/completions:
    post:
      operationId: getChatCompletions
      summary: Get chat completions from the CodeLLaMa.
      security:
        - OpenRouterAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatRequest'
      responses:
        '200':
          description: Successful response with generated content.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatResponse'
components:
  schemas:
    ChatRequest:
      type: object
      properties:
        model:
          type: string
          description: Identifier for the model. Must be phind/phind-codellama-34b.
        messages:
          type: array
          description: Messages for the model to process.
          items:
            type: object
            properties:
              role:
                type: string
                description: Role of the message sender (e.g., 'user').
              content:
                type: string
                description: Content of the message.
    ChatResponse:
      type: object
      properties:
        responses:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
                description: Response message.
  securitySchemes:
    OpenRouterAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

searchGitHub

API for getting info from GitHub.

  • GET /search/repositoriesSearch repositories by name.
  • GET /users/{username}Fetches a single user's information.
  • GET /users/{username}/reposLists repositories for a specified user.
  • GET /repos/{owner}/{repo}/issuesLists issues for a specified repository.
Esquema original API
openapi: 3.0.0
info:
  title: searchGitHub
  description: API for getting info from GitHub.
  version: 1.5.0
servers:
  - url: https://api.github.com
    description: GitHub API server
paths:
  /search/repositories:
    get:
      operationId: searchRepositories
      summary: Search repositories by name.
      parameters:
        - name: q
          in: query
          required: true
          description: The query string to search for repositories by name.
          schema:
            type: string
        - name: page
          in: query
          required: false
          description: Page number of the results to fetch.
          schema:
            type: integer
            default: 1
        - name: per_page
          in: query
          required: false
          description: Number of results per page.
          schema:
            type: integer
            default: 30
      responses:
        '200':
          description: List of repositories matching the search query.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Repository'
        '404':
          description: No repositories found matching the query.

  /users/{username}:
    get:
      operationId: getUserInfo
      summary: Fetches a single user's information.
      parameters:
        - name: username
          in: path
          required: true
          description: Username of the user to fetch.
          schema:
            type: string
      responses:
        '200':
          description: User information retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '404':
          description: User not found.

  /users/{username}/repos:
    get:
      operationId: listUserRepositories
      summary: Lists repositories for a specified user.
      parameters:
        - name: username
          in: path
          required: true
          description: Username of the user whose repositories are to be listed.
          schema:
            type: string
        - name: page
          in: query
          required: false
          description: Page number of the results to fetch.
          schema:
            type: integer
            default: 1
        - name: per_page
          in: query
          required: false
          description: Number of results per page.
          schema:
            type: integer
            default: 3
            maximum: 5
      responses:
        '200':
          description: List of repositories retrieved successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Repository'

  /repos/{owner}/{repo}/issues:
    get:
      operationId: listRepositoryIssues
      summary: Lists issues for a specified repository.
      parameters:
        - name: owner
          in: path
          required: true
          description: Owner of the repository.
          schema:
            type: string
        - name: repo
          in: path
          required: true
          description: Name of the repository.
          schema:
            type: string
        - name: page
          in: query
          required: false
          description: Page number of the results to fetch.
          schema:
            type: integer
            default: 1
        - name: per_page
          in: query
          required: false
          description: Number of results per page.
          schema:
            type: integer
            default: 30
      responses:
        '200':
          description: Issues retrieved successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Issue'

components:
  schemas:
    User:
      type: object
      properties:
        login:
          type: string
        id:
          type: integer
        node_id:
          type: string
        avatar_url:
          type: string
        url:
          type: string
        html_url:
          type: string
        type:
          type: string
        site_admin:
          type: boolean

    Repository:
      type: object
      properties:
        id:
          type: integer
        node_id:
          type: string
        name:
          type: string
        full_name:
          type: string
        private:
          type: boolean
        owner:
          $ref: '#/components/schemas/User'
        html_url:
          type: string
        description:
          type: string
        fork:
          type: boolean
        url:
          type: string

    Issue:
      type: object
      properties:
        id:
          type: integer
        node_id:
          type: string
        title:
          type: string
        user:
          $ref: '#/components/schemas/User'
        state:
          type: string
        comments:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        body:
          type: string

searchStackExchange

API for getting info on Stack Exchange.

  • GET /searchSearches questions based on a query string.

    This method allows searching for questions based on a query string, optionally filtered by tags and sorted.

Esquema original API
openapi: 3.0.0
info:
  title: searchStackExchange
  description: API for getting info on Stack Exchange.
  version: 2.3
servers:
  - url: https://api.stackexchange.com/2.3
    description: Stack Exchange API Server
paths:
  /search:
    get:
      operationId: searchQuestions
      summary: Searches questions based on a query string.
      description: This method allows searching for questions based on a query string, optionally filtered by tags and sorted.
      parameters:
        - name: site
          in: query
          description: The Stack Exchange site to query.
          required: true
          schema:
            type: string
        - name: intitle
          in: query
          description: Text which must appear in returned questions' titles.
          required: true
          schema:
            type: string
        - name: tagged
          in: query
          description: List of tags the question must have.
          required: false
          schema:
            type: string
        - name: sort
          in: query
          description: Sorts accepted by this method (activity, votes, creation, relevance).
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A list of questions that match the search criteria.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        question_id:
                          type: integer
                        title:
                          type: string
                        score:
                          type: integer
                        view_count:
                          type: integer
                        answer_count:
                          type: integer
                        creation_date:
                          type: integer
                        last_activity_date:
                          type: integer
                        owner:
                          type: object
                          properties:
                            user_id:
                              type: integer
                            display_name:
                              type: string
                            profile_image:
                              type: string
                            link:
                              type: string
                            user_type:
                              type: string
                            accept_rate:
                              type: integer
                        link:
                          type: string
                        tags:
                          type: array
                          items:
                            type: string
                required:
                  - items