@@ -65,11 +65,9 @@ Crush can use LSPs for additional context to help inform its decisions, just lik
6565{
6666 "lsp": {
6767 "go": {
68− "disabled": false,
6968 "command": "gopls"
7069 },
7170 "typescript": {
72− "disabled": false,
7371 "command": "typescript-language-server",
7472 "args": ["--stdio"]
7573 },
@@ -80,83 +78,30 @@ Crush can use LSPs for additional context to help inform its decisions, just lik
8078}
8179```
8280
83−### Amazon Bedrock
84−
85−To use AWS Bedrock with Claude models, configure your AWS credentials and region:
86−
87−```json
88−{
89− "providers": [
90− {
91− "id": "bedrock",
92− "provider_type": "bedrock",
93− "extra_params": {
94− "region": "us-east-1"
95− }
96− }
97− ]
98−}
99−```
100−
101−Bedrock uses your AWS credentials from environment variables (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`) or AWS credential profiles. The region can be specified in the configuration or via the `AWS_REGION` environment variable.
102−
103−### Google Vertex AI
104−
105−For Google Cloud Vertex AI with Gemini models, configure your project and location:
106−
107−```json
108−{
109− "providers": [
110− {
111− "id": "vertexai",
112− "provider_type": "vertexai",
113− "extra_headers": {
114− "project": "your-gcp-project-id",
115− "location": "us-central1"
116− }
117− }
118− ]
119−}
120−```
121−
122−Vertex AI uses Google Cloud authentication. Ensure you have the `GOOGLE_APPLICATION_CREDENTIALS` environment variable set or are authenticated via `gcloud auth application-default login`.
123−
12481### OpenAI-Compatible APIs
12582
126−Crush supports all OpenAI-compatible APIs, including local models via Ollama:
83+Crush supports all OpenAI-compatible APIs. Here's an example configuration for Deepseek, which uses an OpenAI-compatible API. Don't forget to set `DEEPSEEK_API_KEY` in your environment.
12784
12885```json
12986{
130− "providers": [
131− {
132− "id": "ollama",
87+ "providers": {
88+ "deepseek": {
13389 "provider_type": "openai",
134− "base_url": "http://localhost:11434/v1",
90+ "base_url": "https://api.deepseek.com/v1",
13591 "models": [
13692 {
137− "id": "llama3.2:3b",
138− "name": "Llama 3.2 3B",
139− "context_window": 8192,
140− "default_max_tokens": 4096
93+ "id": "deepseek-chat",
94+ "model": "Deepseek V3",
95+ "cost_per_1m_in": 0.27,
96+ "cost_per_1m_out": 1.1,
97+ "cost_per_1m_in_cached": 0.07,
98+ "cost_per_1m_out_cached": 1.1,
99+ "context_window": 64000,
100+ "default_max_tokens": 5000
141101 }
142102 ]
143103 }
144− ]
145−}
146−```
147−
148−For other OpenAI-compatible providers, adjust the `base_url` and provide an `api_key` if required:
149−
150−```json
151−{
152− "providers": [
153− {
154− "id": "custom-openai",
155− "provider_type": "openai",
156− "base_url": "https://api.example.com/v1",
157− "api_key": "your-api-key"
158− }
159− ]
104+ }
160105}
161106```
162107