Skip to content

Commit

Permalink
Merge pull request #15 from aurelio-labs/simonas/embeddings-endpoint
Browse files Browse the repository at this point in the history
chore: updated embeddings base url
  • Loading branch information
simjak authored Oct 4, 2024
2 parents 2a88388 + 4c77155 commit 6182e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions aurelio_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,8 @@ def embedding(
Raises:
APIError: If the API request fails.
APITimeoutError: If the request exceeds the specified timeout.
Note:
This method currently uses a staging API endpoint.
TODO: Change to production endpoint.
"""
# client_url = f"{self.base_url}/v1/embeddings"
# TODO: change to prod
client_url = "https://staging.api.aurelio.ai/v1/embeddings"
client_url = f"{self.base_url}/v1/embeddings"
data = {"input": input, "model": model}
try:
response = requests.post(
Expand Down
8 changes: 1 addition & 7 deletions aurelio_sdk/client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,8 @@ async def embedding(
Raises:
APIError: If the API request fails.
APITimeoutError: If the request exceeds the specified timeout.
Note:
This method currently uses a staging API endpoint.
TODO: Change to production endpoint.
"""
# client_url = f"{self.base_url}/v1/embeddings"
# TODO: change to prod
client_url = "https://staging.api.aurelio.ai/v1/embeddings"
client_url = f"{self.base_url}/v1/embeddings"
data = {"input": input, "model": model}

session_timeout = aiohttp.ClientTimeout(total=timeout)
Expand Down

0 comments on commit 6182e81

Please sign in to comment.