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