Skip to content

Commit 3e3829a

Browse files
authored
Update integrating-generative-apis-with-popular-tools.mdx
1 parent 7798a1c commit 3e3829a

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Scaleway Generative APIs follow OpenAI's API structure, making integration strai
3636

3737
### Configuration
3838

39-
To use the OpenAI library with Scaleway's Generative APIs, you'll need to set the API key and base URL in your OpenAI-compatible client:
39+
To use the OpenAI client library with Scaleway's Generative APIs, you'll need to set the API key and base URL in your OpenAI-compatible client:
4040
```python
4141
import openai
4242
openai.api_key = "<API secret key>"
@@ -51,9 +51,9 @@ print(response["choices"][0]["message"]["content"])
5151
Make sure to replace `<API secret key>` with your actual API key.
5252
</Message>
5353

54-
### Using OpenAI for text generation
54+
### Using OpenAI client for text generation
5555

56-
To use OpenAI for text generation, you can create a `ChatCompletion` object and call the `create` method:
56+
To use OpenAI client for text generation, you can create a `ChatCompletion` object and call the `create` method:
5757
```python
5858
response = openai.ChatCompletion.create(
5959
model="llama-3.1-8b-instruct",
@@ -66,6 +66,11 @@ print(response["choices"][0]["message"]["content"])
6666

6767
LangChain is a popular library for building AI applications. Scaleway's Generative APIs support LangChain for both inference and embeddings.
6868

69+
<Message type="tip">
70+
Refer our dedicated documentation for
71+
- [Implementing Retrieval-Augmented Generation (RAG) with LangChain and Scaleway Generative APIs](/tutorials/how-to-implement-rag-generativeapis/)
72+
</Message>
73+
6974
### Configuration
7075

7176
To use LangChain with Scaleway's Generative APIs, you'll need to install the required dependencies:
@@ -168,6 +173,12 @@ To use Continue Dev with Scaleway's Generative APIs, you'll need to modify the `
168173
"provider": "scaleway",
169174
"model": "bge-multilingual-gemma2",
170175
"apiKey": "<API secret key>"
176+
},
177+
"tabAutocompleteModel": {
178+
"model": "qwen2.5-coder-32b",
179+
"title": "Qwen2.5 Coder Autocomplete",
180+
"provider": "scaleway",
181+
"apiKey": "<API secret key>"
171182
}
172183
}
173184
```
@@ -240,4 +251,4 @@ print(response.json()["choices"][0]["message"]["content"])
240251
```
241252
<Message type="tip">
242253
Make sure to replace `<API secret key>` with your actual API key.
243-
</Message>
254+
</Message>

0 commit comments

Comments
 (0)