langchain/docs/extras
KyrianC 491089754d
EdenAI LLM update. Add models name option (#8963)
This PR follows the **Eden AI (LLM + embeddings) integration**. #8633 

We added an optional parameter to choose different AI models for
providers (like 'text-bison' for provider 'google', 'text-davinci-003'
for provider 'openai', etc.).

Usage:

```python
llm = EdenAI(
    feature="text",
    provider="google",
    params={
        "model": "text-bison",  # new
        "temperature": 0.2,
        "max_tokens": 250,
    },
)

```

You can also change the provider + model after initialization
```python
llm = EdenAI(
    feature="text",
    provider="google",
    params={
        "temperature": 0.2,
        "max_tokens": 250,
    },
)

prompt = """
hi 
"""

llm(prompt, providers='openai', model='text-davinci-003')  # change provider & model
```

The jupyter notebook as been updated with an example well.


Ping: @hwchase17, @baskaryan

---------

Co-authored-by: RedhaWassim <rwasssim@gmail.com>
Co-authored-by: sam <melaine.samy@gmail.com>
2023-09-01 12:11:33 -07:00
..
_templates Update Integrations links (#8206) 2023-07-24 21:20:32 -07:00
additional_resources Mv LCEL docs up a level (#10073) 2023-09-01 08:20:55 -07:00
expression_language Mv LCEL docs up a level (#10073) 2023-09-01 08:20:55 -07:00
guides Mv LCEL docs up a level (#10073) 2023-09-01 08:20:55 -07:00
integrations EdenAI LLM update. Add models name option (#8963) 2023-09-01 12:11:33 -07:00
modules index rename delete_mode -> cleanup (#10103) 2023-09-01 11:12:10 -07:00
use_cases make privacy guide section (#10003) 2023-08-30 10:49:20 -07:00