Title: Update GROQ API request to match official documentation
Content: Fixed JSON formatting and removed unnecessary comment. URL: https://console.groq.com/docs/
This commit is contained in:
parent
ab5738d14e
commit
7de04c06c9
@ -29,7 +29,7 @@ fi
|
|||||||
|
|
||||||
message=$(
|
message=$(
|
||||||
jq -n \
|
jq -n \
|
||||||
".messages = [{role: \"system\", content: $(jq -R -s '@json' <<<"$system")}, {role: \"user\", content: $(jq -R -s '@json' <<<"$diff")}] |
|
".messages = [{role: \"system\", content: $(jq -R -s '@json' <<<"${system}")}, {role: \"user\", content: $(jq -R -s '@json' <<<"${diff}")}] |
|
||||||
.model = \"llama-3.1-70b-versatile\" |
|
.model = \"llama-3.1-70b-versatile\" |
|
||||||
.temperature = 1 |
|
.temperature = 1 |
|
||||||
.max_tokens = 1024 |
|
.max_tokens = 1024 |
|
||||||
@ -38,6 +38,7 @@ message=$(
|
|||||||
.stop = null"
|
.stop = null"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# trunk-ignore(shellcheck/SC2312)
|
||||||
curl -s "https://api.groq.com/openai/v1/chat/completions" \
|
curl -s "https://api.groq.com/openai/v1/chat/completions" \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
|
Loading…
Reference in New Issue
Block a user