Skip to content

Commit

Permalink
Update 2024-11-13 (#31)
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 13, 2024
1 parent a9636c0 commit b5af8e8
Show file tree
Hide file tree
Showing 114 changed files with 3,563 additions and 680 deletions.
118 changes: 73 additions & 45 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

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.25
version: 0.2.30
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.438.1
sources:
Friendli-API-Schema:
sourceNamespace: friendli-api-schema
sourceRevisionDigest: sha256:3363dec06e6a2c9b68c43c2dc1f87db438d6bd5a96b380e70f5282b85084b767
sourceBlobDigest: sha256:158615cc306eef8a979466064629f5f3e7cfa59a0e049133270b42ebd898bdfb
sourceRevisionDigest: sha256:3d85808887e7b0ad7e56d83f96b8d0734c19fd2b2883c5f82f3dfc7d63a44ce2
sourceBlobDigest: sha256:85241138e1e03824c52d072a27d00ee1931653cad9fc80dd8968fcbcc7c4de03
tags:
- latest
- main
targets:
friendli:
source: Friendli-API-Schema
sourceNamespace: friendli-api-schema
sourceRevisionDigest: sha256:3363dec06e6a2c9b68c43c2dc1f87db438d6bd5a96b380e70f5282b85084b767
sourceBlobDigest: sha256:158615cc306eef8a979466064629f5f3e7cfa59a0e049133270b42ebd898bdfb
sourceRevisionDigest: sha256:3d85808887e7b0ad7e56d83f96b8d0734c19fd2b2883c5f82f3dfc7d63a44ce2
sourceBlobDigest: sha256:85241138e1e03824c52d072a27d00ee1931653cad9fc80dd8968fcbcc7c4de03
codeSamplesNamespace: friendli-api-schema-code-samples
codeSamplesRevisionDigest: sha256:3941ceec891b5a6722ecbec87a6cecbf547490d86229bef1ce1104434d4dc65c
codeSamplesRevisionDigest: sha256:27190dc5935abb5970abadeea5cba28a73f72ae63c7964eff4bb0f6de73613ce
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ res = s.serverless.tool_assisted_chat.complete(model="meta-llama-3.1-8b-instruct
{
"type": "math:calculator",
},
{
"type": "web:search",
},
])

if res is not None:
Expand Down Expand Up @@ -179,9 +176,6 @@ async def main():
{
"type": "math:calculator",
},
{
"type": "web:search",
},
])
if res is not None:
# handle response
Expand Down
52 changes: 51 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,54 @@ Based on:
### Generated
- [python v0.2.25] .
### Releases
- [PyPI v0.2.25] https://pypi.org/project/friendli/0.2.25 - .
- [PyPI v0.2.25] https://pypi.org/project/friendli/0.2.25 - .

## 2024-11-13 05:40:16
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.2.26] .
### Releases
- [PyPI v0.2.26] https://pypi.org/project/friendli/0.2.26 - .

## 2024-11-13 05:42:54
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.2.27] .
### Releases
- [PyPI v0.2.27] https://pypi.org/project/friendli/0.2.27 - .

## 2024-11-13 05:48:46
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.2.28] .
### Releases
- [PyPI v0.2.28] https://pypi.org/project/friendli/0.2.28 - .

## 2024-11-13 05:57:34
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.2.29] .
### Releases
- [PyPI v0.2.29] https://pypi.org/project/friendli/0.2.29 - .

## 2024-11-13 06:04:57
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.2.30] .
### Releases
- [PyPI v0.2.30] https://pypi.org/project/friendli/0.2.30 - .
6 changes: 0 additions & 6 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ res = s.serverless.tool_assisted_chat.complete(model="meta-llama-3.1-8b-instruct
{
"type": "math:calculator",
},
{
"type": "web:search",
},
])

if res is not None:
Expand Down Expand Up @@ -120,9 +117,6 @@ async def main():
{
"type": "math:calculator",
},
{
"type": "web:search",
},
])
if res is not None:
# handle response
Expand Down
17 changes: 0 additions & 17 deletions docs/models/completionsstreambody.md

This file was deleted.

31 changes: 31 additions & 0 deletions docs/models/dedicatedchatcompletebody.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions docs/models/dedicatedchatcompletebodylogitbias.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# DedicatedChatCompleteBodyLogitBias

Accepts a JSON object that maps tokens to an associated bias value. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model.


## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
12 changes: 12 additions & 0 deletions docs/models/dedicatedchatcompletebodystreamoptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DedicatedChatCompleteBodyStreamOptions

Options related to stream.
It can only be used when `stream: true`.



## Fields

| Field | Type | Required | Description |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `include_usage` | *OptionalNullable[bool]* | :heavy_minus_sign: | When set to `true`,<br/>the number of tokens used will be included at the end of the stream result in the form of<br/>`"usage": {"completion_tokens": number, "prompt_tokens": number, "total_tokens": number}`.<br/> |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ToolAssistedChatStreamBodyToolChoice
# DedicatedChatCompleteBodyToolChoice

Determines the tool calling behavior of the model.
When set to `none`, the model will bypass tool execution and generate a response directly.
Expand All @@ -16,9 +16,9 @@ You can also specify a particular tool by `{"type": "function", "function": {"na
value: str = /* values here */
```

### `models.ToolAssistedChatStreamBodyToolChoiceObject`
### `models.DedicatedChatCompleteBodyToolChoiceObject`

```python
value: models.ToolAssistedChatStreamBodyToolChoiceObject = /* values here */
value: models.DedicatedChatCompleteBodyToolChoiceObject = /* values here */
```

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ToolAssistedChatStreamBodyToolChoiceFunction
# DedicatedChatCompleteBodyToolChoiceFunction


## Fields
Expand Down
9 changes: 9 additions & 0 deletions docs/models/dedicatedchatcompletebodytoolchoiceobject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# DedicatedChatCompleteBodyToolChoiceObject


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `type` | [models.DedicatedChatCompleteBodyToolChoiceType](../models/dedicatedchatcompletebodytoolchoicetype.md) | :heavy_check_mark: | The type of the tool. Currently, only `function` is supported. |
| `function` | [models.DedicatedChatCompleteBodyToolChoiceFunction](../models/dedicatedchatcompletebodytoolchoicefunction.md) | :heavy_check_mark: | N/A |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ToolAssistedChatStreamBodyToolChoiceType
# DedicatedChatCompleteBodyToolChoiceType

The type of the tool. Currently, only `function` is supported.

Expand Down
8 changes: 4 additions & 4 deletions docs/models/dedicatedchatcompleterequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `chat_complete_body` | [models.ChatCompleteBody](../models/chatcompletebody.md) | :heavy_check_mark: | N/A |
| `x_friendli_team` | *Optional[str]* | :heavy_minus_sign: | ID of team to run requests as (optional parameter). |
| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `dedicated_chat_complete_body` | [models.DedicatedChatCompleteBody](../models/dedicatedchatcompletebody.md) | :heavy_check_mark: | N/A |
| `x_friendli_team` | *Optional[str]* | :heavy_minus_sign: | ID of team to run requests as (optional parameter). |
Loading

0 comments on commit b5af8e8

Please sign in to comment.