Skip to content

Commit

Permalink
Update readme and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alvesvaren committed Nov 20, 2023
1 parent 710a2c0 commit 23cb7c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# zod-to-openai-tool

Create tools from zod schemas to use with OpenAI Assistants
Easily create tools from zod schemas to use with OpenAI Assistants and Chat Completions.

## Usage

Expand All @@ -9,7 +9,7 @@ import { tool, createTools } from "zod-to-openai-tool";

const { tools, processActions } = createTools({
getWeather: tool()
.input(z.object({ city }))
.input(z.object({ city: z.string() }))
.describe("Get the weather in a city")
.run(({ city }) => `The weather in ${city} is sunny`),
});
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zod-to-openai-tool",
"version": "0.6.0",
"description": "Create tools from zod schemas to use with OpenAI Assistants",
"version": "0.6.1",
"description": "Easily create tools from zod schemas to use with OpenAI Assistants and Chat Completions",
"repository": "https://github.com/alvesvaren/zod-to-openai-tool",
"type": "module",
"scripts": {
Expand Down

0 comments on commit 23cb7c2

Please sign in to comment.