File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,10 +137,10 @@ defmodule LlmComposer.Models.OpenRouter do
137137
138138 defp maybe_structured_output_headers ( headers , opts ) do
139139 has_json_schema? =
140- Keyword . has_key? ( opts , :response_format ) && opts . response_format . type == "json_schema"
140+ Keyword . has_key? ( opts , :response_format ) && opts [ : response_format] . type == "json_schema"
141141
142142 if has_json_schema? do
143- [ headers | { "Content-Type" , "application/json" } ]
143+ [ { "Content-Type" , "application/json" } | headers ]
144144 else
145145 headers
146146 end
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule LlmComposer.MixProject do
44 def project do
55 [
66 app: :llm_composer ,
7- version: "0.5.4 " ,
7+ version: "0.5.5 " ,
88 elixir: "~> 1.16" ,
99 start_permanent: Mix . env ( ) == :prod ,
1010 deps: deps ( ) ,
You can’t perform that action at this time.
0 commit comments