From 94cdc2049a39789e756f2a50b173055886fbd318 Mon Sep 17 00:00:00 2001 From: Ariel Weinberger Date: Fri, 4 Aug 2023 12:51:53 +0200 Subject: [PATCH] fix typos ahead of relesae --- apps/console/src/app/components/requests/RequestDetails.tsx | 4 ++-- .../src/app/components/requests/filters/FilterItem.tsx | 1 - apps/server/src/app/app.module.ts | 1 - apps/server/src/app/prompt-tester/prompt-tester.service.ts | 2 +- apps/server/src/app/reporting/requests.resolver.ts | 2 ++ examples/simple-demo-app/app/api/facts/route.ts | 2 +- libs/client/package.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/console/src/app/components/requests/RequestDetails.tsx b/apps/console/src/app/components/requests/RequestDetails.tsx index f4237a53..cb05843c 100644 --- a/apps/console/src/app/components/requests/RequestDetails.tsx +++ b/apps/console/src/app/components/requests/RequestDetails.tsx @@ -133,7 +133,7 @@ export const RequestDetails = (props: Props) => { ]; return ( -
+ <> {props.metadata?.isTestPrompt && ( { {selectedMode === "chat" && ( )} -
+ ); }; diff --git a/apps/console/src/app/components/requests/filters/FilterItem.tsx b/apps/console/src/app/components/requests/filters/FilterItem.tsx index 3cfc4b97..7f5a5846 100644 --- a/apps/console/src/app/components/requests/filters/FilterItem.tsx +++ b/apps/console/src/app/components/requests/filters/FilterItem.tsx @@ -89,7 +89,6 @@ export const AddFilterForm = ({ value: formValues.value, }; - console.log("value", filterValue); onAdd(filterValue); form.resetFields(); }; diff --git a/apps/server/src/app/app.module.ts b/apps/server/src/app/app.module.ts index db497f2b..436c70c1 100644 --- a/apps/server/src/app/app.module.ts +++ b/apps/server/src/app/app.module.ts @@ -45,7 +45,6 @@ const GQL_SCHEMA_PATH = join(process.cwd(), "apps/server/src/schema.graphql"); playground: false, autoSchemaFile: GQL_SCHEMA_PATH, sortSchema: true, - plugins: [ApolloServerPluginLandingPageLocalDefault()], context: (ctx) => { ctx.requestId = ctx.req.headers["x-request-id"] || randomUUID(); diff --git a/apps/server/src/app/prompt-tester/prompt-tester.service.ts b/apps/server/src/app/prompt-tester/prompt-tester.service.ts index c86d3296..efc06b94 100644 --- a/apps/server/src/app/prompt-tester/prompt-tester.service.ts +++ b/apps/server/src/app/prompt-tester/prompt-tester.service.ts @@ -55,7 +55,7 @@ export class PromptTesterService { metadata: { promptId: testData.promptId, promptVersionSha: "test-prompt", - type: "Propmt" as any, + type: "Prompt" as any, isTestPrompt: true, }, settings: testData.settings, diff --git a/apps/server/src/app/reporting/requests.resolver.ts b/apps/server/src/app/reporting/requests.resolver.ts index 5761fc1c..d5308606 100644 --- a/apps/server/src/app/reporting/requests.resolver.ts +++ b/apps/server/src/app/reporting/requests.resolver.ts @@ -53,6 +53,8 @@ export class RequestReportsResolver { sort: data.sort, }); + console.log("response", response); + return { data: response.body.hits.hits.map((hit) => hit._source), pagination: { diff --git a/examples/simple-demo-app/app/api/facts/route.ts b/examples/simple-demo-app/app/api/facts/route.ts index 2cf25975..0f22787c 100644 --- a/examples/simple-demo-app/app/api/facts/route.ts +++ b/examples/simple-demo-app/app/api/facts/route.ts @@ -9,7 +9,7 @@ export async function POST(request: Request) { let prompt: GetPromptResult; try { - prompt = await pezzo.getPrompt("FactGenerator"); + prompt = await pezzo.getPrompt("GenerateFacts"); } catch (error) { console.log("Failed to fetch prompt from Pezzo", error); return NextResponse.json( diff --git a/libs/client/package.json b/libs/client/package.json index be100ed5..bd8a2639 100644 --- a/libs/client/package.json +++ b/libs/client/package.json @@ -1,7 +1,7 @@ { "name": "@pezzo/client", "description": "TypeScript API client for Pezzo", - "version": "0.2.3", + "version": "0.3.1-alpha-1", "type": "commonjs", "author": "Ariel Weinberger", "keywords": [