From 289810880ddf39afa737cef8a9acccbedc966ee9 Mon Sep 17 00:00:00 2001 From: henrycunh Date: Wed, 8 Nov 2023 22:05:55 -0300 Subject: [PATCH] fix: remove useless validation --- examples/simple-proxy-handler.ts | 2 +- examples/simple-script.ts | 1 - src/cursive.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/simple-proxy-handler.ts b/examples/simple-proxy-handler.ts index e77b7cf..8bcd971 100644 --- a/examples/simple-proxy-handler.ts +++ b/examples/simple-proxy-handler.ts @@ -12,7 +12,7 @@ const proxy = createCursiveProxy() const response = await proxy.handle({ messages: [{ 'role': 'user', 'content': 'Return a person called John, aged 43.' }], - model: 'gpt-3.5-turbo-16k', + model: 'gpt-3.5-turbo-16k', schema: person }) diff --git a/examples/simple-script.ts b/examples/simple-script.ts index 03f27c8..b6146bb 100644 --- a/examples/simple-script.ts +++ b/examples/simple-script.ts @@ -2,7 +2,6 @@ import { useCursive } from '../src/index' const cursive = useCursive({ countUsage: true }) -debugger const { answer, usage } = await cursive.ask({ prompt: 'Tell me a short short joke' }) console.log({ diff --git a/src/cursive.ts b/src/cursive.ts index 306f192..a9d5991 100644 --- a/src/cursive.ts +++ b/src/cursive.ts @@ -688,7 +688,6 @@ async function buildAnswer( if (options.schema) { const output = result.data.answer.functionResult // Validate the output against the schema - const isValid = Value.Check(options.schema, output) resolvedAnswer = output }