Fix endpoint attribute
This commit is contained in:
parent
092549ccd4
commit
ab6e0becdc
@ -218,7 +218,7 @@ All that remains now is to modify our application so that it uses our AI service
|
|||||||
```patch
|
```patch
|
||||||
client = OpenAI(
|
client = OpenAI(
|
||||||
- api_key=os.environ.get("OPENAI_API_KEY"),
|
- api_key=os.environ.get("OPENAI_API_KEY"),
|
||||||
+ endpoint="https://ia.example.com/v1",
|
+ base_url="https://ia.example.com/v1",
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -214,7 +214,7 @@ Reste maintenant à modifier notre application pour qu'elle utilise notre servic
|
|||||||
```patch
|
```patch
|
||||||
client = OpenAI(
|
client = OpenAI(
|
||||||
- api_key=os.environ.get("OPENAI_API_KEY"),
|
- api_key=os.environ.get("OPENAI_API_KEY"),
|
||||||
+ endpoint="https://ia.example.com/v1",
|
+ base_url="https://ia.example.com/v1",
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user