@mariozechner/pi-ai 0.45.3 → 0.45.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -56,6 +56,7 @@ Unified LLM API with automatic model discovery, provider configuration, token an
56
56
  - **Cerebras**
57
57
  - **xAI**
58
58
  - **OpenRouter**
59
+ - **Vercel AI Gateway**
59
60
  - **MiniMax**
60
61
  - **GitHub Copilot** (requires OAuth, see below)
61
62
  - **Google Gemini CLI** (requires OAuth, see below)
@@ -710,6 +711,7 @@ interface OpenAICompat {
710
711
  supportsDeveloperRole?: boolean; // Whether provider supports `developer` role vs `system` (default: true)
711
712
  supportsReasoningEffort?: boolean; // Whether provider supports `reasoning_effort` (default: true)
712
713
  maxTokensField?: 'max_completion_tokens' | 'max_tokens'; // Which field name to use (default: max_completion_tokens)
714
+ thinkingFormat?: 'openai' | 'zai'; // Format for reasoning param: 'openai' uses reasoning_effort, 'zai' uses thinking: { type: "enabled" } (default: openai)
713
715
  }
714
716
  ```
715
717
 
@@ -862,6 +864,7 @@ In Node.js environments, you can set environment variables to avoid passing API
862
864
  | Cerebras | `CEREBRAS_API_KEY` |
863
865
  | xAI | `XAI_API_KEY` |
864
866
  | OpenRouter | `OPENROUTER_API_KEY` |
867
+ | Vercel AI Gateway | `AI_GATEWAY_API_KEY` |
865
868
  | zAI | `ZAI_API_KEY` |
866
869
  | MiniMax | `MINIMAX_API_KEY` |
867
870
  | GitHub Copilot | `COPILOT_GITHUB_TOKEN` or `GH_TOKEN` or `GITHUB_TOKEN` |