I am requesting a json, but get it back as a text:
{ "model": "sonar", "messages": [ { "role": "system", "content": "Be precise and concise." }, { "role": "user", "content": "Tell me about coalias.com. Please output a JSON object containing the following fields: business_name, business_summary, business_types, customer_type, country, language, saas, global, insights" } ], "response_format": { "type": "json_schema", "json_schema": { "schema": { "type": "object", "properties": { "business_name": { "type": "string", "description": "Official name of the business" }, "business_summary": { "type": "string", "description": "Brief overview of the business" }, "business_types": { "type": "array", "items": { "type": "string", "enum": [ "saas", "ecommerce", "webbuilder", "marketplace", "fintech", "edtech", "healthtech", "biotech", "ai", "consulting", "logistics", "traveltech", "medtech", "proptech", "foodtech", "cleantech", "gaming", "cybersecurity", "iot", "blockchain", "hrtech", "legaltech", "retail", "nonprofit", "agency", "media", "entertainment", "telecom" ] } }, "customer_type": { "type": "string", "enum": ["b2b", "b2c", "both", "b2g", "d2c", "c2c", "p2p"] }, "country": { "type": "string", "description": "Primary operating country" }, "language": { "type": "string", "description": "Primary business language" }, "saas": { "type": "boolean", "description": "Whether the business follows SaaS model" }, "global": { "type": "boolean", "description": "Whether the business targets global markets" }, "insights": { "type": "string", "description": "Detailed analysis of target audience, business model, and pricing" } }, "required": [ "business_name", "business_summary", "business_types", "customer_type", "country", "language", "saas", "global", "insights" ], "additionalProperties": false } } } }
It returns:
Here is a JSON object summarizing the key information about CoAlias: