-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgpt-test.sh
17 lines (15 loc) · 1 KB
/
gpt-test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!bin/bash
curl 'https://api-inference.huggingface.co/models/HuggingFaceTB/SmolLM2-1.7B-Instruct/v1/chat/completions' \
-H "Authorization: Bearer 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" \
-H 'Content-Type: application/json' \
--data '{
"model": "HuggingFaceTB/SmolLM2-1.7B-Instruct",
"messages": [
{
"role": "user",
"content": "Summarise the following text: Introducing the ggseg R-package for brain segmentations--- Introducing the ggseg R-package for brain segmentations Introducing the ggseg R-package for brain segmentations**Edit**: Though posted only a week ago, we have discovered another R package called `ggBrain` which has slightly different functions than what our package has. Because of this, we have altered the name of our package to `ggseg` short for `ggsegmentation` which is a better description of what our package does. Introducing the ggseg R-package for brain segmentations Introducing the ggseg R-package for brain segmentations"
}
],
"max_tokens": 500,
"stream": false
}'