Skip to content

Commit

Permalink
add auth
Browse files Browse the repository at this point in the history
  • Loading branch information
gaardhus committed Nov 25, 2024
1 parent dfa8a74 commit 587e02a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/server/guides/llms.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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?"}
]
)

Expand Down

0 comments on commit 587e02a

Please sign in to comment.