From 433f155f183e8e3c2927dd76f62737d5a80dcddb Mon Sep 17 00:00:00 2001 From: automaticcat Date: Thu, 23 Nov 2023 08:38:21 +0700 Subject: [PATCH] Update index.js hotfix page details --- docs/src/containers/Homepage/OpenAI/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/containers/Homepage/OpenAI/index.js b/docs/src/containers/Homepage/OpenAI/index.js index d59185438..af33820f2 100644 --- a/docs/src/containers/Homepage/OpenAI/index.js +++ b/docs/src/containers/Homepage/OpenAI/index.js @@ -11,7 +11,7 @@ import ThemedImage from "@theme/ThemedImage"; export default function OpenAI() { const clipboard = useClipboard({ timeout: 200 }); - const codeStringNitro = `curl http://localhost:3928/inferences/llamacpp/chat_completion + const codeStringNitro = `curl http://localhost:3928/v1/chat/completions -H "Content-Type: application/json" -d '{ "model": "/path/to/your/model.gguf", @@ -68,14 +68,14 @@ export default function OpenAI() { POST

- https://localhost:1337/llama.cpp/v1/chat/completions + http://localhost:3928/v1/chat/completions

clipboard.copy( - "https://localhost:1337/llama.cpp/v1/chat/completions" + "http://localhost:3928/v1/chat/completions" ) } >