Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openai assistants cookbook #227

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Alice has 2% ownership in Acme Inc.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bob has 5% ownership of Acme Inc.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sarah has 6% ownership in Acme Inc and 2% ownership in XYZ Corp.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"id": "945ce28f-aeae-41ee-88f3-f86af63ae609",
"metadata": {},
"outputs": [
Expand All @@ -30,7 +30,7 @@
"[Module: null prototype] { default: {} }"
]
},
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -39,15 +39,23 @@
"import \"dotenv/config\"; // Load env vars from .env file\n",
"import OpenAI from \"npm:openai\";\n",
"import wiki from \"npm:wikipedia\";\n",
"import { Client } from \"langsmith\";\n",
"import { traceable } from \"langsmith/traceable\";\n",
"import { wrapOpenAI } from \"langsmith/wrappers\";\n",
"import { Client } from \"npm:langsmith\";\n",
"import { traceable } from \"npm:langsmith/traceable\";\n",
"import { wrapOpenAI } from \"npm:langsmith/wrappers\";\n",
"\n",
"// Wrap OpenAI in the LangSmith wrapper to get completions to log to the system\n",
"const openai = wrapOpenAI(new OpenAI());\n",
"const langsmith = new Client();"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ccbec9f2-4c6c-4c66-ab5d-7118993a5b2f",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "240f5d23-2da7-4d6a-aeaa-cc3812188322",
Expand Down
4 changes: 0 additions & 4 deletions typescript-testing-examples/traceable-example/deno.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"imports": {
"dotenv/config": "npm:/dotenv/config",
"langchain": "npm:/[email protected]",
"langchain/": "npm:/[email protected]/",
"langsmith": "npm:/[email protected]",
"langsmith/": "npm:/[email protected]/",
"openai": "https://deno.land/x/[email protected]/mod.ts",
"openai/": "https://deno.land/x/[email protected]/"
}
Expand Down
Loading
Loading