Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 433f155

Browse files
authored
Update index.js
hotfix page details
1 parent 79acc35 commit 433f155

File tree

1 file changed

+3
-3
lines changed
  • docs/src/containers/Homepage/OpenAI

1 file changed

+3
-3
lines changed

docs/src/containers/Homepage/OpenAI/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ThemedImage from "@theme/ThemedImage";
1111
export default function OpenAI() {
1212
const clipboard = useClipboard({ timeout: 200 });
1313

14-
const codeStringNitro = `curl http://localhost:3928/inferences/llamacpp/chat_completion
14+
const codeStringNitro = `curl http://localhost:3928/v1/chat/completions
1515
-H "Content-Type: application/json"
1616
-d '{
1717
"model": "/path/to/your/model.gguf",
@@ -68,14 +68,14 @@ export default function OpenAI() {
6868
POST
6969
</p>
7070
<p className="text-sm">
71-
https://localhost:1337/llama.cpp/v1/chat/completions
71+
http://localhost:3928/v1/chat/completions
7272
</p>
7373
</div>
7474
<div
7575
className="group-hover:block hidden absolute bottom-2 right-2 text-xs px-2 py-1 rounded-md bg-gray-700 cursor-pointer text-white"
7676
onClick={() =>
7777
clipboard.copy(
78-
"https://localhost:1337/llama.cpp/v1/chat/completions"
78+
"http://localhost:3928/v1/chat/completions"
7979
)
8080
}
8181
>

0 commit comments

Comments
 (0)