Skip to content
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

Portkey AI Inference Provider Integration #672

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
portkey integration v4
  • Loading branch information
siddharthsambharia-portkey committed Dec 20, 2024
commit 9fd50e0272c011d375e290d6f8dc200fdaaba789
8 changes: 8 additions & 0 deletions llama_stack/providers/remote/inference/portkey/config.py
Original file line number Diff line number Diff line change
@@ -23,6 +23,14 @@ class PortkeyImplConfig(BaseModel):
default=os.environ.get("PORTKEY_API_KEY"),
description="Portkey API Key",
)
virtual_key: Optional[str] = Field(
default=os.environ.get("PORTKEY_VIRTUAL_KEY"),
description="Portkey Virtual Key",
)
config: Optional[str] = Field(
default=os.environ.get("PORTKEY_CONFIG_ID"),
description="Portkey Config ID",
)

@classmethod
def sample_run_config(cls, **kwargs) -> Dict[str, Any]: