Skip to content

Commit 6e477d0

Browse files
committed
Add example workflow model debug
1 parent 3581c82 commit 6e477d0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/example.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,22 @@ jobs:
5959
pip3 install -r requirements-test.txt
6060
pip3 install -r pipeline_test/requirements.txt
6161
62+
- name: Debug model raw response
63+
run: |
64+
curl -sS -w "\nHTTP_STATUS=%{http_code}\n" "$TRPC_AGENT_BASE_URL/chat/completions" \
65+
-H "Authorization: Bearer $TRPC_AGENT_API_KEY" \
66+
-H "Content-Type: application/json" \
67+
-d '{
68+
"model": "'"$TRPC_AGENT_MODEL_NAME"'",
69+
"messages": [
70+
{
71+
"role": "user",
72+
"content": "Say hello in one short English sentence."
73+
}
74+
],
75+
"stream": false
76+
}'
77+
6278
- name: Run example smoke suite
6379
run: |
6480
bash pipeline_test/run_agent_examples.sh "${{ inputs.suite }}"

0 commit comments

Comments
 (0)