OpenAI is using pydantic to create objects directly in its beta branch, it's quite nice. Anthropic is a bit more involved, as you need to involve tool calling.
LM Studio 0.3.5 introduced a bug for structured output when using pydantic and enums or literals, I created a workaround.
Also Gemini is not using Pydantic at all, instead TypedDict to create the json scheme.
And Gemini does not have a system message.
I am quite proud to have everything working, if you want to check out my code please take a look: https://github.com/HabermannR/Fantasy-Tribe-Game
Here is the backend: https://github.com/HabermannR/Fantasy-Tribe-Game/blob/main/L...
For example, this is how I call Gemini:
completion = model.generate_content(
messages[0]['content'] + ": " + messages[1]['content'],
generation_config=genai.GenerationConfig(
response_mime_type="application/json", response_schema=response_types.typed_dict
),
)
result = response_types.pydantic_model.model_validate_json(completion.text)
Happy for any feedback!
The only other thing I can think of is some purpose like HFT may need to fit a whole algorithm in L3 for absolute minimum latency, and maybe they want only the best core in each chiplet? It's probably about software licenses, though.
Lancom Systems provides cloud-managed networking solutions.
My team is responsible for processing metrics and logs sent by the devices. Our stack consists of ClickHouse, Kafka, K8s, Helm, Argo, Kotlin and Vert.x (and some Spring).
We are looking for a data platform engineer that is comfortable evolving SQL schemas, optimizing our deployments and extending our data pipeline. Previous experience in all technologies is not required, but you should have a high interest in working with data-intensive applications and a willingness to learn.
Interested? Email me at jonas.vonandrian … lancom.de