C:\Users\BARATHI>curl -X POST http://localhost:6969/api/chat/completions \-H…
- User
user: C:\Users\BARATHI>curl -X POST http://localhost:6969/api/chat/completions -H "Content-Type: application/json" -d '{"model": "gpt-4o-turbo", "prompt": "123"}' --no-buffer { "type": "validation", "on": "body", "summary": "Expected object", "property": "root", "message": "Expected object", "expected": { "model": "gpt-o1-preview", "prompt": "" }, "errors": [ { "summary": "Expected object", "type": 46, "schema": { "type": "object", "properties": { "model": { "anyOf": [ { "const": "gpt-o1-preview", "type": "string" }, { "const": "gpt-o1-mini", "type": "string" }, { "const": "gpt-4o", "type": "string" }, { "const": "gpt-4o-turbo", "type": "string" }, { "const": "gpt-4o-mini", "type": "string" } ] }, "prompt": { "type": "string" }, "conversationId": { "type": "string" } }, "required": [ "model", "prompt" ], "additionalProperties": false }, "path": "", "message": "Expected object" } ] }curl: (3) URL rejected: Bad hostname curl: (3) URL rejected: Malformed input to a URL function curl: (3) URL rejected: Bad hostname curl: (3) unmatched brace in URL position 2: '{model: ^
- Assistant
It looks like you're encountering some issues with the
curlcommand and the JSON body you're sending in your API request. Let's break down the potential issues and how you might address them: