feat: use 1password for API key
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
Requires Bash, FFmpeg, curl, jq, and standard coreutils.
|
Requires Bash, FFmpeg, curl, jq, and standard coreutils.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
export OPENROUTER_API_KEY='sk-or-v1-...'
|
|
||||||
./transcribe recording.m4a
|
./transcribe recording.m4a
|
||||||
./transcribe video.mp4 > transcript.txt
|
./transcribe video.mp4 > transcript.txt
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export OPENROUTER_API_KEY
|
||||||
|
OPENROUTER_API_KEY="$(op read "op://API Keys/openrouter-mai-transcribe-2/credential")"
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [[ $# == 1 && ($1 == -h || $1 == --help) ]]; then
|
if [[ $# == 1 && ($1 == -h || $1 == --help) ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user