Skip to content

Commit 1c7ea6f

Browse files
techpro-aimlapigitbook-bot
authored andcommitted
GITBOOK-363: docs: move examples up for meta's llamas
1 parent a146df0 commit 1c7ea6f

12 files changed

Lines changed: 141 additions & 154 deletions

‎docs/api-references/text-models-llm/Meta/Llama-3-chat-hf.md‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Llama-3-chat-hf
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
5-
6-
* `meta-llama/Llama-3-70b-chat-hf`
7-
* `meta-llama/Llama-3-8b-chat-hf`
8-
{% endhint %}
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>meta-llama/Llama-3-70b-chat-hf</code></li><li><code>meta-llama/Llama-3-8b-chat-hf</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=meta-llama/Llama-3-70b-chat-hf&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
94

105
## Model Overview
116

@@ -26,7 +21,7 @@ You can also view [a detailed comparison of this model](https://aimlapi.com/comp
2621

2722
### &#x20;:digit\_two: Copy the code example
2823

29-
At the bottom of this page, you'll find [a code example](Llama-3-chat-hf.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
24+
Below, you'll find [a code example](Llama-3-chat-hf.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
3025

3126
### :digit\_three: Modify the code example
3227

@@ -47,14 +42,10 @@ If you need a more detailed walkthrough for setting up your development environm
4742

4843
</details>
4944

50-
## API Schema
51-
52-
{% openapi-operation spec="llama-3-chat-h-f" path="/v1/chat/completions" method="post" %}
53-
[OpenAPI llama-3-chat-h-f](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-3-chat-hf.json)
54-
{% endopenapi-operation %}
55-
5645
## Code Example
5746

47+
{% tabs %}
48+
{% tab title="Python" %}
5849
{% code overflow="wrap" %}
5950
```python
6051
import requests
@@ -85,6 +76,8 @@ data = response.json()
8576
print(data)
8677
```
8778
{% endcode %}
79+
{% endtab %}
80+
{% endtabs %}
8881

8982
<details>
9083

@@ -97,3 +90,9 @@ print(data)
9790
{% endcode %}
9891

9992
</details>
93+
94+
## API Schema
95+
96+
{% openapi-operation spec="llama-3-chat-h-f" path="/v1/chat/completions" method="post" %}
97+
[OpenAPI llama-3-chat-h-f](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-3-chat-hf.json)
98+
{% endopenapi-operation %}

‎docs/api-references/text-models-llm/Meta/Llama-3.2-11B-Vision-Instruct-Turbo.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Llama-3.2-11B-Vision-Instruct-Turbo
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
5-
6-
* `meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo`
7-
{% endhint %}
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
84

95
## Model Overview
106

@@ -23,7 +19,7 @@ A pretrained, instruction-tuned image reasoning model that takes text and images
2319

2420
### &#x20;:digit\_two: Copy the code example
2521

26-
At the bottom of this page, you'll find [a code example](Llama-3.2-11B-Vision-Instruct-Turbo.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
22+
Below, you'll find [a code example](Llama-3.2-11B-Vision-Instruct-Turbo.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2723

2824
### :digit\_three: Modify the code example
2925

@@ -44,14 +40,10 @@ If you need a more detailed walkthrough for setting up your development environm
4440

4541
</details>
4642

47-
## API Schema
48-
49-
{% openapi-operation spec="llama-3-2-11b-vision-instruct-turbo" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI llama-3-2-11b-vision-instruct-turbo](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-3.2-11B-Vision-Instruct-Turbo.json)
51-
{% endopenapi-operation %}
52-
5343
## Code Example
5444

45+
{% tabs %}
46+
{% tab title="Python" %}
5547
{% code overflow="wrap" %}
5648
```python
5749
import requests
@@ -82,6 +74,8 @@ data = response.json()
8274
print(data)
8375
```
8476
{% endcode %}
77+
{% endtab %}
78+
{% endtabs %}
8579

8680
<details>
8781

@@ -94,3 +88,9 @@ print(data)
9488
{% endcode %}
9589

9690
</details>
91+
92+
## API Schema
93+
94+
{% openapi-operation spec="llama-3-2-11b-vision-instruct-turbo" path="/v1/chat/completions" method="post" %}
95+
[OpenAPI llama-3-2-11b-vision-instruct-turbo](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-3.2-11B-Vision-Instruct-Turbo.json)
96+
{% endopenapi-operation %}

‎docs/api-references/text-models-llm/Meta/Llama-3.2-3B-Instruct-Turbo.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Llama-3.2-3B-Instruct-Turbo
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
5-
6-
* `meta-llama/Llama-3.2-3B-Instruct-Turbo`
7-
{% endhint %}
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>meta-llama/Llama-3.2-3B-Instruct-Turbo</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=meta-llama/Llama-3.2-3B-Instruct-Turbo&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
84

95
## Model Overview
106

@@ -23,7 +19,7 @@ A large language model (LLM) optimized for instruction-following tasks, striking
2319

2420
### &#x20;:digit\_two: Copy the code example
2521

26-
At the bottom of this page, you'll find [a code example](Llama-3.2-3B-Instruct-Turbo.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
22+
Below, you'll find [a code example](Llama-3.2-3B-Instruct-Turbo.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2723

2824
### :digit\_three: Modify the code example
2925

@@ -44,14 +40,10 @@ If you need a more detailed walkthrough for setting up your development environm
4440

4541
</details>
4642

47-
## API Schema
48-
49-
{% openapi-operation spec="llama-3-2-3b-instruct-turbo" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI llama-3-2-3b-instruct-turbo](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-3.2-3B-Instruct-Turbo.json)
51-
{% endopenapi-operation %}
52-
5343
## Code Example
5444

45+
{% tabs %}
46+
{% tab title="Python" %}
5547
{% code overflow="wrap" %}
5648
```python
5749
import requests
@@ -82,6 +74,8 @@ data = response.json()
8274
print(data)
8375
```
8476
{% endcode %}
77+
{% endtab %}
78+
{% endtabs %}
8579

8680
<details>
8781

@@ -94,3 +88,9 @@ print(data)
9488
{% endcode %}
9589

9690
</details>
91+
92+
## API Schema
93+
94+
{% openapi-operation spec="llama-3-2-3b-instruct-turbo" path="/v1/chat/completions" method="post" %}
95+
[OpenAPI llama-3-2-3b-instruct-turbo](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-3.2-3B-Instruct-Turbo.json)
96+
{% endopenapi-operation %}

‎docs/api-references/text-models-llm/Meta/Llama-3.2-90B-Vision-Instruct-Turbo.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Llama-3.2-90B-Vision-Instruct-Turbo
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
5-
6-
* `meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo`
7-
{% endhint %}
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
84

95
## Model Overview
106

@@ -23,7 +19,7 @@ A pretrained, instruction-tuned image reasoning model that takes text and images
2319

2420
### &#x20;:digit\_two: Copy the code example
2521

26-
At the bottom of this page, you'll find [a code example](Llama-3.2-90B-Vision-Instruct-Turbo.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
22+
Below, you'll find [a code example](Llama-3.2-90B-Vision-Instruct-Turbo.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2723

2824
### :digit\_three: Modify the code example
2925

@@ -44,14 +40,10 @@ If you need a more detailed walkthrough for setting up your development environm
4440

4541
</details>
4642

47-
## API Schema
48-
49-
{% openapi-operation spec="llama-3-2-90b-vision-instruct-turbo" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI llama-3-2-90b-vision-instruct-turbo](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-3.2-90B-Vision-Instruct-Turbo.json)
51-
{% endopenapi-operation %}
52-
5343
## Code Example
5444

45+
{% tabs %}
46+
{% tab title="Python" %}
5547
{% code overflow="wrap" %}
5648
```python
5749
import requests
@@ -82,6 +74,8 @@ data = response.json()
8274
print(data)
8375
```
8476
{% endcode %}
77+
{% endtab %}
78+
{% endtabs %}
8579

8680
<details>
8781

@@ -94,3 +88,9 @@ print(data)
9488
{% endcode %}
9589

9690
</details>
91+
92+
## API Schema
93+
94+
{% openapi-operation spec="llama-3-2-90b-vision-instruct-turbo" path="/v1/chat/completions" method="post" %}
95+
[OpenAPI llama-3-2-90b-vision-instruct-turbo](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-3.2-90B-Vision-Instruct-Turbo.json)
96+
{% endopenapi-operation %}

‎docs/api-references/text-models-llm/Meta/Llama-3.3-70B-Instruct-Turbo.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Llama-3.3-70B-Instruct-Turbo
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
5-
6-
* `meta-llama/Llama-3.3-70B-Instruct-Turbo`
7-
{% endhint %}
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>meta-llama/Llama-3.3-70B-Instruct-Turbo</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=meta-llama/Llama-3.3-70B-Instruct-Turbo&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
84

95
## Model Overview
106

@@ -23,7 +19,7 @@ An optimized language model designed for efficient text generation with advanced
2319

2420
### &#x20;:digit\_two: Copy the code example
2521

26-
At the bottom of this page, you'll find [a code example](Llama-3.3-70B-Instruct-Turbo.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
22+
Below, you'll find [a code example](Llama-3.3-70B-Instruct-Turbo.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2723

2824
### :digit\_three: Modify the code example
2925

@@ -44,14 +40,10 @@ If you need a more detailed walkthrough for setting up your development environm
4440

4541
</details>
4642

47-
## API Schema
48-
49-
{% openapi-operation spec="llama-3-3-70b-instruct-turbo" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI llama-3-3-70b-instruct-turbo](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-3.3-70B-Instruct-Turbo.json)
51-
{% endopenapi-operation %}
52-
5343
## Code Example
5444

45+
{% tabs %}
46+
{% tab title="Python" %}
5547
{% code overflow="wrap" %}
5648
```python
5749
import requests
@@ -82,6 +74,8 @@ data = response.json()
8274
print(data)
8375
```
8476
{% endcode %}
77+
{% endtab %}
78+
{% endtabs %}
8579

8680
<details>
8781

@@ -94,3 +88,9 @@ print(data)
9488
{% endcode %}
9589

9690
</details>
91+
92+
## API Schema
93+
94+
{% openapi-operation spec="llama-3-3-70b-instruct-turbo" path="/v1/chat/completions" method="post" %}
95+
[OpenAPI llama-3-3-70b-instruct-turbo](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-3.3-70B-Instruct-Turbo.json)
96+
{% endopenapi-operation %}

‎docs/api-references/text-models-llm/Meta/Llama-Vision-Free.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Llama-Vision-Free
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
5-
6-
* `meta-llama/Llama-Vision-Free`
7-
{% endhint %}
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>meta-llama/Llama-Vision-Free</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=meta-llama/Llama-Vision-Free&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
84

95
## Model Overview
106

@@ -23,7 +19,7 @@ A pretrained, instruction-tuned image reasoning model that takes text and images
2319

2420
### &#x20;:digit\_two: Copy the code example
2521

26-
At the bottom of this page, you'll find [a code example](Llama-Vision-Free.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
22+
Below, you'll find [a code example](Llama-Vision-Free.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2723

2824
### :digit\_three: Modify the code example
2925

@@ -44,14 +40,10 @@ If you need a more detailed walkthrough for setting up your development environm
4440

4541
</details>
4642

47-
## API Schema
48-
49-
{% openapi-operation spec="llama-vision-free" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI llama-vision-free](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-Vision-Free.json)
51-
{% endopenapi-operation %}
52-
5343
## Code Example
5444

45+
{% tabs %}
46+
{% tab title="Python" %}
5547
{% code overflow="wrap" %}
5648
```python
5749
import requests
@@ -82,6 +74,8 @@ data = response.json()
8274
print(data)
8375
```
8476
{% endcode %}
77+
{% endtab %}
78+
{% endtabs %}
8579

8680
<details>
8781

@@ -94,3 +88,9 @@ print(data)
9488
{% endcode %}
9589

9690
</details>
91+
92+
## API Schema
93+
94+
{% openapi-operation spec="llama-vision-free" path="/v1/chat/completions" method="post" %}
95+
[OpenAPI llama-vision-free](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Meta/Llama-Vision-Free.json)
96+
{% endopenapi-operation %}

0 commit comments

Comments
 (0)