Public vals
2
taras
serve_ssl
Script
This is a library to use via esm with deno cli. Self-signed HTTPS development server with auto-generated SSL certificates.
This is an ssl equivalent to "deno serve" until Deno upstream enables ssl via cli. USAGE:
deno run --unstable-net --watch -A https://esm.town/v/taras/serve_ssl [OPTIONS]
OPTIONS:
-h, --help Show this help message
--port <NUMBER> Port to listen on (default: 443)
--handler <PATH> Path to handler module (default: "./main.ts")
EXAMPLES:
# Run with defaults (port 443, main.ts handler)
deno run --unstable-net --watch -A https://esm.town/v/taras/serve_ssl
# Run on port 8443 with custom handler
deno run --unstable-net --watch -A https://esm.town/v/taras/serve_ssl --port 8443 --handler "file://$PWD/custom.ts"
0
taras
free_open_router
HTTP
curl 'https://taras-free_open_router.web.val.run/api/v1/chat/completions' \
-H 'accept: application/json' \
-H 'authorization: Bearer THIS_IS_OVERRIDEN_ON_SERVER' \
-H 'content-type: application/json' \
--data-raw '{
"model": "auto",
"temperature": 0,
"messages": [
{
"role": "system",
"content": "stuff"
},
{
"role": "user",
"content": "hello"
}
],
"stream": true
}'
1