Skip to content

Instantly share code, notes, and snippets.

@mazaira
mazaira / client.rb
Created January 26, 2024 07:27
Ruby Client Privategpt
require 'faraday'
require 'json'
class Prclient
BASE_URL = 'https://changeme.com/'
def initialize
@conn = Faraday.new(url: BASE_URL) do |faraday|
faraday.request :json
faraday.response :json, content_type: /\bjson$/
openapi: 3.0.0
info:
title: Depasify API
description: API for availability check.
contact:
name: Depasify Support
email: hello@depasify.com
version: 2.0.1
servers:
- url: 'http://localhost:3000/api/v2'
# Docker compose
```
version: "3.0"
services:
redis:
image: redis:alpine
restart: unless-stopped
ports:
- "6379:6379"
expose:

Keybase proof

I hereby claim:

  • I am mazaira on github.
  • I am mazaira (https://keybase.io/mazaira) on keybase.
  • I have a public key ASDdKoybYqIkS3zZbDPLYCQmwhQSxywIpxJiM6cNSvsyvQo

To claim this, I am signing this object: