-
Notifications
You must be signed in to change notification settings - Fork 5
fix: correct Pi metadata and provider support #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
e5ab81f
eb1268f
a50de04
78f3ad4
28cb7ba
e436697
7c167fb
ae4f698
04affaf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,8 +8,8 @@ | |
| schemaVersion: "1" | ||
| kind: sandbox | ||
| name: pi | ||
| displayName: Anthropic Claude Pi | ||
| description: Anthropic Claude Pi | ||
| displayName: Pi Coding Agent | ||
| description: A minimal terminal coding harness | ||
|
|
||
| sandbox: | ||
| entrypoint: { run: [pi] } | ||
|
|
@@ -31,11 +31,17 @@ sandbox: | |
| - agent/skills/ | ||
| - agent/themes/ | ||
|
|
||
| environment: | ||
| variables: | ||
| PI_SKIP_VERSION_CHECK: "1" | ||
| PI_TELEMETRY: "0" | ||
|
xai marked this conversation as resolved.
|
||
|
|
||
| credentials: | ||
| sources: | ||
| openai-api-key: { env: [OPENAI_API_KEY] } | ||
| anthropic-api-key: { env: [ANTHROPIC_API_KEY] } | ||
| gemini-api-key: { env: [GEMINI_API_KEY] } | ||
| mistral-api-key: { env: [MISTRAL_API_KEY] } | ||
|
|
||
| network: | ||
| serviceDomains: | ||
|
|
@@ -44,21 +50,43 @@ network: | |
| api.anthropic.com: anthropic-api-key | ||
| "*.anthropic.com": anthropic-api-key | ||
| generativelanguage.googleapis.com: gemini-api-key | ||
| api.mistral.ai: mistral-api-key | ||
| serviceAuth: | ||
| openai-api-key: { headerName: authorization, valueFormat: "Bearer %s" } | ||
| anthropic-api-key: { headerName: x-api-key } | ||
| gemini-api-key: { headerName: x-goog-api-key } | ||
| mistral-api-key: { headerName: authorization, valueFormat: "Bearer %s" } | ||
|
|
||
| providers: | ||
| - name: openai-codex | ||
| - name: openai | ||
| credentials: [openai-api-key] | ||
| authFiles: [agent/auth.json] | ||
| authSession: | ||
| mode: any | ||
| checks: | ||
| - { file: agent/auth.json, type: json_pointer_non_null, pointer: /openai } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These five pointers are the substance of the PR and a reviewer can't check them against anything in-tree. A wrong key fails silently:
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The pointers are correct:
|
||
| - name: openai-codex | ||
| authFiles: [agent/auth.json] | ||
|
xai marked this conversation as resolved.
|
||
| authSession: | ||
| checks: | ||
| - { file: agent/auth.json, type: json_pointer_non_null, pointer: /openai-codex } | ||
| oauthPorts: [{ port: "1455" }] | ||
| - name: anthropic | ||
| credentials: [anthropic-api-key] | ||
| - name: gemini | ||
| authFiles: [agent/auth.json] | ||
| authSession: | ||
| checks: | ||
| - { file: agent/auth.json, type: json_pointer_non_null, pointer: /anthropic } | ||
| oauthPorts: | ||
| - { port: "53692", autoHintWhenNoSession: false, requireMappingWhenNoCredentials: false } | ||
| - name: google | ||
| credentials: [gemini-api-key] | ||
| authFiles: [agent/auth.json] | ||
| authSession: | ||
| checks: | ||
| - { file: agent/auth.json, type: json_pointer_non_null, pointer: /google } | ||
| - name: mistral | ||
| credentials: [mistral-api-key] | ||
| authFiles: [agent/auth.json] | ||
| authSession: | ||
| checks: | ||
| - { file: agent/auth.json, type: json_pointer_non_null, pointer: /mistral } | ||
Uh oh!
There was an error while loading. Please reload this page.