googleapis / googleapis/python-genai

grpc_proxy no longer supported in latest Python SDK? need a way to set proxy only for genai without affecting internal services

Offen
#816 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
priority: p2 type: feature request
Vorherrschende Sprache
Python
Sterne
4k
Forks
1k
Ø Merge
2 T. 12 Std.
Gemergte PRs (30 T.)
41

Beschreibung

In the latest version of the Python SDK, it seems that grpc_proxy is no longer supported or has no effect.

Our typical use case requires accessing genai services via a proxy, while at the same time running internal services (e.g., downloading images and videos from internal networks) that must not go through a proxy.

Setting global environment variables such as:

os.environ['HTTP_PROXY'] = proxy_address
os.environ['HTTPS_PROXY'] = proxy_address

is not acceptable in our case, especially in a multiprocessing context, because it will interfere with internal services that are not supposed to use any proxy.

Previously, we were able to control access to genai using:

os.environ['grpc_proxy'] = proxy_address

This allowed us to isolate proxy usage to only genai-related calls, without affecting other parts of the system.

We would like to request:

- Either continued support for grpc_proxy (or an equivalent mechanism)
- Or an official way to configure proxy settings specifically for genai access, without requiring global proxy environment variables

This is particularly important in environments where multiple processes are running and some require proxy while others must not use it.

Thanks!

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Es werden keine Dateien oder Tests genannt. Beginne damit nachzuverfolgen, wie das Python SDK grpc_proxy behandelt und wie genai-Serviceaufrufe ihre Transports erstellen; vergleiche dies mit dem hier beschriebenen Verhalten der globalen HTTP_PROXY und HTTPS_PROXY. Als erledigt gilt die Dokumentation oder Implementierung eines offiziellen Proxy-Mechanismus pro genai, der andere Services oder Prozesse nicht beeinflusst.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
grpc, python
Bereich
api, networking
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.