Skip to content

Commit

Permalink
Update 2024-11-08 (#24)
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 8, 2024
1 parent 7ca6141 commit c1df431
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 980a2a11-4390-48fe-a741-a78ab1e9c399
management:
docChecksum: 6c0b8de4f41210be1c4d3d4ba72a76c2
docChecksum: 1dc2872dcf53471fef231ee58429df7f
docVersion: v1
speakeasyVersion: 1.434.7
generationVersion: 2.452.0
releaseVersion: 0.2.17
configChecksum: 09e153662c09d8e316bb7b2b52ddcf76
releaseVersion: 0.2.18
configChecksum: c4c7aea2190ecbe49ee97d58f1f328e5
repoURL: https://github.com/friendliai/friendli-python-internal.git
installationURL: https://github.com/friendliai/friendli-python-internal.git
published: true
Expand Down Expand Up @@ -267,7 +267,7 @@ examples:
ToolAssistedChatCompletion:
"":
requestBody:
application/json: {"model": "meta-llama-3.1-8b-instruct", "messages": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"}], "max_tokens": 200, "tools": [{"type": "math:calculator"}, {"type": "web:url"}]}
application/json: {"model": "meta-llama-3.1-8b-instruct", "messages": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"}], "max_tokens": 200, "tools": [{"type": "math:calculator"}, {"type": "web:search"}]}
responses:
"200":
application/json: {"choices": [{"index": 0, "message": {"role": "<value>"}, "finish_reason": "<value>"}, {"index": 0, "message": {"role": "<value>"}, "finish_reason": "<value>"}], "usage": {"prompt_tokens": 5, "completion_tokens": 7, "total_tokens": 12}}
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.17
version: 0.2.18
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.434.7
sources:
Friendli-API-Schema:
sourceNamespace: friendli-api-schema
sourceRevisionDigest: sha256:7fd16a253ac1ccc39655cde2c6dc9e4e41cecc38467e315fe129e0752bac50da
sourceBlobDigest: sha256:aa5f6a4a4ad0ad60d8ecfa3ba1f3cf815b6807b9d48c44c308eb4d1aa7916c92
sourceRevisionDigest: sha256:411996103ff228d368e66ad953b4c7c45b228004a8a1d6ecb673d31c2931d215
sourceBlobDigest: sha256:4a49541d6dab51c4c76c1cddaa61d9c220fbd6144d5f0c958c2ea67ce7ade94d
tags:
- latest
- main
targets:
friendli:
source: Friendli-API-Schema
sourceNamespace: friendli-api-schema
sourceRevisionDigest: sha256:7fd16a253ac1ccc39655cde2c6dc9e4e41cecc38467e315fe129e0752bac50da
sourceBlobDigest: sha256:aa5f6a4a4ad0ad60d8ecfa3ba1f3cf815b6807b9d48c44c308eb4d1aa7916c92
sourceRevisionDigest: sha256:411996103ff228d368e66ad953b4c7c45b228004a8a1d6ecb673d31c2931d215
sourceBlobDigest: sha256:4a49541d6dab51c4c76c1cddaa61d9c220fbd6144d5f0c958c2ea67ce7ade94d
codeSamplesNamespace: friendli-api-schema-code-samples
codeSamplesRevisionDigest: sha256:7eca9fd534eeca6860cf581fe9b411ac94f228c84963883175ad24918fbd40d6
codeSamplesRevisionDigest: sha256:69c6ea65ab8aa5e080f79e2f368a12e2baea749d7d01baee69f8974aec6c8d16
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ res = s.serverless.tool_assisted_chat_completion(model="meta-llama-3.1-8b-instru
"type": "math:calculator",
},
{
"type": "web:url",
"type": "web:search",
},
])

Expand Down Expand Up @@ -185,7 +185,7 @@ async def main():
"type": "math:calculator",
},
{
"type": "math:calculator",
"type": "web:search",
},
])
if res is not None:
Expand Down Expand Up @@ -472,7 +472,7 @@ res = s.serverless.tool_assisted_chat_completion(model="meta-llama-3.1-8b-instru
"type": "math:calculator",
},
{
"type": "web:url",
"type": "web:search",
},
], server_url="https://inference.friendli.ai")

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

## 2024-11-08 06:38:22
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.434.7 (2.452.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.2.18] .
### Releases
- [PyPI v0.2.18] https://pypi.org/project/friendli/0.2.18 - .
4 changes: 2 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ res = s.serverless.tool_assisted_chat_completion(model="meta-llama-3.1-8b-instru
"type": "math:calculator",
},
{
"type": "web:url",
"type": "web:search",
},
])

Expand Down Expand Up @@ -124,7 +124,7 @@ async def main():
"type": "math:calculator",
},
{
"type": "math:calculator",
"type": "web:search",
},
])
if res is not None:
Expand Down
30 changes: 30 additions & 0 deletions docs/models/toolassistedchattool.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,33 @@ value: models.FileBuiltInTool = /* values here */
value: models.OtherBuiltInTool = /* values here */
```

### `models.OtherBuiltInTool`

```python
value: models.OtherBuiltInTool = /* values here */
```

### `models.OtherBuiltInTool`

```python
value: models.OtherBuiltInTool = /* values here */
```

### `models.OtherBuiltInTool`

```python
value: models.OtherBuiltInTool = /* values here */
```

### `models.OtherBuiltInTool`

```python
value: models.OtherBuiltInTool = /* values here */
```

### `models.OtherBuiltInTool`

```python
value: models.OtherBuiltInTool = /* values here */
```

2 changes: 1 addition & 1 deletion docs/sdks/serverless/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ res = s.serverless.tool_assisted_chat_completion(model="meta-llama-3.1-8b-instru
"type": "math:calculator",
},
{
"type": "web:url",
"type": "web:search",
},
])

Expand Down
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.17"
version = "0.2.18"
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.17"
__version__: str = "0.2.18"

try:
if __package__ is not None:
Expand Down
5 changes: 5 additions & 0 deletions src/friendli/models/toolassistedchattool.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
Annotated[FunctionTool, Tag("function")],
Annotated[FileBuiltInTool, Tag("file:text")],
Annotated[OtherBuiltInTool, Tag("math:calculator")],
Annotated[OtherBuiltInTool, Tag("math:statistics")],
Annotated[OtherBuiltInTool, Tag("math:calendar")],
Annotated[OtherBuiltInTool, Tag("web:search")],
Annotated[OtherBuiltInTool, Tag("web:url")],
Annotated[OtherBuiltInTool, Tag("code:python-interpreter")],
],
Discriminator(lambda m: get_discriminator(m, "type", "type")),
]
4 changes: 2 additions & 2 deletions src/friendli/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class SDKConfiguration:
server: Optional[str] = ""
language: str = "python"
openapi_doc_version: str = "v1"
sdk_version: str = "0.2.17"
sdk_version: str = "0.2.18"
gen_version: str = "2.452.0"
user_agent: str = "speakeasy-sdk/python 0.2.17 2.452.0 v1 friendli"
user_agent: str = "speakeasy-sdk/python 0.2.18 2.452.0 v1 friendli"
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None

Expand Down

0 comments on commit c1df431

Please sign in to comment.