swarm-stt: the request subject, the service's NATS permissions and the --stt-client flag
This commit is contained in:
parent
40ec5ac9e0
commit
47bec6bef3
1 changed files with 171 additions and 1 deletions
|
|
@ -166,6 +166,11 @@ struct Args {
|
|||
#[arg(long = "notify-router-client")]
|
||||
notify_router_clients: Vec<String>,
|
||||
|
||||
/// Client ids that answer voice memo transcription requests.
|
||||
/// Repeatable, empty by default, which denies such a client.
|
||||
#[arg(long = "stt-client")]
|
||||
stt_clients: Vec<String>,
|
||||
|
||||
/// Role on the secret store's `cert` auth mount this responder logs in
|
||||
/// as to read the callout keys, its own OIDC client secret and agent
|
||||
/// credentials. The store is found
|
||||
|
|
@ -232,7 +237,8 @@ async fn serve(args: Args) -> anyhow::Result<()> {
|
|||
.with_review_classifiers(args.review_classifier_clients.clone())
|
||||
.with_builders(args.builder_clients.clone())
|
||||
.with_claude_logins(args.claude_login_clients.clone())
|
||||
.with_notify_routers(args.notify_router_clients.clone());
|
||||
.with_notify_routers(args.notify_router_clients.clone())
|
||||
.with_stts(args.stt_clients.clone());
|
||||
let http = reqwest::Client::new();
|
||||
let settings = swarm_secret_client::client::Settings::from_env()
|
||||
.context("reading the secret store's address and this responder's identity")?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue