Skip to content

Commit e7b3159

Browse files
author
Your Name
committed
Sync with GitLab release v2.1.6
1 parent 5036d8e commit e7b3159

118 files changed

Lines changed: 255 additions & 29477 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pages.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Generate Documentation and Publish to Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- 'v**'
9+
10+
jobs:
11+
pages:
12+
name: Build and Deploy Documentation
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- name: Check out repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.11'
26+
27+
- name: Install Sphinx Python Dependencies
28+
run: pip install -r requirements.txt
29+
working-directory: Documentation
30+
31+
- name: Build Versioned Documentation
32+
run: sphinx-multiversion . _build/html
33+
working-directory: Documentation
34+
35+
- name: Create redirect to latest version
36+
run: |
37+
LATEST_TAG=$(git tag -l 'v*' --sort=-version:refname | head -n1)
38+
if [ -z "$LATEST_TAG" ]; then
39+
LATEST_TAG="main"
40+
fi
41+
cat > Documentation/_build/html/index.html <<EOF
42+
<!DOCTYPE html>
43+
<html>
44+
<head>
45+
<meta http-equiv="refresh" content="0; url=./${LATEST_TAG}/" />
46+
</head>
47+
<body>
48+
<p>Redirecting to <a href="./${LATEST_TAG}/">latest documentation</a>...</p>
49+
</body>
50+
</html>
51+
EOF
52+
53+
- name: Add .nojekyll file
54+
run: touch Documentation/_build/html/.nojekyll
55+
56+
- name: Deploy Documentation to Pages
57+
uses: peaceiris/actions-gh-pages@v4
58+
with:
59+
github_token: ${{ secrets.GITHUB_TOKEN }}
60+
publish_dir: ./Documentation/_build/html
61+
publish_branch: gh-pages

.github/workflows/release-badge.yml

Lines changed: 0 additions & 100 deletions
This file was deleted.

.github/workflows/static.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

Documentation/AWSSDKAPI.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -795,14 +795,14 @@ CONVERSERESPONSE is the response sent from Bedrock Converse
795795
Superclass: aws.Object
796796

797797
```text
798-
INVOKEMODELREQUEST is the request class to invoke a bedrock runtime
798+
INVOKEMODELRESPONSE is the response class to invoke a bedrock runtime
799799
model.
800800
```
801801

802802
##### aws.bedrock.runtime.model.InvokeModelResponse.InvokeModelResponse
803803

804804
```text
805-
INVOKEMODELREQUEST is the request class to invoke a bedrock runtime
805+
INVOKEMODELRESPONSE is the response class to invoke a bedrock runtime
806806
model.
807807
```
808808

@@ -884,8 +884,9 @@ Send a sequence of messages to a chat-capable foundation model.
884884
| `modelId` | string | Required. Model identifier. |
885885
| `messages` | aws.bedrock.runtime.model.Message vector | Required. Conversation turns (user/assistant). |
886886
| `maxTokens` | int32 | Optional. Max tokens in the response (default 512). |
887-
| `temperature` | single | Optional. Sampling temperature in [0,1]. |
888-
| `topP` | single | Optional. Nucleus sampling parameter in [0,1]. |
887+
| `temperature` | single | Optional. Sampling temperature in [0,1]. Not sent by default. Some models reject requests that include both `temperature` and `topP`; pass only one. |
888+
| `topP` | single | Optional. Nucleus sampling parameter in [0,1]. Not sent by default. |
889+
| `systemPrompt` | string | Optional. System prompt text passed via the Converse API system field. |
889890

890891
| Returns | Type | Description |
891892
| --- | --- | --- |
@@ -3903,7 +3904,7 @@ RECEIVEMESSAGERESPONSE Response object for receiving messages from an SQS queue.
39033904
This class encapsulates the response from the ReceiveMessage operation
39043905
in Amazon SQS, providing access to the messages received.
39053906
Example:
3906-
receiveMessageResponse = sqs.receiveMessage(receiveMessageRequest);
3907+
receiveMessageResponse = sqs.receiveMessage(queueUrl='queueUrl');
39073908
messagesReceived = receiveMessageResponse.messages
39083909
```
39093910

@@ -3915,7 +3916,7 @@ RECEIVEMESSAGERESPONSE Response object for receiving messages from an SQS queue.
39153916
This class encapsulates the response from the ReceiveMessage operation
39163917
in Amazon SQS, providing access to the messages received.
39173918
Example:
3918-
receiveMessageResponse = sqs.receiveMessage(receiveMessageRequest);
3919+
receiveMessageResponse = sqs.receiveMessage(queueUrl='queueUrl');
39193920
messagesReceived = receiveMessageResponse.messages
39203921
```
39213922

Documentation/BedrockRuntime.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ response = bedrock.invokeModel( ...
2727
disp(response.outputText);
2828
```
2929

30+
```{note}
31+
Some models provided in the example might have reached end of life. Use the updated model_id in case of errors like "This model version has reached the end of its life".
32+
```
33+
3034
#### 🔸 Invoke a Model (Image Generation)
3135
```matlab
3236
spec = struct(text="Neon skyline at dusk", seed=42, style="photographic");
@@ -83,9 +87,12 @@ response = bedrock.invokeModel(modelId = "<model-id>", body = <string>);
8387
#### 🔸 `converse`
8488
```matlab
8589
response = bedrock.converse( ...
86-
modelId = "<model-id>", ...
87-
messages = <Message | Message[]>, ...
88-
maxTokens = <int>); % optional
90+
modelId = "<model-id>", ...
91+
messages = <Message | Message[]>, ...
92+
maxTokens = <int>, ... % optional (default 512)
93+
temperature = <single>, ... % optional, not sent by default
94+
topP = <single>, ... % optional, not sent by default
95+
systemPrompt = "<system text>"); % optional
8996
```
9097
* Returns: `aws.bedrock.runtime.model.ConverseResponse`
9198
* `message` (assistant message), `stopReason`, `usage`

Documentation/Images/release.svg

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)