Skip to content

Commit

Permalink
Update patch version v1.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
seuha516 authored and kooyunmo committed Jan 24, 2025
1 parent 57f149d commit 4915360
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 16 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Copyright (c) 2022-present, FriendliAI Inc. All rights reserved.
<a href="https://pypi.org/project/friendli-client/">
<img alt="PyPi Package Version" src="https://img.shields.io/pypi/v/friendli-client?logo=PyPI&logoColor=white">
</a>
<a href="https://docs.friendli.ai/">
<a href="https://friendli.ai/docs/">
<img alt="Documentation" src="https://img.shields.io/badge/read-doc-blue?logo=ReadMe&logoColor=white">
</a>
<a href="https://github.com/friendliai/friendli-client/blob/main/LICENSE">
Expand Down Expand Up @@ -51,7 +51,7 @@ pip install friendli-client
[Friendli Serverless Endpoint](https://friendli.ai/products/serverless-endpoints) offer a simple, click-and-play interface for accessing popular open-source models like Llama 3.1.
With pay-per-token billing, this is ideal for exploration and experimentation.
To interact with models hosted by serverless endpoints, provide the model code you want to use in the `model` argument. Refer to the [pricing table](https://docs.friendli.ai/guides/serverless_endpoints/pricing/) for a list of available model codes and their pricing.
To interact with models hosted by serverless endpoints, provide the model code you want to use in the `model` argument. Refer to the [pricing table](https://friendli.ai/docs/guides/serverless_endpoints/pricing/) for a list of available model codes and their pricing.
```python
from friendli import Friendli
Expand Down Expand Up @@ -535,5 +535,4 @@ friendli api chat-completions create \
For further information about the `friendli` command, run `friendli --help` in your terminal shell.
This will provide you with a detailed list of available options and usage instructions.

> [!TIP]
> **Check out our [official documentation](https://docs.friendli.ai/) to learn more!**
> [!TIP] > **Check out our [official documentation](https://friendli.ai/docs/) to learn more!**
2 changes: 1 addition & 1 deletion friendli/cli/api/chat_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def create(
case_sensitive=True,
help=(
"The model to use for chat completions. "
"See https://docs.friendli.ai/guides/serverless_endpoints/pricing for more "
"See https://friendli.ai/docs/guides/serverless_endpoints/pricing for more "
"about available models and pricing."
),
),
Expand Down
2 changes: 1 addition & 1 deletion friendli/cli/api/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def create(
"-m",
help=(
"The model to use for chat completions. "
"See https://docs.friendli.ai/guides/serverless_endpoints/pricing for more "
"See https://friendli.ai/docs/guides/serverless_endpoints/pricing for more "
"about available models and pricing."
),
),
Expand Down
4 changes: 2 additions & 2 deletions friendli/cli/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def callback(request: Request) -> HTMLResponse:
<div class="message-box">
<h1>Authentication was successful</h1>
<p>You can now close this window and return to CLI.</p>
<p>Redirecting to <a href="https://docs.friendli.ai/">Friendli Documentation</a> in <span id="countdown">10</span> seconds.</p>
<p>Redirecting to <a href="https://friendli.ai/docs/">Friendli Documentation</a> in <span id="countdown">10</span> seconds.</p>
</div>
<script>
var timeLeft = 10;
Expand All @@ -102,7 +102,7 @@ async def callback(request: Request) -> HTMLResponse:
countdownElement.innerHTML = timeLeft;
if (timeLeft <= 0) {
clearInterval(timerId);
window.location.href = "https://docs.friendli.ai/";
window.location.href = "https://friendli.ai/docs/";
}
}, 1000);
</script>
Expand Down
4 changes: 2 additions & 2 deletions friendli/sdk/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def _check_http_error(self, response: httpx.Response) -> None:
raise APIError(
f"Endpoint ({endpoint_url}) is not found. This may be due to an "
"invalid model name or endpoint ID. For serverless endpoints, see "
"https://docs.friendli.ai/guides/serverless_endpoints/pricing "
"https://friendli.ai/docs/guides/serverless_endpoints/pricing "
"to find out availble models. For dedicated endpoints, check your "
"endpoiont ID again."
) from exc
Expand Down Expand Up @@ -388,7 +388,7 @@ async def _check_http_error(self, response: httpx.Response) -> None:
if response.status_code == 404:
raise APIError(
"Endpoint is not found. This may be due to an invalid model name. "
"See https://docs.friendli.ai/guides/serverless_endpoints/pricing "
"See https://friendli.ai/docs/guides/serverless_endpoints/pricing "
"to find out availble models."
) from exc

Expand Down
4 changes: 3 additions & 1 deletion friendli/sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from friendli.sdk.resource.endpoint import EndpointApi
from friendli.sdk.resource.model import ModelApi

INFERENCE_ENDPOINT_URL = "https://inference.friendli.ai"
INFERENCE_ENDPOINT_URL = "https://api.friendli.ai"


class FriendliClientBase:
Expand Down Expand Up @@ -69,6 +69,8 @@ def __init__(

if use_dedicated_endpoint:
self._base_url = os.path.join(self._base_url, "dedicated")
else:
self._base_url = os.path.join(self._base_url, "serverless")


class Friendli(FriendliClientBase):
Expand Down
8 changes: 4 additions & 4 deletions friendli/utils/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ class StagingURLProvider(URLProvider):
auth_url = "https://pfauth-staging.friendli.ai/"
meter_url = "https://pfmeter-staging.friendli.ai/"
observatory_url = "https://pfo-staging.friendli.ai/"
web_backend_url = "https://api-staging.friendli.ai/"
training_url = "https://api-staging.friendli.ai/api/"
web_backend_url = "https://api-internal-staging.friendli.ai/"
training_url = "https://api-internal-staging.friendli.ai/api/"


class DevURLProvider(URLProvider):
Expand All @@ -112,5 +112,5 @@ class DevURLProvider(URLProvider):
auth_url = "https://pfauth-dev.friendli.ai/"
meter_url = "https://pfmeter-dev.friendli.ai/"
observatory_url = "https://pfo-dev.friendli.ai/"
web_backend_url = "https://api-dev.friendli.ai/"
training_url = "https://api-dev.friendli.ai/api/"
web_backend_url = "https://api-internal-dev.friendli.ai/"
training_url = "https://api-internal-dev.friendli.ai/api/"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include = ["friendli/py.typed"]
readme = "README.md"
homepage = "https://friendli.ai/"
repository = "https://github.com/friendliai/friendli-client"
documentation = "https://docs.friendli.ai/"
documentation = "https://friendli.ai/docs/"
keywords = ["generative-ai", "serving", "llm", "inference", "finetuning"]

[tool.poetry.scripts]
Expand Down

0 comments on commit 4915360

Please sign in to comment.