We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfa9fb8 commit 3684ab6Copy full SHA for 3684ab6
typescript/packages/toolshed/routes/ai/spell/behavior/effects.ts
@@ -9,6 +9,7 @@ export async function generateText(
9
) {
10
const res = await client.api.ai.llm.$post({ json: query });
11
// cheating
12
+ // deno-lint-ignore no-explicit-any
13
const data = (await res.json() as any) as {
14
role: "assistant";
15
content: string;
@@ -28,7 +29,7 @@ export async function getAllBlobs(): Promise<string[]> {
28
29
30
export async function getBlob(key: string): Promise<unknown> {
31
const res = await client.api.storage.blobby[":key"].$get({ param: { key } });
- const data = await res.json() as any;
32
+ const data = await res.json() as unknown;
33
34
if ("error" in data) {
35
throw new Error(data.error);
0 commit comments