curl http://localhost:11434/v1/systemone \
-H "Content-Type: application/json" \
-d '{
"model": "parable/tinyjev",
"state": "Hello World",
"questions": {
"says_hello": {
"type": "noul",
"instructions": "Does the state text contain a greeting?",
"criteria": {
"true": "The state text contains a greeting.",
"false": "The state text does not contain a greeting."
}
}
}
}'
import ollama
response = ollama.systemone(
model='parable/tinyjev',
state='Hello World',
questions={
'says_hello': {
'type': 'noul',
'instructions': 'Does the state text contain a greeting?',
'criteria': {
'true': 'The state text contains a greeting.',
'false': 'The state text does not contain a greeting.',
},
},
},
)
print(response.answers['says_hello'].noul)
import ollama from 'ollama'
const response = await ollama.systemone({
model: 'parable/tinyjev',
state: 'Hello World',
questions: {
says_hello: {
type: 'noul',
instructions: 'Does the state text contain a greeting?',
criteria: {
true: 'The state text contains a greeting.',
false: 'The state text does not contain a greeting.',
},
},
},
})
console.log(response.answers.says_hello.noul)