googleapis / googleapis/python-aiplatform

prompts.get_version doesn't provide the prompt_data of the particular version

Open
#5,907 0 comments 2 reactions 0 assignees View on GitHub
api: vertex-ai
Dominant language
Python
Stars
905
Forks
465
Avg merge
1d 13h
Merged PRs (30d)
44

Description

The **_prompts.get_version_** function is intended to retrieve the content of a specific versioned prompt, but currently returns the latest prompt data instead — indicating a bug in its implementation.

#### Environment details
- Python version: >= 3.11
- `google-cloud-aiplatform` version: - v1.119.0 and v1.120.0

#### Steps to reproduce

1. Create multiple versions of prompts using **_prompts.create_version_**
2. Fetch the particular version of prompt using **_prompts.get_version_**

#### Code example

Image

#### Output

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.