Skip to content

Conversation

ksuilen
Copy link

@ksuilen ksuilen commented Jun 17, 2025

Added a new provider: Portkey API gateway.

Features Added

  • Portkey Provider: New provider for AI gateway integration
  • Custom Headers: UI for adding/editing/deleting custom headers (for example: x-portkey-debug: false to ensure that requests are not logged in the gateways)
  • Custom Models: UI for configuring custom models (name, label, max tokens, portkey has no /models endpoint so we have to enter them manually)
  • API Key Management: Integration with existing APIKeyManager
  • Environment Variables: Support for PORTKEY_API_KEY and PORTKEY_API_BASE_URL

Implementation Details

  • Extended IProviderSetting interface for custom headers and models
  • Created HeaderManager component for header configuration
  • Updated getOpenAILikeModel to accept custom headers
  • Integrated components into CloudProvidersTab
  • Provider appears in Cloud Providers section with full UI support

github-actions bot and others added 17 commits December 16, 2024 21:50
…abs#1414 (stackblitz-labs#1436)

* Fix: error building my application stackblitz-labs#1414

* fix for vite

* Update vite.config.ts

* Update root.tsx

* fix the root.tsx and the debugtab

* lm studio fix and fix for the api key

* Update api.enhancer for prompt enhancement

* bugfixes

* Revert api.enhancer.ts back to original code

* Update api.enhancer.ts

* Update api.git-proxy.$.ts

* Update api.git-proxy.$.ts

* Update api.enhancer.ts
Reordered the "Commit and Tag Release" step to ensure it runs before uploading release assets. Added environment variables `GH_TOKEN`, `GITHUB_TOKEN`, and `NODE_OPTIONS` to the Electron build, added authentication and memory allocation during the build process.
…vider for AI gateway functionality - Support for custom headers via UI (default: x-portkey-debug: false) - Support for custom models configuration via UI - Integrate HeaderManager and ModelManager components - Update CloudProvidersTab to support Portkey configuration - Add environment variables for PORTKEY_API_KEY and PORTKEY_API_BASE_URL - Fix linting issues and import paths
@ksuilen ksuilen changed the title Feature/add portkey API gateway as LLM provider feat : Add portkey API gateway as LLM provider Jun 17, 2025
@ksuilen
Copy link
Author

ksuilen commented Jun 17, 2025

updated request title

@ksuilen ksuilen changed the title feat : Add portkey API gateway as LLM provider feat: add portkey API gateway as LLM provider Jun 17, 2025
@xKevIsDev
Copy link
Collaborator

This is awesome, will do some more testing on it and provide any feedback if any. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants