Skip to content

Option to change base_url for Google Generative AIΒ #1050

@Lambdua

Description

@Lambdua

#783 This closed issue did not really solve the problem.

This api_endpoint can only modify like aaa.bdd.com but cannot replace the full URL address; so it's not very useful and cannot meet the requirements.

It is still necessary to add something similar to base_url modification; In fact, the gemini api already supports a similar approach:

client = genai.Client(api_key=api_key, http_options=types.HttpOptions(api_version='v1beta', base_url=base_url))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions