mirror of
https://github.com/katanemo/plano.git
synced 2026-05-10 16:22:42 +02:00
Add first-class ChatGPT subscription provider support (#881)
* Add first-class ChatGPT subscription provider support * Address PR feedback: move uuid import to top, reuse parsed config in up() * Add ChatGPT token watchdog for seamless long-lived sessions * Address PR feedback: error on stream=false for ChatGPT, fix auth file permissions * Replace ChatGPT watchdog/restart with passthrough_auth --------- Co-authored-by: Musa Malik <musam@uw.edu>
This commit is contained in:
parent
aa726b1bba
commit
78dc4edad9
18 changed files with 693 additions and 20 deletions
18
demos/llm_routing/chatgpt_subscription/test_chatgpt.sh
Executable file
18
demos/llm_routing/chatgpt_subscription/test_chatgpt.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
# Test ChatGPT subscription routing through Plano
|
||||
# Prerequisites: planoai chatgpt login && planoai up config.yaml
|
||||
|
||||
set -e
|
||||
|
||||
echo "Testing ChatGPT subscription via Plano Responses API..."
|
||||
echo ""
|
||||
|
||||
curl -s http://localhost:12000/v1/responses \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "gpt-5.2",
|
||||
"input": "What is 2 + 2? Reply in one word."
|
||||
}' | python3 -m json.tool
|
||||
|
||||
echo ""
|
||||
echo "Done."
|
||||
Loading…
Add table
Add a link
Reference in a new issue