Skip to content

Commit

Permalink
Merge pull request #399 from julep-ai/x/traefik-related-hotfixes
Browse files Browse the repository at this point in the history
wip: Python client fix + example keys whitelist
  • Loading branch information
creatorrr authored Apr 1, 2024
2 parents 6b507fa + e725718 commit 87e187a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 9 deletions.
8 changes: 3 additions & 5 deletions agents-api/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ services:

text-embeddings-inference:
container_name: text-embeddings-inference
env_file:
- path: .env
required: false
- path: ../.env
required: true
environment:
- DTYPE=float16
- MODEL_ID=BAAI/llm-embedder

image: ghcr.io/huggingface/text-embeddings-inference:1.0
ports:
Expand Down
1 change: 0 additions & 1 deletion sdks/python/julep/api/types/chat_input_data_tool_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import typing

from .named_tool_choice import NamedToolChoice
from .named_tool_choice_function import NamedToolChoiceFunction
from .tool_choice_option import ToolChoiceOption

ChatInputDataToolChoice = typing.Union[ToolChoiceOption, NamedToolChoice]
4 changes: 2 additions & 2 deletions sdks/python/julep/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __init__(
)

self._api_client = JulepApi(
api_key=api_key,
api_key=f"Bearer {api_key}",
base_url=base_url,
httpx_client=httpx_client,
*args,
Expand Down Expand Up @@ -240,7 +240,7 @@ def __init__(
), "base_url must be provided or set as env var JULEP_API_URL"

self._api_client = AsyncJulepApi(
api_key=api_key, base_url=base_url, *args, **kwargs
api_key=f"Bearer {api_key}", base_url=base_url, *args, **kwargs
)

self.agents = AsyncAgentsManager(api_client=self._api_client)
Expand Down
19 changes: 18 additions & 1 deletion sdks/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdks/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ipython = "<8.13"
pyright = "^1.1.348"
handsdown = "^2.1.0"
jupyterlab = "^4.1.0"
pyjwt = "^2.8.0"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 87e187a

Please sign in to comment.