From 587e02ac06ced87d5f391dad234e352ede1600c1 Mon Sep 17 00:00:00 2001 From: gaardhus Date: Mon, 25 Nov 2024 19:16:50 +0100 Subject: [PATCH] add auth --- docs/server/guides/llms.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/server/guides/llms.md b/docs/server/guides/llms.md index 275d2c5..637dd8f 100644 --- a/docs/server/guides/llms.md +++ b/docs/server/guides/llms.md @@ -52,6 +52,7 @@ From the command line: # Call the server using curl: curl -X POST "http://10.84.10.216:8880/v1/chat/completions" \ -H "Content-Type: application/json" \ + -H "Authorization: Bearer $uuid" \ --data '{ "model": "allenai/OLMo-7B-0724-Instruct-hf", "messages": [ @@ -75,7 +76,7 @@ client = OpenAI( completion = client.chat.completions.create( model="allenai/OLMo-7B-0724-Instruct-hf", messages=[ - {"role": "user", "content": "Hello!"} + {"role": "user", "content": "Why dont scientists trust atoms?"} ] )