Image Gen Filter v2

tool

A modification of an old Image Gen Filter for compatibility with v0.5.X. Let the LLM decide whether or not to generate a picture from the context.

eidenz
@eidenz
·
2 years ago
208
0
1.2K
Created Jan 17, 2025
image_gen_filter_v2.py
Python · 180 lines
"""
title: Image Gen Filter v2
author: Eidenz
version: 0.3
required_open_webui_version: 0.5.4
"""

from pydantic import BaseModel, Field
from fastapi import Request
from typing import Callable, Awaitable, Any, Optional, Literal
import json
import re

A modification of an old Image Gen Filter for compatibility with v0.5.X. Let the LLM decide whether or not to generate a picture from the context.


0