Skip to content

Commit b29125d

Browse files
authored
fix(google_gemini.py): increment version to 1.8.3
1 parent 5db04da commit b29125d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pipelines/google/google_gemini.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
author_url: https://github.com/owndev/
55
project_url: https://github.com/owndev/Open-WebUI-Functions
66
funding_url: https://github.com/sponsors/owndev
7-
version: 1.8.2
7+
version: 1.8.3
88
required_open_webui_version: 0.6.26
99
license: Apache License 2.0
1010
description: Highly optimized Google Gemini pipeline with advanced image generation capabilities, intelligent compression, and streamlined processing workflows.
@@ -191,11 +191,11 @@ class Valves(BaseModel):
191191
description="The Google Cloud region to use with Vertex AI.",
192192
)
193193
VERTEX_AI_RAG_STORE: str | None = Field(
194-
default=os.getenv("VERTEX_AI_RAG_STORE"),
194+
default=os.getenv("GOOGLE_VERTEX_AI_RAG_STORE"),
195195
description="Vertex AI RAG Store path for grounding (e.g., projects/PROJECT/locations/LOCATION/ragCorpora/DATA_STORE_ID). Only used when USE_VERTEX_AI is true.",
196196
)
197197
USE_PERMISSIVE_SAFETY: bool = Field(
198-
default=os.getenv("USE_PERMISSIVE_SAFETY", "false").lower() == "true",
198+
default=os.getenv("GOOGLE_USE_PERMISSIVE_SAFETY", "false").lower() == "true",
199199
description="Use permissive safety settings for content generation.",
200200
)
201201
MODEL_CACHE_TTL: int = Field(
@@ -211,6 +211,11 @@ class Valves(BaseModel):
211211
description="Default system prompt applied to all chats. If a user-defined system prompt exists, "
212212
"this is prepended to it. Leave empty to disable.",
213213
)
214+
ENABLE_FORWARD_USER_INFO_HEADERS: bool = Field(
215+
default=os.getenv("GOOGLE_ENABLE_FORWARD_USER_INFO_HEADERS", "false").lower()
216+
== "true",
217+
description="Whether to forward user information headers.",
218+
)
214219

215220
# Image Processing Configuration
216221
IMAGE_MAX_SIZE_MB: float = Field(
@@ -250,12 +255,6 @@ class Valves(BaseModel):
250255
default=os.getenv("GOOGLE_IMAGE_HISTORY_FIRST", "true").lower() == "true",
251256
description="If true (default), history images precede current message images; if false, current images first.",
252257
)
253-
254-
ENABLE_FORWARD_USER_INFO_HEADERS: bool = Field(
255-
default=os.getenv("ENABLE_FORWARD_USER_INFO_HEADERS", "false").lower()
256-
== "true",
257-
description="Whether to forward user information headers.",
258-
)
259258

260259
# ---------------- Internal Helpers ---------------- #
261260
async def _gather_history_images(

0 commit comments

Comments
 (0)