Skip to content

Commit

Permalink
Update 2024-11-14 (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
friendli-bot and github-actions[bot] authored Nov 14, 2024
1 parent 3ef4949 commit 57083d5
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 32 deletions.
6 changes: 3 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f3669dca-8853-4d85-914e-fb38172139b6
management:
docChecksum: b22d691bcae87aa4189932224b5837cf
docChecksum: c362fb7cab17ad43831e34fef7e3336d
docVersion: v1
speakeasyVersion: 1.439.0
generationVersion: 2.457.9
releaseVersion: 0.2.38
configChecksum: 4074ae8f5c2f3a2d2f1143a51f893a14
releaseVersion: 0.3.0
configChecksum: 1f7371b0e5432e105c7b9fcf3c0a4afb
repoURL: https://github.com/friendliai/friendli-python-internal.git
installationURL: https://github.com/friendliai/friendli-python-internal.git
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
python:
version: 0.2.38
version: 0.3.0
additionalDependencies:
dev: {}
main: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.439.0
sources:
Friendli-API-Schema:
sourceNamespace: friendli-api-schema
sourceRevisionDigest: sha256:9f66621e1ba9c74283e076705384dcc3a1e8fcca9ebeda6baa007631076d0f7e
sourceBlobDigest: sha256:0e7c79ebe78313f9d03ac0a3df522e3c3e9e31c7724fe5daa3b529c205258966
sourceRevisionDigest: sha256:2e3bb6211347420ccf68207b3516eef6d542862ebce472d7cfa79ef459fcfadb
sourceBlobDigest: sha256:b8398e2c6c705749923d45f0708a3b18ea3bda6983ff537789d888898eaeb63b
tags:
- latest
- main
targets:
friendli:
source: Friendli-API-Schema
sourceNamespace: friendli-api-schema
sourceRevisionDigest: sha256:9f66621e1ba9c74283e076705384dcc3a1e8fcca9ebeda6baa007631076d0f7e
sourceBlobDigest: sha256:0e7c79ebe78313f9d03ac0a3df522e3c3e9e31c7724fe5daa3b529c205258966
sourceRevisionDigest: sha256:2e3bb6211347420ccf68207b3516eef6d542862ebce472d7cfa79ef459fcfadb
sourceBlobDigest: sha256:b8398e2c6c705749923d45f0708a3b18ea3bda6983ff537789d888898eaeb63b
codeSamplesNamespace: friendli-api-schema-code-samples
codeSamplesRevisionDigest: sha256:60031adf529b040d4087b047a470a5968f6603761fb6b68eca0188411551b11e
codeSamplesRevisionDigest: sha256:ee0854818dd47f26d357cbf5364c9890eab148063d2f3930bfe25a565d01f659
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ from friendli import Friendli
import os

s = Friendli(
server_url="https://inference.friendli.ai",
server_url="https://api.friendli.ai",
token=os.getenv("FRIENDLI_TOKEN", ""),
)

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,14 @@ Based on:
### Generated
- [python v0.2.38] .
### Releases
- [PyPI v0.2.38] https://pypi.org/project/friendli/0.2.38 - .
- [PyPI v0.2.38] https://pypi.org/project/friendli/0.2.38 - .

## 2024-11-14 01:38:02
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.439.0 (2.457.9) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.3.0] .
### Releases
- [PyPI v0.3.0] https://pypi.org/project/friendli/0.3.0 - .
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "friendli"
version = "0.2.38"
version = "0.3.0"
description = "Python Client SDK Generated by Speakeasy."
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
2 changes: 1 addition & 1 deletion src/friendli/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib.metadata

__title__: str = "friendli"
__version__: str = "0.2.38"
__version__: str = "0.3.0"

try:
if __package__ is not None:
Expand Down
8 changes: 4 additions & 4 deletions src/friendli/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def complete(

req = self.build_request(
method="POST",
path="/v1/chat/completions",
path="/serverless/v1/chat/completions",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -317,7 +317,7 @@ async def complete_async(

req = self.build_request_async(
method="POST",
path="/v1/chat/completions",
path="/serverless/v1/chat/completions",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -511,7 +511,7 @@ def stream(

req = self.build_request(
method="POST",
path="/v1/chat/completions#stream",
path="/serverless/v1/chat/completions#stream",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -710,7 +710,7 @@ async def stream_async(

req = self.build_request_async(
method="POST",
path="/v1/chat/completions#stream",
path="/serverless/v1/chat/completions#stream",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down
8 changes: 4 additions & 4 deletions src/friendli/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def complete(

req = self.build_request(
method="POST",
path="/v1/completions",
path="/serverless/v1/completions",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -147,7 +147,7 @@ async def complete_async(

req = self.build_request_async(
method="POST",
path="/v1/completions",
path="/serverless/v1/completions",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -245,7 +245,7 @@ def stream(

req = self.build_request(
method="POST",
path="/v1/completions#stream",
path="/serverless/v1/completions#stream",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -348,7 +348,7 @@ async def stream_async(

req = self.build_request_async(
method="POST",
path="/v1/completions#stream",
path="/serverless/v1/completions#stream",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down
6 changes: 3 additions & 3 deletions src/friendli/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


SERVERS = [
"https://inference.friendli.ai",
"https://api.friendli.ai",
]
"""Contains the list of servers available to the SDK"""

Expand All @@ -26,9 +26,9 @@ class SDKConfiguration:
server_idx: Optional[int] = 0
language: str = "python"
openapi_doc_version: str = "v1"
sdk_version: str = "0.2.38"
sdk_version: str = "0.3.0"
gen_version: str = "2.457.9"
user_agent: str = "speakeasy-sdk/python 0.2.38 2.457.9 v1 friendli"
user_agent: str = "speakeasy-sdk/python 0.3.0 2.457.9 v1 friendli"
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None

Expand Down
8 changes: 4 additions & 4 deletions src/friendli/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def tokenization(

req = self.build_request(
method="POST",
path="/v1/tokenize",
path="/serverless/v1/tokenize",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -145,7 +145,7 @@ async def tokenization_async(

req = self.build_request_async(
method="POST",
path="/v1/tokenize",
path="/serverless/v1/tokenize",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -242,7 +242,7 @@ def detokenization(

req = self.build_request(
method="POST",
path="/v1/detokenize",
path="/serverless/v1/detokenize",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -339,7 +339,7 @@ async def detokenization_async(

req = self.build_request_async(
method="POST",
path="/v1/detokenize",
path="/serverless/v1/detokenize",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down
8 changes: 4 additions & 4 deletions src/friendli/toolassistedchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def complete(

req = self.build_request(
method="POST",
path="/tools/v1/chat/completions",
path="/serverless/tools/v1/chat/completions#complete",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -297,7 +297,7 @@ async def complete_async(

req = self.build_request_async(
method="POST",
path="/tools/v1/chat/completions",
path="/serverless/tools/v1/chat/completions#complete",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -470,7 +470,7 @@ def stream(

req = self.build_request(
method="POST",
path="/tools/v1/chat/completions#stream",
path="/serverless/tools/v1/chat/completions",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down Expand Up @@ -650,7 +650,7 @@ async def stream_async(

req = self.build_request_async(
method="POST",
path="/tools/v1/chat/completions#stream",
path="/serverless/tools/v1/chat/completions",
base_url=base_url,
url_variables=url_variables,
request=request,
Expand Down

0 comments on commit 57083d5

Please sign in to comment.