We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9038cc7 commit 7555dd0Copy full SHA for 7555dd0
CHANGELOG.md
@@ -2,6 +2,8 @@
2
3
## Unreleased
4
5
+- Fix reasoning for openai o models.
6
+
7
## 0.11.0
8
9
- Add support for file contexts with line ranges.
src/eca/llm_providers/openai.clj
@@ -42,7 +42,7 @@
42
(on-error {:exception e})))))
43
44
(defn ^:private past-messages->input [past-messages]
45
- (mapv (fn [{:keys [role content] :as msg}]
+ (keep (fn [{:keys [role content] :as msg}]
46
(case role
47
"tool_call" {:type "function_call"
48
:name (:name content)
@@ -52,6 +52,7 @@
52
{:type "function_call_output"
53
:call_id (:id content)
54
:output (llm-util/stringfy-tool-result content)}
55
+ "reason" nil
56
msg))
57
past-messages))
58
0 commit comments