cURL
curl --request PATCH \ --url https://api.example.com/user/practice/sessions/{session_id}/settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "style_preset": "accurate", "style_params": {}, "generation_params": { "temperature": 1, "top_p": 0.5, "response_length_preset": "short", "max_completion_tokens": 2, "max_tokens": 2 }, "few_shot_example_ids": [ 123 ] } '
{ "setting_id": 123, "session_id": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "style_preset": "accurate", "style_params": {}, "generation_params": {}, "agent_snapshot": {}, "few_shot_links": [ { "id": 123, "setting_id": 123, "example_id": 123, "sort_order": 123, "created_at": "2023-11-07T05:31:56Z", "example": { "example_id": 123, "user_id": 123, "input_text": "<string>", "output_text": "<string>", "is_active": true, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "title": "<string>", "meta": {} } } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
x >= 1
accurate
balanced
creative
custom
Show child attributes
Successful Response