Skip to content

Commit fdf5ce7

Browse files
committed
docs
1 parent 9f0b5f9 commit fdf5ce7

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

docs/models.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ To start using ECA, you need to configure at least one model with your API key.
4444

4545
Create a configuration file at `.eca/config.json` in your project root or at `~/.config/eca/config.json` globally:
4646

47-
```json
47+
```javascript
4848
{
4949
"openaiApiKey": "your-openai-api-key-here",
5050
"anthropicApiKey": "your-anthropic-api-key-here"
@@ -59,7 +59,7 @@ Create a configuration file at `.eca/config.json` in your project root or at `~/
5959

6060
You can add new models or override existing ones in your configuration:
6161

62-
```json
62+
```javascript
6363
{
6464
"openaiApiKey": "your-openai-api-key-here",
6565
"models": {
@@ -73,7 +73,7 @@ You can add new models or override existing ones in your configuration:
7373

7474
You can customize model parameters like temperature, reasoning effort, etc.:
7575

76-
```json
76+
```javascript
7777
{
7878
"openaiApiKey": "your-openai-api-key-here",
7979
"models": {
@@ -104,12 +104,14 @@ When configuring custom providers, choose the appropriate API type:
104104

105105
- **`openai-responses`**: OpenAI's new responses API endpoint (`/v1/responses`). Best for OpenAI models with enhanced features like reasoning and web search.
106106
- **`openai-chat`**: Standard OpenAI Chat Completions API (`/v1/chat/completions`). Use this for most third-party providers:
107+
107108
- OpenRouter
108109
- DeepSeek
109110
- Together AI
110111
- Groq
111112
- Local LiteLLM servers
112113
- Any OpenAI-compatible provider
114+
113115
- **`anthropic`**: Anthropic's native API for Claude models.
114116

115117
Most third-party providers use the `openai-chat` API for compatibility with existing tools and libraries.
@@ -120,8 +122,8 @@ It's possible to configure ECA to be aware of custom LLM providers if they follo
120122

121123
Example:
122124

123-
`~/.config/eca/config.json`
124-
```json
125+
`~/.config/eca/config.javascript`
126+
```javascript
125127
{
126128
"customProviders": {
127129
"my-company": {
@@ -152,7 +154,7 @@ _* Either the `url` or `urlEnv` option is required, and either the `key` or `key
152154

153155
### Example: Custom LiteLLM server
154156

155-
```json
157+
```javascript
156158
{
157159
"customProviders": {
158160
"litellm": {
@@ -168,7 +170,7 @@ _* Either the `url` or `urlEnv` option is required, and either the `key` or `key
168170

169171
### Example: Using environment variables
170172

171-
```json
173+
```javascript
172174
{
173175
"customProviders": {
174176
"enterprise": {
@@ -186,7 +188,7 @@ _* Either the `url` or `urlEnv` option is required, and either the `key` or `key
186188

187189
[OpenRouter](https://openrouter.ai) provides access to many models through a unified API:
188190

189-
```json
191+
```javascript
190192
{
191193
"customProviders": {
192194
"openrouter": {
@@ -204,7 +206,7 @@ _* Either the `url` or `urlEnv` option is required, and either the `key` or `key
204206

205207
[DeepSeek](https://deepseek.com) offers powerful reasoning and coding models:
206208

207-
```json
209+
```javascript
208210
{
209211
"customProviders": {
210212
"deepseek": {

0 commit comments

Comments
 (0)