Skip to content

Commit c3f63f4

Browse files
authored
Update integrating-generative-apis-with-popular-tools.mdx
1 parent c84be49 commit c3f63f4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The following table compares AI tools and libraries supported by Scaleway's Gene
2424
| [LlamaIndex](#llamaindex-document-indexing-and-retrieval) | Library for indexing and retrieving documents using AI models | Document indexing and retrieval, question answering | Medium |
2525
| [Continue Dev](#continue-dev-ai-coding-assistance) | Library for AI-powered coding assistance | Code completion, code review | Low |
2626
| [Transformers (Hugging Face)](#transformers-hugging-face-integration) | Library for pre-trained models for natural language processing | Text generation, language translation, text summarization | Medium |
27-
| [cURL/Python](#api-clients-and-custom-integrations) | Direct API clients for custom integrations | Custom applications, data processing | High |
27+
| [cURL/Python](#custom-http-integrations) | Direct HTTP API calls for custom integrations | Custom applications, data processing | High |
2828

2929
<Message type="note">
3030
The integration effort is subjective and may vary depending on the specific use case and requirements.
@@ -215,7 +215,7 @@ To use Hugging Face for text generation, you can call the `generator` function:
215215
```python
216216
print(generator("Write a short poem about the ocean"))
217217
```
218-
## API clients and custom integrations
218+
## Custom HTTP integrations
219219

220220
You can interact with Scaleway's Generative APIs directly using any HTTP client.
221221

@@ -235,9 +235,14 @@ curl https://api.scaleway.ai/v1/chat/completions \
235235
Make sure to replace `<API secret key>` with your actual API key.
236236
</Message>
237237

238-
### Python example
238+
### Python HTTP example
239239

240-
To use Python with Scaleway's Generative APIs, you can use the following code:
240+
To perform HTTP requests with Scaleway's Generative APIs, you'll need to install `requests` dependency:
241+
```bash
242+
pip install requests
243+
```
244+
245+
Then, you can use the following code:
241246
```python
242247
import requests
243248
headers = {

0 commit comments

Comments
 (0)