I have created small application:
Hi olekwojcik1,
Welcome to the Google Cloud Community!
It looks like the prompt you're trying to use is being treated as a "multi-turn" prompt. Currently, when using the vertexai.preview.prompts only works with "single-turn" prompts. So even if your prompt shows up in the list and has content, if it's saved or written in a way that looks like a conversation with multiple steps, the API will give you an error.
Here are some best practices for single-turn prompts:
For more detailed information on prompt management, you may also refer to this documentation.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
Yes, it seems to be working fine. But currently facing another issue:
"gemini_response": "Error generating Gemini response: 404 Publisher Model `projects/vertex-cs/locations/us-central1/publishers/google/models/gemini-1.5-flash-001` was not found or your project does not have access to it. Please ensure you are using a valid model version. For more information, see: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions", "id": "1783371026613141504",
code example: