Skip to content

Commit

Permalink
update: nim
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Nov 18, 2024
1 parent 9ed98f3 commit 8790380
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/app-configs/nim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ Query NIM Open AI API

```sh
URL=https://$(oc get route -o go-template='{{.spec.host}}' nim)/v1/completions
PROMPT="Once upon a time"

curl -s -X 'POST' \
"${URL}" \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"model": "meta/llama3-8b-instruct",
"prompt": "Once upon a time",
"max_tokens": 64
"prompt": "'"${PROMPT}"'",
"max_tokens": 100
}' | jq .choices[0].text
```

0 comments on commit 8790380

Please sign in to comment.