ottoport 1.13.0 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ottoport",
3
3
  "description": "One API for every model. Call chat, image, video, speech and music models through the OttoPort gateway — as MCP tools, slash commands, or the bundled CLI.",
4
- "version": "1.13.0",
4
+ "version": "1.13.1",
5
5
  "author": {
6
6
  "name": "LITBOX LLC",
7
7
  "email": "support@ottoport.ai"
package/cli/ottoport.mjs CHANGED
@@ -153,7 +153,7 @@ async function cmdChat(prompt, flags) {
153
153
  if (!prompt) die("chat requires a prompt: ottoport chat \"hello\"");
154
154
  const { baseUrl, apiKey } = config(flags);
155
155
  const messages = [];
156
- if (flags.system) messages.push({ role: "system", content: flags.system });
156
+ if (last(flags.system)) messages.push({ role: "system", content: last(flags.system) });
157
157
  const videos = await videoParts(flags);
158
158
  messages.push({ role: "user", content: videos.length ? [{ type: "text", text: prompt }, ...videos] : prompt });
159
159
 
@@ -274,10 +274,10 @@ async function cmdImage(prompt, flags) {
274
274
  ...(last(flags.size) ? { size: last(flags.size) } : {}),
275
275
  ...(last(flags.resolution) ? { resolution: last(flags.resolution) } : {}),
276
276
  ...(last(flags.quality) ? { quality: last(flags.quality) } : {}),
277
- ...(last(flags["aspect-ratio"]) ? { aspect_ratio: flags["aspect-ratio"] } : {}),
277
+ ...(last(flags["aspect-ratio"]) ? { aspect_ratio: last(flags["aspect-ratio"]) } : {}),
278
278
  ...(last(flags.n) ? { n: Number(last(flags.n)) } : {}),
279
279
  ...(last(flags.seed) ? { seed: Number(last(flags.seed)) } : {}),
280
- ...(last(flags.image) ? { image_url: flags.image } : {}),
280
+ ...(last(flags.image) ? { image_url: last(flags.image) } : {}),
281
281
  ...(references(flags) ? { reference_image_urls: references(flags) } : {}),
282
282
  ...collection(flags),
283
283
  };
@@ -305,10 +305,10 @@ async function cmdVideo(prompt, flags) {
305
305
  ...(last(flags.video) ? { video_url: last(flags.video) } : {}),
306
306
  ...(last(flags.duration) ? { duration: Number(last(flags.duration)) } : {}),
307
307
  ...(last(flags.resolution) ? { resolution: last(flags.resolution) } : {}),
308
- ...(last(flags["aspect-ratio"]) ? { aspect_ratio: flags["aspect-ratio"] } : {}),
308
+ ...(last(flags["aspect-ratio"]) ? { aspect_ratio: last(flags["aspect-ratio"]) } : {}),
309
309
  ...(last(flags.seed) ? { seed: Number(last(flags.seed)) } : {}),
310
- ...(last(flags.image) ? { image_url: flags.image } : {}),
311
- ...(last(flags["last-frame"]) ? { last_frame_url: flags["last-frame"] } : {}),
310
+ ...(last(flags.image) ? { image_url: last(flags.image) } : {}),
311
+ ...(last(flags["last-frame"]) ? { last_frame_url: last(flags["last-frame"]) } : {}),
312
312
  ...(references(flags) ? { reference_image_urls: references(flags) } : {}),
313
313
  ...(references(flags, "ref-video") ? { reference_video_urls: references(flags, "ref-video") } : {}),
314
314
  ...(references(flags, "ref-audio") ? { reference_audio_urls: references(flags, "ref-audio") } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ottoport",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "Claude Code plugin, CLI and MCP server for OttoPort — one OpenAI-compatible API for every LLM, image, video, and speech model.",
5
5
  "homepage": "https://ottoport.ai",
6
6
  "repository": {