mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-10 13:27:36 +00:00
docs: update module imports for fireworks documentation (#19377)
**Description:** Update module imports for Fireworks documentation **Issue:** Module imports not present or in incorrect location **Dependencies:** None
This commit is contained in:
parent
0cc0467267
commit
375ab7bf59
@ -54,6 +54,8 @@
|
|||||||
"import getpass\n",
|
"import getpass\n",
|
||||||
"import os\n",
|
"import os\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
"from langchain_fireworks import Fireworks\n",
|
||||||
|
"\n",
|
||||||
"if \"FIREWORKS_API_KEY\" not in os.environ:\n",
|
"if \"FIREWORKS_API_KEY\" not in os.environ:\n",
|
||||||
" os.environ[\"FIREWORKS_API_KEY\"] = getpass.getpass(\"Fireworks API Key:\")\n",
|
" os.environ[\"FIREWORKS_API_KEY\"] = getpass.getpass(\"Fireworks API Key:\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -181,7 +183,7 @@
|
|||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"from langchain.prompts import PromptTemplate\n",
|
"from langchain.prompts import PromptTemplate\n",
|
||||||
"from langchain_community.llms.fireworks import Fireworks\n",
|
"from langchain_fireworks import Fireworks\n",
|
||||||
"\n",
|
"\n",
|
||||||
"llm = Fireworks(\n",
|
"llm = Fireworks(\n",
|
||||||
" model=\"accounts/fireworks/models/mixtral-8x7b-instruct\",\n",
|
" model=\"accounts/fireworks/models/mixtral-8x7b-instruct\",\n",
|
||||||
@ -249,7 +251,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.11.4"
|
"version": "3.9.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user