Skip to content

Commit

Permalink
fix: openai api host
Browse files Browse the repository at this point in the history
  • Loading branch information
LarchLiu committed Apr 3, 2024
1 parent 9e3bee8 commit 7561532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/llm/openai/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function summarizeContent(apiKey: string, websiteInfo: WebInfoData,
let content = websiteInfo.content
content = preprocessText(content)
const wordCount = countWord(content)
const host = apiHost === OPENAI_CHAT_API ? `${apiHost}/v1` : apiHost
const host = `${apiHost}/v1`

if (wordCount > 40) {
content = getSummaryPrompt(content)
Expand Down

0 comments on commit 7561532

Please sign in to comment.