Skip to content

Commit d9c7de0

Browse files
authored
Merge pull request #155 from wrtnlabs/fix/claude
fix(agent): claude schema inverter
2 parents 6717180 + 8271bc9 commit d9c7de0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@autoview/station",
4-
"version": "7.0.0",
4+
"version": "7.0.1",
55
"description": "Automatic viewer components renderer by JSON schema and AI agent",
66
"repository": {
77
"type": "git",

packages/compiler/src/AutoViewCompiler.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
IAutoViewCompilerResult,
55
} from "@autoview/interface";
66
import { OpenApi } from "@samchon/openapi";
7-
import { ChatGptSchemaComposer } from "@samchon/openapi/lib/composers/llm/ChatGptSchemaComposer";
7+
import { LlmSchemaComposer } from "@samchon/openapi/lib/composers/LlmSchemaComposer";
88
import ts from "typescript";
99

1010
import { TypeScriptCompiler } from "./compilers/TypeScriptCompiler";
@@ -140,12 +140,12 @@ const getJsonSchema = (
140140
schemas: {},
141141
};
142142
const schema: OpenApi.IJsonSchema = isClaudeParameters(props)
143-
? ChatGptSchemaComposer.invert({
143+
? LlmSchemaComposer.invert("claude")({
144144
components,
145145
$defs: props.parameters.$defs,
146146
schema: props.parameters,
147147
})
148-
: ChatGptSchemaComposer.invert({
148+
: LlmSchemaComposer.invert("chatgpt")({
149149
components,
150150
$defs: props.$defs,
151151
schema: props.schema,

0 commit comments

Comments
 (0)