Jurgis Sakalauskas cd119a33f4 imagic err
2025-01-11 12:52:10 +02:00
2025-01-11 12:34:31 +02:00
2025-01-08 12:45:00 +02:00
2025-01-08 12:45:00 +02:00
2025-01-08 12:45:00 +02:00
2025-01-08 12:45:00 +02:00
2025-01-11 11:33:09 +02:00
2025-01-08 12:45:00 +02:00
2025-01-08 12:45:00 +02:00
2025-01-08 12:45:00 +02:00
2025-01-11 11:50:04 +02:00
2025-01-08 12:45:00 +02:00
2025-01-08 12:45:00 +02:00
2025-01-08 12:45:00 +02:00
2025-01-08 12:45:00 +02:00
2025-01-11 12:34:31 +02:00
2025-01-08 12:45:00 +02:00
2025-01-08 12:45:00 +02:00
2025-01-11 12:52:10 +02:00
2025-01-08 12:45:00 +02:00
2025-01-08 12:45:00 +02:00

services for LibreChat agents actions or whatever the use case might be

This is a personal Laravel based app that provides a services api for LibreChat agents actions.

Services/Usage

Goolge Imagen image generation

based on Vertex AI imagen API

GET /generate-image?prompt=...&negative_prompt=...&sample_count=...&aspect_ratio=...

or

POST /generate-image body

{
    "prompt": "generate me an image",
    "sampleCount": 1,
    "negativePrompt": "optional",
    "aspectRatio": "1:1, 9:16, 16:9, 3:4, or 4:3. default 1:1"
}

Response

{
  "generations": [
    {
      "url": "http://localhost:3000/storage/images/677e3c2eed7f2.png",
      "id": "677e3c2eed7f2"
    },
    {
      "url": "http://localhost:3000/storage/images/677e3c2eef716.png",
      "id": "677e3c2eef716"
    }
  ]
}

TODO - provide schema for librechat agents actions

TODO - add api key or smth

TODO - add delete images or expire

TODO - add upscale

Setup/install

Generate laravel key, smth like php artisan key:generate

In Google cloud generate auth creds as in auth.json.example.json

Set the env variables from env.example

docker compose up

License

No licence, do whatever you want. Laravel part is probably licenced.

S
Description
No description provided
Readme 118 KiB
Languages
PHP 98.9%
Dockerfile 1.1%