List os Dict

I'm learn mojo, and I wnat use for llm, but my payload need be
[{"role": "role", "content": "content"}, {"role": "role", "content": "content"}]


the openai_integration.py work , I'm using py, ecause mojo haven't http client to request 😦
my struct is

@value
struct Role:
    var role: String
    var content: String


How I could use this struct for create dinamy payload?
2024-03-29_14-09__.png
Was this page helpful?