SCGR commited on
Commit
fae1c15
·
1 Parent(s): 8faafdb

schema format

Browse files
py_backend/alembic/versions/0010_update_prompts_to_three_parts.py CHANGED
@@ -95,7 +95,7 @@ Return ONLY the JSON object (no markdown) in this envelope:
95
  # Update default_caption@1.0.0 schema
96
  op.execute(sa.text("""
97
  UPDATE json_schemas
98
- SET schema = '{"type":"object","properties":{"description":{"type":"string"},"analysis":{"type":"string"},"recommended_actions":{"type":"string"},"metadata":{"type":"object","properties":{"title":{"type":"string"},"source":{"type":"string"},"type":{"type":"string"},"countries":{"type":"array","items":{"type":"string"}},"epsg":{"type":"string"}}}},"required":["description","analysis","recommended_actions","metadata"]}'
99
  WHERE schema_id = 'default_caption@1.0.0'
100
  """))
101
 
 
95
  # Update default_caption@1.0.0 schema
96
  op.execute(sa.text("""
97
  UPDATE json_schemas
98
+ SET schema = '{"type":"object","properties":{"description":{"type":"string"},"analysis":{"type":"string"},"recommended_actions":{"type":"string"},"metadata":{"type":"object","properties":{"title":{"type":"string"},"source":{"type":"string"},"type":{"type":"string"},"countries":{"type":"array","items":{"type":"string"}},"epsg":{"type":"string"}},"required":["title","source","type","countries","epsg"]}},"required":["description","analysis","recommended_actions","metadata"]}'
99
  WHERE schema_id = 'default_caption@1.0.0'
100
  """))
101