from openai import OpenAI
client = OpenAI(
api_key="sk-...",
base_url="https://api.helmcode.com/v1", # one line changes
)
# 1 · read the ID, the deed and the bill as images
fields = client.chat.completions.create(
model="gemma-4-26b",
messages=[{
"role": "user",
"content": [
{"type": "text", "text": RETURN_JSON},
{"type": "image_url",
"image_url": {"url": scan}},
],
}],
response_format={"type": "json_object"},
)
# 2 · cross-check against the form, flag what disagrees
mismatches = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{
"role": "user",
"content": fields + form,
}],
)