Skip to content

Commit 9b849fa

Browse files
committed
Include fix for curl image sample.
1 parent 0f5715a commit 9b849fa

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

samples/curl/basic.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
curl -X POST "https://models.inference.ai.azure.com/chat/completions" \
23
-H "Content-Type: application/json" \
34
-H "Authorization: Bearer $GITHUB_TOKEN" \

samples/curl/image_sample.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
#!/bin/bash
2+
SCRIPT_DIR=$(dirname $0)
13
PAYLOAD_FILE="payload.json"
2-
IMAGE_DATA="`cat \"$(pwd)/sample.png\" | base64`"
4+
IMAGE_DATA="`cat \"${SCRIPT_DIR}/sample.png\" | base64`"
35
echo '{
46
"messages": [
57
{

samples/curl/multi_turn.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
curl -X POST "https://models.inference.ai.azure.com/chat/completions" \
23
-H "Content-Type: application/json" \
34
-H "Authorization: Bearer $GITHUB_TOKEN" \

samples/curl/streaming.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
curl -X POST "https://models.inference.ai.azure.com/chat/completions" \
23
-H "Content-Type: application/json" \
34
-H "Authorization: Bearer $GITHUB_TOKEN" \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy