Skip to content

Commit f076543

Browse files
committed
fix backends
1 parent f6ff75e commit f076543

8 files changed

Lines changed: 108 additions & 26 deletions

File tree

.env.example

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,39 @@
1-
PYRIGHT_PYTHON_FORCE_VERSION=1.1.398
1+
# Quick-start
2+
PIPELEX_INFERENCE_API_KEY=
23

4+
# Advanced backend use
35
PIPELEX_API_TOKEN=
46
PIPELEX_API_BASE_URL=http://localhost:8081/api
57

6-
OPENAI_API_KEY=sk-proj-
8+
OPENAI_API_KEY=
79

810
AWS_ACCESS_KEY_ID=
911
AWS_SECRET_ACCESS_KEY=
1012
AWS_REGION=
1113

12-
AZURE_OPENAI_API_ENDPOINT=
13-
AZURE_OPENAI_API_VERSION=
14-
AZURE_OPENAI_API_KEY=
14+
AZURE_API_BASE=
15+
AZURE_API_VERSION=
16+
AZURE_API_KEY=
1517

16-
ANTHROPIC_API_KEY=sk-ant-
18+
ANTHROPIC_API_KEY=
1719

1820
MISTRAL_API_KEY=
1921

20-
PERPLEXITY_API_KEY=pplx-
22+
PERPLEXITY_API_KEY=
2123
PERPLEXITY_API_ENDPOINT=https://api.perplexity.ai
2224

2325
FAL_API_KEY=
2426

2527
GCP_PROJECT_ID=
26-
GCP_REGION=
28+
GCP_LOCATION=
2729
GCP_CREDENTIALS_FILE_PATH=gcp_credentials.json
2830

2931
CUSTOM_ENDPOINT_BASE_URL=http://localhost:11434/v1
3032
CUSTOM_ENDPOINT_API_KEY=
3133

32-
XAI_API_KEY=xai-
34+
XAI_API_KEY=
3335
XAI_API_ENDPOINT=https://api.x.ai/v1/
36+
37+
BLACKBOX_API_KEY=
38+
39+
GOOGLE_API_KEY=

.pipelex/inference/backends.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ enabled = false
1313
aws_region = "${AWS_REGION}"
1414

1515
[google]
16-
enabled = true
16+
enabled = false
1717
api_key = "${GOOGLE_API_KEY}"
1818

1919
[vertexai]
@@ -32,7 +32,7 @@ api_key = "${ANTHROPIC_API_KEY}"
3232
claude_4_tokens_limit = 8192
3333

3434
[mistral]
35-
enabled = true
35+
enabled = false
3636
api_key = "${MISTRAL_API_KEY}"
3737

3838
[xai]

.pipelex/inference/backends/pipelex_inference.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ inputs = ["text", "images"]
101101
outputs = ["text", "structured"]
102102
costs = { input = 0.30, output = 2.50 }
103103

104+
["gemini-2.5-pro"]
105+
model_id = "gemini/gemini-2.5-pro"
106+
inputs = ["text", "images"]
107+
outputs = ["text", "structured"]
108+
costs = { input = 1.25, output = 10.00 }
109+
104110
["gemini-2.5-flash-lite"]
105111
model_id = "gemini/gemini-2.5-flash-lite"
106112
inputs = ["text", "images"]

.pipelex/inference/routing_profiles.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ default = "pipelex_inference"
3131
"gpt-*" = "pipelex_inference"
3232
"claude-*" = "pipelex_inference"
3333
"grok-*" = "pipelex_inference"
34-
"gemini-*" = "google"
34+
"gemini-*" = "pipelex_inference"
3535
"*-sdxl" = "fal"
3636
"flux-*" = "fal"
3737
"gpt-image-1" = "openai"

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,11 @@ Streamline your documentation workflow with AI-powered automation:
2222
```bash
2323
pip install cocode
2424
```
25-
26-
## ✅ Validation
27-
28-
```bash
29-
# Verify setup and pipelines
30-
cocode validate
31-
```
32-
3325
### Set up environment variables
3426

35-
Enter your API keys into your `.env` file. The `OPENAI_API_KEY` is enough to get you started, but some pipelines require models from other providers.
36-
Some complex pipelines require GCP credentials (See [GCP credentials](https://docs.pipelex.com/pages/build-reliable-ai-workflows-with-pipelex/ai-plugins-for-multi-llm-workflows/#4-google-vertex-ai-configuration) for more details), or Anthropic API keys `ANTHROPIC_API_KEY`.
27+
**Quick Start:** Join our [Discord](https://go.pipelex.com/discord) to get a FREE API key with $20 credit that works with all LLM providers - no setup required!
28+
29+
**Using Your Own API Keys:** If you prefer to use your own API keys from OpenAI, Anthropic, Google, or other providers, follow our [API configuration tutorial](https://docs.pipelex.com/pages/quick-start/#option-2-use-your-own-api-keys).
3730

3831
## 🛠️ Quick Start
3932

@@ -63,6 +56,12 @@ cocode github sync-labels owner/repo labels.json # Sync labels from JSON file
6356

6457
The results of these commands will be saved in a `results` (default behavior) folder at the root of your project.
6558

59+
## ✅ Validation
60+
61+
```bash
62+
cocode validate
63+
```
64+
6665
### IDE extension
6766

6867
We **highly** recommend installing our own extension for PLX files into your IDE of choice. You can find it in the [Open VSX Registry](https://open-vsx.org/extension/Pipelex/pipelex). It's coming soon to VS Code marketplace too and if you are using Cursor, Windsurf or another VS Code fork, you can search for it directly in your extensions tab.

cocode/pipelex_libraries/pipelines/doc_proofread/file_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def create_documentation_files_from_paths(doc_file_paths: List[str], doc_dir: st
4646
return doc_files
4747

4848

49-
async def read_file_content(working_memory: WorkingMemory) -> ListContent[CodebaseFileContent]:
49+
def read_file_content(working_memory: WorkingMemory) -> ListContent[CodebaseFileContent]:
5050
"""Read the content of related codebase files.
5151
5252
Args:

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ classifiers = [
1616
"Operating System :: OS Independent",
1717
]
1818

19-
dependencies = ["pipelex[anthropic,google,google-genai,bedrock] @ git+https://github.com/Pipelex/pipelex.git@refactor/EPIC-2-PipeOcr-input-and-Agent-rules", "PyGithub==2.4.0"]
19+
dependencies = [
20+
# "pipelex[anthropic,google,google-genai,bedrock] @ git+https://github.com/Pipelex/pipelex.git@refactor/EPIC-2-PipeOcr-input-and-Agent-rules",
21+
"pipelex[anthropic,google,google-genai,bedrock]",
22+
"PyGithub==2.4.0",
23+
]
24+
[tool.uv.sources]
25+
pipelex = { path = "../pipelex", editable = true }
2026

2127
[project.optional-dependencies]
2228
docs = [

uv.lock

Lines changed: 67 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)