docs: standardize fireworks params (#20162)

Related to #20085
pull/20163/head^2
Bagatur 6 months ago committed by GitHub
parent 5ae0e687b3
commit 17182406f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -24,10 +24,10 @@ There are two ways to authenticate using your Fireworks API 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
llm = Fireworks(fireworks_api_key="<KEY>")
llm = Fireworks(api_key="<KEY>")
```
## Using the Fireworks LLM module
@ -39,7 +39,7 @@ will work the mixtral-8x7b-instruct model.
from langchain_fireworks import Fireworks
llm = Fireworks(
fireworks_api_key="<KEY>",
api_key="<KEY>",
model="accounts/fireworks/models/mixtral-8x7b-instruct",
max_tokens=256)
llm("Name 3 sports.")

@ -54,7 +54,7 @@
"<ChatModelTabs\n",
" openaiParams={`model=\"gpt-3.5-turbo-0125\", 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",
" googleParams={`model=\"gemini-pro\", google_api_key=\"...\"`}\n",
" togetherParams={`, together_api_key=\"...\"`}\n",

Loading…
Cancel
Save