We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f13212 commit 46fe633Copy full SHA for 46fe633
pages/api/home/home.tsx
@@ -115,9 +115,7 @@ const Home = ({
115
}, [router.query.api_key]);
116
117
useEffect(() => {
118
- if (api) {
119
getData()
120
- }
121
}, [api, apiKey])
122
123
// FETCH MODELS ----------------------------------------------
services/useApiService.ts
@@ -30,7 +30,7 @@ const useApiService = () => {
30
// );
31
32
const getModels = async (params: GetModelsRequestProps) => {
33
- if(params.url){
+ // if(params.url){
34
let url = `${params.url}/v1/models`;
35
try {
36
const response = await fetch(url, {
@@ -61,7 +61,7 @@ const useApiService = () => {
61
} catch (e) {
62
return {}
63
}
64
+ // }
65
66
67
return {
0 commit comments