Skip to content

Commit 06f897f

Browse files
authored
Merge pull request #5679 from ConnectAI-E/fix/fetch
fix: use tauri fetch
2 parents 463fa74 + deb1e76 commit 06f897f

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

app/client/platforms/anthropic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { getMessageTextContent, isVisionModel } from "@/app/utils";
1313
import { preProcessImageContent, stream } from "@/app/utils/chat";
1414
import { cloudflareAIGatewayUrl } from "@/app/utils/cloudflare";
1515
import { RequestPayload } from "./openai";
16+
import { fetch } from "@/app/utils/stream";
1617

1718
export type MultiBlockContent = {
1819
type: "image" | "text";

app/client/platforms/moonshot.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
import { getClientConfig } from "@/app/config/client";
2525
import { getMessageTextContent } from "@/app/utils";
2626
import { RequestPayload } from "./openai";
27+
import { fetch } from "@/app/utils/stream";
2728

2829
export class MoonshotApi implements LLMApi {
2930
private disableListModels = true;

app/client/platforms/openai.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import {
4242
isVisionModel,
4343
isDalle3 as _isDalle3,
4444
} from "@/app/utils";
45+
import { fetch } from "@/app/utils/stream";
4546

4647
export interface OpenAIListModelResponse {
4748
object: string;

0 commit comments

Comments
 (0)