File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 55- Get models and configs from models.dev instead of hardcoding in eca.
66- Allow custom models addition via ` models <modelName> ` config.
77- Add ` /resume ` command to resume previous chats.
8+ - Support loading system prompts from a file.
9+ - Fix model name parsing.
810
911## 0.23.1
1012
163165
164166## 0.10.2
165167
166- - Fix usage metrics for anthropic models.
168+ - Fix usage metrics for anthropic models.
167169
168170## 0.10.1
169171
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ interface Config {
195195 anthropicApiKey? : string ;
196196 rules: [{path: string ;}];
197197 commands: [{path: string ;}];
198- systemPromptTemplate ? : string ;
198+ systemPromptTemplateFile ? : string ;
199199 nativeTools: {
200200 filesystem: {enabled: boolean };
201201 shell: {enabled: boolean ;
Original file line number Diff line number Diff line change 2222(def ^:private agent-behavior (memoize agent-behavior*))
2323
2424(defn ^:private eca-prompt [behavior config]
25- (let [prompt (or (:systemPromptTemplate config)
25+ (let [prompt (or (some-> ( :systemPromptTemplateFile config) slurp )
2626 (base-prompt-template ))]
2727 (reduce
2828 (fn [p [k v]]
Original file line number Diff line number Diff line change 161161 callbacks)
162162
163163 (contains? custom-models model)
164- (let [[provider model] (string/split model #"/" )
164+ (let [[provider model] (string/split model #"/" 2 )
165165 provider-config (get custom-providers (keyword provider))
166166 provider-fn (case (:api provider-config)
167167 " openai" llm-providers.openai/completion!
You can’t perform that action at this time.
0 commit comments