Preserve image input through the inference proxy
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
- pushed
- by user · WAL seq 467 · 2026-08-27T03:51:31.446654Z
Changed files
-
modified
lib/openagents/providers/open_ai.ex -
modified
lib/openagents/providers/request.ex -
modified
lib/openagents_web/controllers/inference_proxy_controller.ex -
modified
test/openagents/providers/open_ai/request_payload_test.exs -
modified
test/openagents/providers/open_router/request_payload_test.exs -
modified
test/openagents_web/controllers/inference_proxy_controller_test.exs
Diff
6 files changed, +140 -5
lib/openagents/providers/open_ai.ex modified +10
@@ -136,8 +136,18 @@ defmodule OpenAgents.Providers.OpenAI do
| 136 | 136 |
|
| 137 | 137 |
|
| 138 | 138 |
|
| 139 |
|
|
| 140 |
|
|
| 141 |
|
|
| 142 |
|
|
| 139 | 143 |
|
| 140 | 144 |
|
| 145 |
|
|
| 146 |
|
|
| 147 |
|
|
| 148 |
|
|
| 149 |
|
|
| 150 |
|
|
| 141 | 151 |
|
| 142 | 152 |
|
| 143 | 153 |
|
lib/openagents/providers/request.ex modified +5 -1
@@ -23,9 +23,13 @@ defmodule OpenAgents.Providers.Request do
| 23 | 23 |
|
| 24 | 24 |
|
| 25 | 25 |
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 26 | 30 |
|
| 27 | 31 |
|
| 28 |
|
|
| 32 |
|
|
| 29 | 33 |
|
| 30 | 34 |
|
| 31 | 35 |
|
lib/openagents_web/controllers/inference_proxy_controller.ex modified +38 -4
@@ -136,14 +136,15 @@ defmodule OpenAgentsWeb.InferenceProxyController do
| 136 | 136 |
|
| 137 | 137 |
|
| 138 | 138 |
|
| 139 |
|
|
| 139 | 140 |
|
| 140 |
|
|
| 141 |
|
|
| 142 |
|
|
| 141 |
|
|
| 142 |
|
|
| 143 |
|
|
| 143 | 144 |
|
| 144 | 145 |
|
| 145 | 146 |
|
| 146 |
|
|
| 147 |
|
|
| 147 | 148 |
|
| 148 | 149 |
|
| 149 | 150 |
|
@@ -575,6 +576,39 @@ defmodule OpenAgentsWeb.InferenceProxyController do
| 575 | 576 |
|
| 576 | 577 |
|
| 577 | 578 |
|
| 579 |
|
|
| 580 |
|
|
| 581 |
|
|
| 582 |
|
|
| 583 |
|
|
| 584 |
|
|
| 585 |
|
|
| 586 |
|
|
| 587 |
|
|
| 588 |
|
|
| 589 |
|
|
| 590 |
|
|
| 591 |
|
|
| 592 |
|
|
| 593 |
|
|
| 594 |
|
|
| 595 |
|
|
| 596 |
|
|
| 597 |
|
|
| 598 |
|
|
| 599 |
|
|
| 600 |
|
|
| 601 |
|
|
| 602 |
|
|
| 603 |
|
|
| 604 |
|
|
| 605 |
|
|
| 606 |
|
|
| 607 |
|
|
| 608 |
|
|
| 609 |
|
|
| 610 |
|
|
| 611 |
|
|
| 578 | 612 |
|
| 579 | 613 |
|
| 580 | 614 |
|
test/openagents/providers/open_ai/request_payload_test.exs modified +28
@@ -114,4 +114,32 @@ defmodule OpenAgents.Providers.OpenAI.RequestPayloadTest do
| 114 | 114 |
|
| 115 | 115 |
|
| 116 | 116 |
|
| 117 |
|
|
| 118 |
|
|
| 119 |
|
|
| 120 |
|
|
| 121 |
|
|
| 122 |
|
|
| 123 |
|
|
| 124 |
|
|
| 125 |
|
|
| 126 |
|
|
| 127 |
|
|
| 128 |
|
|
| 129 |
|
|
| 130 |
|
|
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
| 134 |
|
|
| 135 |
|
|
| 136 |
|
|
| 137 |
|
|
| 138 |
|
|
| 139 |
|
|
| 140 |
|
|
| 141 |
|
|
| 142 |
|
|
| 143 |
|
|
| 144 |
|
|
| 117 | 145 |
|
test/openagents/providers/open_router/request_payload_test.exs modified +28
@@ -43,6 +43,34 @@ defmodule OpenAgents.Providers.OpenRouter.RequestPayloadTest do
| 43 | 43 |
|
| 44 | 44 |
|
| 45 | 45 |
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
|
| 68 |
|
|
| 69 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| 73 |
|
|
| 46 | 74 |
|
| 47 | 75 |
|
| 48 | 76 |
|
test/openagents_web/controllers/inference_proxy_controller_test.exs modified +31
@@ -449,6 +449,37 @@ defmodule OpenAgentsWeb.InferenceProxyControllerTest do
| 449 | 449 |
|
| 450 | 450 |
|
| 451 | 451 |
|
| 452 |
|
|
| 453 |
|
|
| 454 |
|
|
| 455 |
|
|
| 456 |
|
|
| 457 |
|
|
| 458 |
|
|
| 459 |
|
|
| 460 |
|
|
| 461 |
|
|
| 462 |
|
|
| 463 |
|
|
| 464 |
|
|
| 465 |
|
|
| 466 |
|
|
| 467 |
|
|
| 468 |
|
|
| 469 |
|
|
| 470 |
|
|
| 471 |
|
|
| 472 |
|
|
| 473 |
|
|
| 474 |
|
|
| 475 |
|
|
| 476 |
|
|
| 477 |
|
|
| 478 |
|
|
| 479 |
|
|
| 480 |
|
|
| 481 |
|
|
| 482 |
|
|
| 452 | 483 |
|
| 453 | 484 |
|
| 454 | 485 |
|