[GH-ISSUE #5277] "How to utilize the Ollama local model in Windows 10 to generate the same API link as OpenAI, enabling other programs to replace the GPT-4 link? Currently, entering 'ollama serve' in CMD generates the 'http://localhost:11434' link, but… #3307

Closed
opened 2026-04-12 13:52:36 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @windkwbs on GitHub (Jun 25, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5277

Originally assigned to: @dhiltgen on GitHub.

"How to utilize the Ollama local model in Windows 10 to generate the same API link as OpenAI, enabling other programs to replace the GPT-4 link? Currently, entering 'ollama serve' in CMD generates the 'http://localhost:11434/' link, but replacing this link with the GPT-4 link in applications does not work. Please provide a command to generate a link that supports replacing GPT-4.""How to utilize the Ollama local model in Windows 10 to generate the same API link as OpenAI, enabling other programs to replace the GPT-4 link? Currently, entering 'ollama serve' in CMD generates the 'http://localhost:11434/' link, but replacing this link with the GPT-4 link in applications does not work. Please provide a command to generate a link that supports replacing GPT-4."

Originally created by @windkwbs on GitHub (Jun 25, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5277 Originally assigned to: @dhiltgen on GitHub. "How to utilize the Ollama local model in Windows 10 to generate the same API link as OpenAI, enabling other programs to replace the GPT-4 link? Currently, entering 'ollama serve' in CMD generates the 'http://localhost:11434/' link, but replacing this link with the GPT-4 link in applications does not work. Please provide a command to generate a link that supports replacing GPT-4.""How to utilize the Ollama local model in Windows 10 to generate the same API link as OpenAI, enabling other programs to replace the GPT-4 link? Currently, entering 'ollama serve' in CMD generates the 'http://localhost:11434/' link, but replacing this link with the GPT-4 link in applications does not work. Please provide a command to generate a link that supports replacing GPT-4."
GiteaMirror added the question label 2026-04-12 13:52:36 -05:00
Author
Owner

@Luke100000 commented on GitHub (Jun 25, 2024):

You forgot /v1/, see https://github.com/ollama/ollama/blob/main/docs/openai.md

Also please don't abuse titles like this.

<!-- gh-comment-id:2189479289 --> @Luke100000 commented on GitHub (Jun 25, 2024): You forgot `/v1/`, see https://github.com/ollama/ollama/blob/main/docs/openai.md Also please don't abuse titles like this.
Author
Owner

@dhiltgen commented on GitHub (Jul 24, 2024):

Docs for the OpenAI Compatibility can be found here - https://github.com/ollama/ollama/blob/main/docs/openai.md

<!-- gh-comment-id:2248712025 --> @dhiltgen commented on GitHub (Jul 24, 2024): Docs for the OpenAI Compatibility can be found here - https://github.com/ollama/ollama/blob/main/docs/openai.md
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#3307