Skip to content

Commit

Permalink
Issue #1065: added jsonconfig on query
Browse files Browse the repository at this point in the history
  • Loading branch information
lorev101 authored and danielecalda committed Aug 9, 2024
1 parent c179591 commit dbb30a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions js-packages/admin-ui/src/components/LargeLanguageModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const LargeLanguageModelQ = gql`
description
apiUrl
apiKey
jsonConfig
}
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function LargeLanguageModel() {
apiKey: "",
apiUrl: "",
description: "",
json: "",
jsonConfig: "",
}),
[]
),
Expand All @@ -85,7 +85,7 @@ export function LargeLanguageModel() {
<TextInput label="Description" {...form.inputProps("description")} />
<TextInput label="Api Url" {...form.inputProps("apiKey")} />
<TextInput label="Api Key" {...form.inputProps("apiUrl")} />
<CodeInput language="json" label="Configuration" {...form.inputProps("json")} />
<CodeInput language="json" label="Configuration" {...form.inputProps("jsonConfig")} />

<div className="sheet-footer">
<CustomButtom
Expand Down
5 changes: 3 additions & 2 deletions js-packages/admin-ui/src/graphql-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5174,7 +5174,7 @@ export type LargeLanguageModelQueryVariables = Exact<{
}>;


export type LargeLanguageModelQuery = { __typename?: 'Query', largeLanguageModel?: { __typename?: 'LargeLanguageModel', name?: string | null, description?: string | null, apiUrl?: string | null, apiKey?: string | null } | null };
export type LargeLanguageModelQuery = { __typename?: 'Query', largeLanguageModel?: { __typename?: 'LargeLanguageModel', name?: string | null, description?: string | null, apiUrl?: string | null, apiKey?: string | null, jsonConfig?: string | null } | null };

export type CreateOrUpdateLargeLanguageModelMutationVariables = Exact<{
id?: InputMaybe<Scalars['ID']>;
Expand Down Expand Up @@ -10918,6 +10918,7 @@ export const LargeLanguageModelDocument = gql`
description
apiUrl
apiKey
jsonConfig
}
}
`;
Expand Down Expand Up @@ -14310,4 +14311,4 @@ export function useCreateYouTubeDataSourceMutation(baseOptions?: Apollo.Mutation
export type CreateYouTubeDataSourceMutationHookResult = ReturnType<typeof useCreateYouTubeDataSourceMutation>;
export type CreateYouTubeDataSourceMutationResult = Apollo.MutationResult<CreateYouTubeDataSourceMutation>;
export type CreateYouTubeDataSourceMutationOptions = Apollo.BaseMutationOptions<CreateYouTubeDataSourceMutation, CreateYouTubeDataSourceMutationVariables>;
// Generated on 2024-08-07T17:25:10+02:00
// Generated on 2024-08-08T12:33:20+02:00

0 comments on commit dbb30a6

Please sign in to comment.