Closed ysicing closed 1 month ago
@ysicing Could you try the following section?
https://github.com/ollama/ollama/blob/main/docs/openai.md#default-model-names
For tooling that relies on default OpenAI model names such as gpt-3.5-turbo
, use ollama cp
to copy an existing model name to a temporary name:
ollama cp llama3 gpt-3.5-turbo
Afterwards, this new model name can be specified the model
field:
curl http://localhost:11434/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'
https://github.com/ollama/ollama/blob/main/docs/openai.md