Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-aiplatform
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.45.0
Choose a base ref
...
head repository: googleapis/python-aiplatform
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.46.0
Choose a head ref
  • 7 commits
  • 42 files changed
  • 5 contributors

Commits on Mar 28, 2024

  1. Revert "chore(main): release 1.45.0 (#3443)" (#3513)

    This reverts commit 44ab3d4.
    sasha-gitg authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    b89becc View commit details
    Browse the repository at this point in the history
  2. Copybara import of the project:

    --
    ccbbe38 by release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>:
    
    chore(main): release 1.45.0
    
    COPYBARA_INTEGRATE_REVIEW=#3443 from googleapis:release-please--branches--main ccbbe38
    PiperOrigin-RevId: 619994937
    release-please[bot] authored and copybara-github committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    60b44f2 View commit details
    Browse the repository at this point in the history
  3. chore: LVM - Update a few flag values and interaction between differe…

    …nt parameters
    
    Changed flags:
    
    `maskMode` is it's own struct in the API, encapsulating `maskType` and `classes`
    
    `maskMode` can only be set (even to an empty value) if two conditions are satisfied:
    - `mask` is None
    - `editMode` is not `product-image`
    The logic now reflects this
    
    PiperOrigin-RevId: 620092866
    vertex-sdk-bot authored and copybara-github committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    d4c3c66 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. feat: Python SDK for Vertex Feature Store.

    PiperOrigin-RevId: 620105958
    vertex-sdk-bot authored and copybara-github committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    5015d25 View commit details
    Browse the repository at this point in the history
  2. feat: GenAI - Automatic Function Calling feature

    The Automatic Function Calling (AFC) feature automates the function calling handling.
    AFC reduces manual user steps when using Function Calling.
    AFC makes it easy to use native functions (e.g. Python) with the Function Calling feature.
    AFC makes it possible for the user to instruct the SDK to let the model call the user-provided functions automatically.
    
    AFC can be enabled when starting a chat.
    
    Usage:
    ```python
    from vertexai.preview.generative_models import GenerativeModel, FunctionCallingConfig, FunctionDeclaration, Tool
    
    # Some function that the model will be able to call
    def get_current_weather(location: str, unit: str = "centigrade"):
        """Gets weather in the specified location.
    
        Args:
            location: The location for which to get the weather.
            unit: Optional. Temperature unit. Can be Centigrade or Fahrenheit. Defaults to Centigrade.
    
        Returns:
            The weather information as a dict.
        """
        # Add actual implementation.
        return dict(
            location=location,
            unit=unit,
            weather="Super nice, but maybe a bit hot.",
        )
    
    # AFC feature 1: Automatically creating function declaration and schema from a Python function:
    get_current_weather_declaration = FunctionDeclaration.from_func(get_current_weather)
    
    weather_tool = Tool([get_current_weather_declaration])
    
    fc_model = GenerativeModel("gemini-pro", tools=[weather_tool])
    # AFC feature 2: Activating the Automatic Function Calling
    afc_responder = AutomaticFunctionCallingResponder(
        # Optional:
        max_number_of_automatic_function_calls=5,
    )
    chat = model.start_chat(responder=afc_responder)
    
    # Using the AFC-enabled chat
    fc_chat.send_message("What is the weather like in Boston?")
    # With AFC, send_message returns the final model answer rather than `function_call` that the user has to handle.
    # Notice how the model slightly changes the function response to incorporate it in the final answer.
    ```
    
    PiperOrigin-RevId: 620189258
    Ark-kun authored and copybara-github committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    eef84c6 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2024

  1. chore: update supporting XGBoost version of the pre-built serving con…

    …tainers
    
    PiperOrigin-RevId: 620427553
    yinghsienwu authored and copybara-github committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    e0f5601 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. chore(main): release 1.46.0 (#3522)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Apr 1, 2024
    Configuration menu
    Copy the full SHA
    5a853f9 View commit details
    Browse the repository at this point in the history
Loading