mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-01 12:38:45 +00:00
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> |
||
---|---|---|
.. | ||
ai21.ipynb | ||
aleph_alpha.ipynb | ||
amazon_api_gateway_example.ipynb | ||
anyscale.ipynb | ||
azure_openai_example.ipynb | ||
azureml_endpoint_example.ipynb | ||
banana.ipynb | ||
baseten.ipynb | ||
beam.ipynb | ||
bedrock.ipynb | ||
bittensor.ipynb | ||
cerebriumai_example.ipynb | ||
chatglm.ipynb | ||
clarifai.ipynb | ||
cohere.ipynb | ||
ctransformers.ipynb | ||
databricks.ipynb | ||
deepinfra_example.ipynb | ||
deepsparse.ipynb | ||
edenai.ipynb | ||
Fireworks.ipynb | ||
forefrontai_example.ipynb | ||
google_vertex_ai_palm.ipynb | ||
gooseai_example.ipynb | ||
gpt4all.ipynb | ||
huggingface_hub.ipynb | ||
huggingface_pipelines.ipynb | ||
huggingface_textgen_inference.ipynb | ||
index.mdx | ||
jsonformer_experimental.ipynb | ||
koboldai.ipynb | ||
llamacpp.ipynb | ||
llm_caching.ipynb | ||
manifest.ipynb | ||
minimax.ipynb | ||
modal.ipynb | ||
mosaicml.ipynb | ||
nlpcloud.ipynb | ||
octoai.ipynb | ||
ollama.ipynb | ||
opaqueprompts.ipynb | ||
openai.ipynb | ||
openllm.ipynb | ||
openlm.ipynb | ||
petals_example.ipynb | ||
pipelineai_example.ipynb | ||
predibase.ipynb | ||
predictionguard.ipynb | ||
promptlayer_openai.ipynb | ||
rellm_experimental.ipynb | ||
replicate.ipynb | ||
runhouse.ipynb | ||
sagemaker.ipynb | ||
stochasticai.ipynb | ||
symblai_nebula.ipynb | ||
textgen.ipynb | ||
titan_takeoff.ipynb | ||
tongyi.ipynb | ||
vllm.ipynb | ||
writer.ipynb | ||
xinference.ipynb |