Skip to content

Commit

Permalink
fix: default api get
Browse files Browse the repository at this point in the history
  • Loading branch information
KeJunMao committed Mar 21, 2023
1 parent a60f45b commit 3787759
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composables/useChatGPT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ export const useChatGPT = createSharedComposable(() => {
options.apiKey = tempKey.value;
} else {
try {
const data = await $fetch<any[]>(
"https://notion-api.hode.co.uk/v1/table/a4ed21f575484fe282dcdab92e518c6b"
const data = await $fetch<any>(
"https://api.harrly.com/api/project/chat-chat/api"
);
const item = data?.find((v) => v.API);
const item = data?.API;
tempKey.value = item?.API;
options.apiKey = item?.API;
} catch {
Expand Down

0 comments on commit 3787759

Please sign in to comment.