How to set options dynamiclly?

Suppose part of my Config.json just like this.

The vlaues and value lables are set from the very beginning.

If I want to change them or get data from a http request, how should I implement this?

Thank you for your help in advance. I’m a beginner for both Popclip and progamming.

“options”: [

{
  "identifier": "model",
  "type": "multiple",
  "label": "Model",
  "description": "Choose the ChatGPT model.",
  "values": ["", "gpt-4", "gpt-4o"],
  "value labels": ["Default", "GPT-4", "GPT-4o"]
}

]

That can’t be done I’m afraid, values have to be preset in the static configuration of the extension or generated in JavaScript, But can’t access HTTP.

See for example the brackets extension for how to generate with JS.

In my python file, is any possible I get some data through http and update these config?

No, that isn’t possible. Config can only be generated dynamically in a JavaScript extension.

Thanks you. I’ll try your method first to see what happens.