Skip to content

Commit 40acd88

Browse files
authored
Merge pull request #7 from atuinsh/mkt/bump-ai-core-v0.2.5
Bump atuin_ai_core to v0.2.5
2 parents 476498a + 10c33dc commit 40acd88

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ defmodule AtuinAI.Server.MixProject do
155155
[
156156
{:atuin_ai_core,
157157
git: "https://github.com/atuinsh/atuin-ai-core.git",
158-
branch: "mkt/observer-port",
158+
tag: "v0.2.5",
159159
compile: false,
160160
app: false},
161161
{:bandit, "~> 1.5"},

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%{
2-
"atuin_ai_core": {:git, "https://github.com/atuinsh/atuin-ai-core.git", "0bb2f8c1c23feb80604fe3365f4af1ae5257e26e", [branch: "mkt/observer-port"]},
2+
"atuin_ai_core": {:git, "https://github.com/atuinsh/atuin-ai-core.git", "73292e7296849d30aebeecaad42d8142faa5059a", [tag: "v0.2.5"]},
33
"bandit": {:hex, :bandit, "1.12.0", "6c5214daa2469644ac4ab0113b98abc24f75e348378e6a974c6343b3e5da22ef", [:mix], [{:hpax, "~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.18", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.5", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "45dac82dc86f45cf4a196dee9cc5a8b791d9c9469d996055f055e6ee36c66e20"},
44
"hpax": {:hex, :hpax, "1.0.4", "777de5d433b0fbdc7c418159c8055910faa8047ffdb3d6b31098d2a46cd7685c", [:mix], [], "hexpm", "afc7cb142ebcc2d01ce7816190b98ce5dd49e799111b24249f3443d730f377ca"},
55
"mime": {:hex, :mime, "2.0.7", "b8d739037be7cd402aee1ba0306edfdef982687ee7e9859bee6198c1e7e2f128", [:mix], [], "hexpm", "6171188e399ee16023ffc5b76ce445eb6d9672e2e241d2df6050f3c771e80ccd"},

test/atuin_ai_server_test.exs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ defmodule AtuinAI.ServerTest do
169169
assert Plug.Conn.get_req_header(upstream_conn, "authorization") == []
170170
end
171171

172-
test "an upstream HTTP error fails the turn fast with the status and body", %{
172+
test "an upstream HTTP error fails the turn fast with a generic error event", %{
173173
server_port: port
174174
} do
175175
body =
@@ -193,8 +193,14 @@ defmodule AtuinAI.ServerTest do
193193
{:ok, {{_, 200, _}, _headers, response}} = Task.await(task, 5000)
194194
response = to_string(response)
195195

196-
assert response =~ "HTTP 404"
197-
assert response =~ "not found, try pulling it first"
196+
assert response =~ "event: error"
197+
assert response =~ ~s("code":"upstream_error")
198+
assert response =~ "LLM request failed, please retry"
199+
200+
# Since core v0.2.5 the upstream status and body are operator detail
201+
# (logged via the Failed outcome); they must not reach the client.
202+
refute response =~ "HTTP 404"
203+
refute response =~ "not found, try pulling it first"
198204
end
199205

200206
test "unknown model alias is a 400", %{server_port: port} do

0 commit comments

Comments
 (0)