Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Your endpoint should support the following parameters:
```bash
export FULL_ENDPOINT_URL="https://your-server.com/v1/chat/completions"
export API_KEY="your-api-key-here"
export MODEL_NAME="your-model-name-here"

curl -X POST ${FULL_ENDPOINT_URL} \
-H "Content-Type: application/json" \
Expand All @@ -42,7 +43,7 @@ curl -X POST ${FULL_ENDPOINT_URL} \
"content": "Write Python code that can add a list of numbers together."
}
],
"model": "<YOUR_MODEL_NAME>",
"model": "'"$MODEL_NAME"'",
"temperature": 0.6,
"top_p": 0.95,
"max_tokens": 256,
Expand All @@ -55,13 +56,14 @@ curl -X POST ${FULL_ENDPOINT_URL} \
```bash
export FULL_ENDPOINT_URL="https://your-server.com/v1/completions"
export API_KEY="your-api-key-here"
export MODEL_NAME="your-model-name-here"

curl -X POST ${FULL_ENDPOINT_URL} \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${API_KEY}" \
-d '{
"prompt": "Write Python code that can add a list of numbers together.",
"model": "<YOUR_MODEL_NAME>",
"model": "'"$MODEL_NAME"'",
"temperature": 0.6,
"top_p": 0.95,
"max_tokens": 256,
Expand All @@ -79,6 +81,7 @@ NeMo Evaluator supports the **OpenAI Images API** ([docs](https://platform.opena
```bash
export FULL_ENDPOINT_URL="https://your-server.com/v1/chat/completions"
export API_KEY="your-api-key-here"
export MODEL_NAME="your-model-name-here"

curl -X POST ${FULL_ENDPOINT_URL} \
-H "Content-Type: application/json" \
Expand All @@ -102,7 +105,7 @@ curl -X POST ${FULL_ENDPOINT_URL} \
]
}
],
"model": "<YOUR_MODEL_NAME>",
"model": "'"$MODEL_NAME"'",
"stream": false,
"max_tokens": 16,
"temperature": 0.0,
Expand All @@ -119,13 +122,14 @@ Function calling request:
```bash
export FULL_ENDPOINT_URL="https://your-server.com/v1/chat/completions"
export API_KEY="your-api-key-here"
export MODEL_NAME="your-model-name-here"

curl -X POST ${FULL_ENDPOINT_URL} \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${API_KEY}" \
-H "Accept: application/json" \
-d '{
"model": "<YOUR_MODEL_NAME>",
"model": "'"$MODEL_NAME"'",
"stream": false,
"max_tokens": 16,
"temperature": 0.0,
Expand Down Expand Up @@ -181,14 +185,15 @@ Example:
``` bash
export FULL_ENDPOINT_URL="https://your-server.com/v1/chat/completions"
export API_KEY="your-api-key-here"
export MODEL_NAME="your-model-name-here"

curl -X POST ${FULL_ENDPOINT_URL} \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${API_KEY}" \
-H "Accept: application/json" \
-d '{
"max_tokens": 256,
"model": "<YOUR_MODEL_NAME>",
"model": "'"$MODEL_NAME"'",
"messages": [
{
"content": [
Expand Down
Loading