🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

我的提示詞

輕鬆快速地組織和存取您的自訂提示詞。使用動態提示詞插入互動資訊,使您的提示詞適用於任何情況。支援:ChatGPT, Gemini, DeepSeek, Google AI Studio, Doubao, Claude, Kimi, Qwen, Grok, Mistral, LMArena, LongCat, Z.AI, Perplexity, Poe, 腾讯元宝和ChatGLM。

< 腳本我的提示詞的回應

提問/評論

§
發表於:2025-11-30

I think the most recent update broke something in how variables work, previously I would be able to get away with writing in multiples of the same variable in a prompt and it would only show up once in the window when using it, now they're all decoupled. I hope that gets resolved.

OHAS作者
§
發表於:2025-11-30

Hello Christopher Lowles!

Could you send me images to demonstrate what is happening? I couldn't quite understand the problem.

The Dynamic Prompt has been updated and now includes additional syntaxes; please read the guide to learn what has changed.

Click on "Edit" or "Add", then click on the "Information" button located to the left of the close button. There you can find 3 links to the guide in 3 different languages.

OHAS作者
§
發表於:2025-11-30

If I understood correctly, you noticed that before, when creating identical fields like [example]...[example], you only needed to fill in the information once for it to be automatically replicated.

Actually, that previous behavior was an unplanned side effect (a bug). The current functionality, where each occurrence is treated independently, is the correct and intentional behavior of the system. However, I am developing an official feature specifically to address this need to "fill once and repeat in multiple places."

In the next update, we will have a Linked Variables syntax. The logic will be simple: you define the field once using [Field Name = $variable] and then just place the shortcut $variable wherever you want to repeat the text.

Here are two examples of how this will work:

Example 1: Using names Text: "Hello [Client = $name], here is the report for Mr./Ms. $name." What happens: The system will ask you to fill in "Client" only once and will automatically replace every $name with the value you typed.

Example 2: Using locations Text: "City: [Current City = $city]. The weather in $city is great today." What happens: You type the city in the modal, and it automatically appears in both positions.

This way, you will have two distinct behaviors available:

  1. Independent fields (current syntax [field]) when you need different values.
  2. Linked fields (new syntax $var) when you want to reuse information.

Important: This feature is in the final stages of refinement and will arrive in the next update!

§
發表於:2025-12-02

Okay that's good to know, also yeah that was my take away from the way it worked, didn't know that was actually unintended and a bug lol.

OHAS作者
§
發表於:2025-12-02

It is now possible to use repeating variables. Just use the new syntax supported in the Dynamic Prompt. Ex:


Prompt:

Hello, my name is [Full name = $name] III. I am the son of $name II. He named me "$name" III to maintain the family tradition.

How it works:

  1. You define a variable once: [Full name = $name]
  2. Type the value when prompted (example: Bob)
  3. All occurrences of $name are automatically replaced

Final Result:

Hello, my name is Bob III. I am the son of Bob II. He named me "Bob" III to maintain the family tradition.


To learn more, read the guide: Dynamic Prompt


發表回覆

登入以回覆