diff --git a/README.md b/README.md index 35d7c96..06fc64c 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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`), }); diff --git a/package.json b/package.json index bf47716..3341ef4 100644 --- a/package.json +++ b/package.json @@ -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": {