WindmillWWindmill
Powered by
MigaloM
Windmill•8mo ago•
6 replies
Migalo

How do I interpret a variable that exists in JSON data?

({
    "messages": [
        {
            "role": "user",
            "content": "$var:f/prompts/history_prompt"
        }
    ],
    "model": "o1",
    "logprobs": false,
    "response_format": {
        "type": "text"
    },
    "stream": false,
    "user": "$var:f/ai_api_key/opanai-lab-p1-key"
})
({
    "messages": [
        {
            "role": "user",
            "content": "$var:f/prompts/history_prompt"
        }
    ],
    "model": "o1",
    "logprobs": false,
    "response_format": {
        "type": "text"
    },
    "stream": false,
    "user": "$var:f/ai_api_key/opanai-lab-p1-key"
})
json
But the history_prompt variable isn't being interpreted.
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

"variable is not defined", but it exists
GarrettGGarrett / help
5mo ago
How can I use a context variable in a branch predicate?
andnessAandness / help
3y ago
Possible see partial data from large json data
fooosieeeFfooosieee / help
16mo ago
Where do I configure the default JSON formatter?
taydenTtayden / help
14mo ago