14 lines
634 B
JSON
14 lines
634 B
JSON
{
|
|
"model": "openrouter/quasar-alpha",
|
|
"messages": [
|
|
{
|
|
"role": "user",
|
|
"content": "Generate a JavaScript function that implements bubble sort.\n The function should be named 'bubbleSort' and take one parameter 'arr' (an array of numbers).\n The function should return the sorted array.\n Return only the function code, no explanation."
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "USER Preferences : # Preferences\r\n\r\nYou are a helpful AI assistant. When asked to perform calculations, you should return only the numerical result without any explanation or comments. "
|
|
}
|
|
],
|
|
"tools": []
|
|
} |