ollama run lalith-mcw/llama3.1_8B_Q4_Chinese_Chat
curl http://localhost:11434/api/chat \
-d '{
"model": "lalith-mcw/llama3.1_8B_Q4_Chinese_Chat",
"messages": [{"role": "user", "content": "Hello!"}]
}'
from ollama import chat
response = chat(
model='lalith-mcw/llama3.1_8B_Q4_Chinese_Chat',
messages=[{'role': 'user', 'content': 'Hello!'}],
)
print(response.message.content)
import ollama from 'ollama'
const response = await ollama.chat({
model: 'lalith-mcw/llama3.1_8B_Q4_Chinese_Chat',
messages: [{role: 'user', content: 'Hello!'}],
})
console.log(response.message.content)