ollama run moyanxinxu/CodeLlama-7B-hf-cypher
curl http://localhost:11434/api/chat \
-d '{
"model": "moyanxinxu/CodeLlama-7B-hf-cypher",
"messages": [{"role": "user", "content": "Hello!"}]
}'
from ollama import chat
response = chat(
model='moyanxinxu/CodeLlama-7B-hf-cypher',
messages=[{'role': 'user', 'content': 'Hello!'}],
)
print(response.message.content)
import ollama from 'ollama'
const response = await ollama.chat({
model: 'moyanxinxu/CodeLlama-7B-hf-cypher',
messages: [{role: 'user', content: 'Hello!'}],
})
console.log(response.message.content)