File tree Expand file tree Collapse file tree 1 file changed +42
-37
lines changed
Expand file tree Collapse file tree 1 file changed +42
-37
lines changed Original file line number Diff line number Diff line change @@ -77,24 +77,50 @@ Schema:
7777
7878_ * url and key will be search as env ` <provider>_API_URL ` / ` <provider>_API_KEY ` , but require config or to be found to work._
7979
80- Example :
80+ Examples :
8181
82- ` ~/.config/eca/config.json `
83- ``` javascript
84- {
85- " providers" : {
86- " my-company" : {
87- " api" : " openai-chat" ,
88- " urlEnv" : " MY_COMPANY_API_URL" , // or "url"
89- " keyEnv" : " MY_COMPANY_API_KEY" , // or "key"
90- " models" : {
91- " gpt-5" : {},
92- " deepseek-r1" : {}
93- }
82+ === "Custom provider"
83+
84+ `~/.config/eca/config.json`
85+ ```javascript
86+ {
87+ "providers": {
88+ "my-company": {
89+ "api": "openai-chat",
90+ "urlEnv": "MY_COMPANY_API_URL", // or "url"
91+ "keyEnv": "MY_COMPANY_API_KEY", // or "key"
92+ "models": {
93+ "gpt-5": {},
94+ "deepseek-r1": {}
95+ }
96+ }
97+ }
9498 }
95- }
96- }
97- ```
99+ ```
100+
101+ === "Custom model settings / payload"
102+
103+ Using `modelName`, you can configure multiple model names using same model with different settings:
104+
105+ `~/.config/eca/config.json`
106+ ```javascript
107+ {
108+ "providers": {
109+ "openai": {
110+ "api": "openai-responses",
111+ "models": {
112+ "gpt-5": {},
113+ "gpt-5-high": {
114+ "modelName": "gpt-5",
115+ "extraPayload": { "reasoning": {"effort": "high"}}
116+ }
117+ }
118+ }
119+ }
120+ }
121+ ```
122+
123+ This way both will use gpt-5 model but one will override the reasoning to be high instead of the default.
98124
99125### API Types
100126
@@ -303,24 +329,3 @@ Notes:
303329 }
304330 }
305331 ```
306-
307- === "Same model with different settings"
308-
309- Using `modelName`, you can configure multiple model names using same model with different settings:
310-
311- ```javascript
312- {
313- "providers": {
314- "openai": {
315- "api": "openai-responses",
316- "models": {
317- "gpt-5": {},
318- "gpt-5-high": {
319- "modelName": "gpt-5",
320- "extraPayload": { "reasoning": {"effort": "high"}}
321- }
322- }
323- }
324- }
325- }
326- ```
You can’t perform that action at this time.
0 commit comments