Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion clients/python/llmengine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.0.0b24"
__version__ = "0.0.0b25"

import os
from typing import Sequence
Expand Down
10 changes: 7 additions & 3 deletions clients/python/llmengine/api_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from urllib.parse import urljoin

import requests
from aiohttp import ClientSession, ClientTimeout
from aiohttp import BasicAuth, ClientSession, ClientTimeout
from llmengine.errors import parse_error

SPELLBOOK_API_URL = "https://api.spellbook.scale.com/llm-engine/"
Expand Down Expand Up @@ -163,7 +163,9 @@ async def apost_sync(
) -> Dict[str, Any]:
api_key = get_api_key()
async with ClientSession(
timeout=ClientTimeout(timeout), headers={"x-api-key": api_key}
timeout=ClientTimeout(timeout),
headers={"x-api-key": api_key},
auth=BasicAuth(api_key, ""),
) as session:
async with session.post(
urljoin(LLM_ENGINE_BASE_PATH, resource_name), json=data
Expand All @@ -179,7 +181,9 @@ async def apost_stream(
) -> AsyncIterable[Dict[str, Any]]:
api_key = get_api_key()
async with ClientSession(
timeout=ClientTimeout(timeout), headers={"x-api-key": api_key}
timeout=ClientTimeout(timeout),
headers={"x-api-key": api_key},
auth=BasicAuth(api_key, ""),
) as session:
async with session.post(
urljoin(LLM_ENGINE_BASE_PATH, resource_name), json=data
Expand Down
2 changes: 1 addition & 1 deletion clients/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "scale-llm-engine"
version = "0.0.0.beta24"
version = "0.0.0.beta25"
description = "Scale LLM Engine Python client"
license = "Apache-2.0"
authors = ["Phil Chen <phil.chen@scale.com>"]
Expand Down
2 changes: 1 addition & 1 deletion clients/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
setup(
name="scale-llm-engine",
python_requires=">=3.7",
version="0.0.0.beta24",
version="0.0.0.beta25",
packages=find_packages(),
)