mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-13 06:40:04 +00:00
parent
5ae0e687b3
commit
17182406f3
@ -24,10 +24,10 @@ There are two ways to authenticate using your Fireworks API key:
|
|||||||
os.environ["FIREWORKS_API_KEY"] = "<KEY>"
|
os.environ["FIREWORKS_API_KEY"] = "<KEY>"
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Setting `fireworks_api_key` field in the Fireworks LLM module.
|
2. Setting `api_key` field in the Fireworks LLM module.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
llm = Fireworks(fireworks_api_key="<KEY>")
|
llm = Fireworks(api_key="<KEY>")
|
||||||
```
|
```
|
||||||
|
|
||||||
## Using the Fireworks LLM module
|
## Using the Fireworks LLM module
|
||||||
@ -39,7 +39,7 @@ will work the mixtral-8x7b-instruct model.
|
|||||||
from langchain_fireworks import Fireworks
|
from langchain_fireworks import Fireworks
|
||||||
|
|
||||||
llm = Fireworks(
|
llm = Fireworks(
|
||||||
fireworks_api_key="<KEY>",
|
api_key="<KEY>",
|
||||||
model="accounts/fireworks/models/mixtral-8x7b-instruct",
|
model="accounts/fireworks/models/mixtral-8x7b-instruct",
|
||||||
max_tokens=256)
|
max_tokens=256)
|
||||||
llm("Name 3 sports.")
|
llm("Name 3 sports.")
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
"<ChatModelTabs\n",
|
"<ChatModelTabs\n",
|
||||||
" openaiParams={`model=\"gpt-3.5-turbo-0125\", api_key=\"...\"`}\n",
|
" openaiParams={`model=\"gpt-3.5-turbo-0125\", api_key=\"...\"`}\n",
|
||||||
" anthropicParams={`model=\"claude-3-sonnet-20240229\", anthropic_api_key=\"...\"`}\n",
|
" anthropicParams={`model=\"claude-3-sonnet-20240229\", anthropic_api_key=\"...\"`}\n",
|
||||||
" fireworksParams={`model=\"accounts/fireworks/models/mixtral-8x7b-instruct\", fireworks_api_key=\"...\"`}\n",
|
" fireworksParams={`model=\"accounts/fireworks/models/mixtral-8x7b-instruct\", api_key=\"...\"`}\n",
|
||||||
" mistralParams={`model=\"mistral-large-latest\", mistral_api_key=\"...\"`}\n",
|
" mistralParams={`model=\"mistral-large-latest\", mistral_api_key=\"...\"`}\n",
|
||||||
" googleParams={`model=\"gemini-pro\", google_api_key=\"...\"`}\n",
|
" googleParams={`model=\"gemini-pro\", google_api_key=\"...\"`}\n",
|
||||||
" togetherParams={`, together_api_key=\"...\"`}\n",
|
" togetherParams={`, together_api_key=\"...\"`}\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user