Title: fix(omni): use input_audio for --audio on OpenAI-compatible endpoint by hopelynd · Pull Request #55 · modelstudioai/cli · GitHub
Open Graph Title: fix(omni): use input_audio for --audio on OpenAI-compatible endpoint by hopelynd · Pull Request #55 · modelstudioai/cli
X Title: fix(omni): use input_audio for --audio on OpenAI-compatible endpoint by hopelynd · Pull Request #55 · modelstudioai/cli
Description: Summary Fix bl omni --audio sending unsupported audio_url content parts that always returned HTTP 400 on the DashScope OpenAI-compatible /compatible-mode/v1/chat/completions endpoint. Build audio inputs as input_audio with { data, format } instead, keeping the existing resolveFileUrl OSS upload path for local files (with automatic X-DashScope-OssResourceResolve when the body contains oss:// URLs). Infer input_audio.format from the original --audio path/URL extension; reject unknown or missing extensions with a usage error instead of silently defaulting to wav. Add packages/cli/tests/e2e/omni.e2e.test.ts covering help, missing --message, dry-run request shape, unsupported extensions, and a live local-audio transcription flow. Fixes #54 Test plan vp test packages/cli/tests/e2e/omni.e2e.test.ts Manual: bl omni --audio ./clip.wav --text-only ... returns transcription instead of Invalid value: audio_url Manual: verified local uploads via oss:// URLs with input_audio.format for wav/mp3/amr/aac/m4a/ogg/3gp/3gpp
Open Graph Description: Summary Fix bl omni --audio sending unsupported audio_url content parts that always returned HTTP 400 on the DashScope OpenAI-compatible /compatible-mode/v1/chat/completions endpoint. Build audio ...
X Description: Summary Fix bl omni --audio sending unsupported audio_url content parts that always returned HTTP 400 on the DashScope OpenAI-compatible /compatible-mode/v1/chat/completions endpoint. Build audio ...
Opengraph URL: https://github.com/modelstudioai/cli/pull/55
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:87d4e11a-769b-01b0-6141-caa95900fcff |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CB40:1FF3C2:1C2CDFD:258649A:6A52D4A9 |
| html-safe-nonce | 3a68bffc514eae87e0f3dbe27354fd1d6a0eae29df671baaee124bf8262913fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjQwOjFGRjNDMjoxQzJDREZEOjI1ODY0OUE6NkE1MkQ0QTkiLCJ2aXNpdG9yX2lkIjoiNzEyNTkzNjIxODYwOTczNDgyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6aef1188dcee5a2c79684230386e4c7a3d41b5c4fc74d32dcc52c9f5fb542c0d |
| hovercard-subject-tag | pull_request:3853668313 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelstudioai/cli/pull/55/files |
| twitter:image | https://avatars.githubusercontent.com/u/135810028?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/135810028?s=400&v=4 |
| og:image:alt | Summary Fix bl omni --audio sending unsupported audio_url content parts that always returned HTTP 400 on the DashScope OpenAI-compatible /compatible-mode/v1/chat/completions endpoint. Build audio ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelstudioai/cli git https://github.com/modelstudioai/cli.git |
| octolytics-dimension-user_id | 283556804 |
| octolytics-dimension-user_login | modelstudioai |
| octolytics-dimension-repository_id | 1251875798 |
| octolytics-dimension-repository_nwo | modelstudioai/cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1251875798 |
| octolytics-dimension-repository_network_root_nwo | modelstudioai/cli |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width