Skip to content

Commit

Permalink
fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancss committed Aug 9, 2024
1 parent fb128b6 commit 0cc302d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/aiProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { fetch, Body, ResponseType } from "@tauri-apps/api/http";
export interface OsaiError {
type: string;
message: string;
response: any;
}
interface sendMessageParams {
model: string;
Expand Down Expand Up @@ -113,7 +114,7 @@ const sendMessageToAnthropic = async ({
flagId: flagId,
};
console.log(`Sending message to Claude:`, invokeParams);
const response = await invoke("send_message_to_anthropic", invokeParams);
const response: any = await invoke("send_message_to_anthropic", invokeParams);
const res = JSON.parse(response);
console.log(`Response from Claude:`, res);
return res.content[res.content.length - 1].input as AIResponse;
Expand Down

0 comments on commit 0cc302d

Please sign in to comment.