erkw (@zzzx9)在openwebui中为gemini-2.0-flash-exp启用搜索 中发帖

https://linux.do/t/topic/292141 
在佬的基础上移除了不能免费搜索的其他模型,只返回一个Google: gemini-2.0-flash-exp
[image]
import json
import random
import httpx
import requests
from typing import List, AsyncGenerator, Callable, Awaitable
from pydantic import BaseModel, Field


class Pipe:
class Valves(BaseModel):
GOOGLE_API_KEYS_STR: str = Field(
default="", description="API Keys for Google, use ...