Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev committed Mar 21, 2024
1 parent 77f0769 commit 8b9a6bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 0 additions & 9 deletions frontend/app/components/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ export const Playground = (props: PlaygroundProps) => {
setIsDisabled(false);
};

console.log(requestServerConfig);

return (
<div className="w-full flex-col justify-between">
<div className="m-auto">
Expand Down Expand Up @@ -132,13 +130,6 @@ export const Playground = (props: PlaygroundProps) => {
</Button>
</form>
</div>
<div>
Models:
{requestServerConfig.data &&
requestServerConfig.data?.available_models.map((model) => (
<Text key={model}>{model}</Text>
))}
</div>
<div className="m-auto">
<Tabs variant={"enclosed"} colorScheme="blue" size="sm">
<TabList>
Expand Down
6 changes: 4 additions & 2 deletions frontend/app/utils/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ const getConfiguration = async (): Promise<ServerConfiguration> => {
};

export const useConfiguration = () => {
return useQuery({ queryKey: ["getConfiguration"], queryFn: getConfiguration });
return useQuery({
queryKey: ["getConfiguration"],
queryFn: getConfiguration,
});
};


export const suggestExtractor = async ({
description,
jsonSchema,
Expand Down

0 comments on commit 8b9a6bb

Please sign in to comment.