方块 (@Throttle) 在 [OpenWebUI Pipe] GPT Image 1 中发帖
GPT Image 1 模型的 Pipe,支持文生图,图生图,改图
[image]
"""
title: OpenAI Image
author: Square
git_url: https://github.com/OVINC-CN/OpenWebUIPlugin.git
version: 0.0.1
licence: MIT
"""
import base64
import io
import json
import logging
import time
import uuid
from typing import AsyncIterable, List, Optional
import httpx
from fastapi import Request, UploadFile
from open_webui.env import SRC_LOG_LEVELS
from...