Skip to content

Commit b137809

Browse files
authored
Merge pull request #154 from Portkey-AI/feat/vendoring
Vendoring
2 parents 01854ba + e3040bc commit b137809

File tree

294 files changed

+38242
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

294 files changed

+38242
-33
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dist/
1414
downloads/
1515
eggs/
1616
.eggs/
17-
lib/
17+
/lib/
1818
lib64/
1919
parts/
2020
sdist/

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ help: ## Show all Makefile targets
55
.PHONY: format lint
66
format: ## Run code formatter: black
77
black .
8-
ruff check . --fix
8+
ruff check . --fix
99
lint: ## Run linters: mypy, black, ruff
1010
mypy .
1111
black . --check

portkey_ai/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
from typing import Mapping, Optional, Union
3+
from ._vendor import openai
34
from portkey_ai.api_resources import (
45
LLMOptions,
56
Modes,
@@ -143,4 +144,5 @@
143144
"AsyncVectorStores",
144145
"AsyncVectorFiles",
145146
"AsyncVectorFileBatches",
147+
"openai",
146148
]

portkey_ai/_vendor/__init__.py

Whitespace-only changes.

portkey_ai/_vendor/bin/openai

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/Users/chandeep/Documents/Workspace/Portkey/SDK/portkey-python-sdk/venv/bin/python3
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
from openai.cli import main
6+
if __name__ == '__main__':
7+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8+
sys.exit(main())
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip

0 commit comments

Comments
 (0)