Skip to content

Commit

Permalink
feat: update AI model and image domain
Browse files Browse the repository at this point in the history
- Change AI model from GPT-4o mini to Gemini-1.5-Flash
- Update image hostname from img.gujiakai.cn to image.gujiakai.top
  • Loading branch information
real-jiakai committed Nov 15, 2024
1 parent 209d3bc commit af1aa22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/AISummary/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function AISummary({ contentMarkdown, params, tags }) {
onChange={(e) => setSelectedAI(e.target.value)}
aria-label="选择 AI 模型"
>
<option value="chatgpt">GPT-4o mini</option>
<option value="chatgpt">Gemini-1.5-Flash</option>
<option value="lingyiwangwu">Yi-Lightning</option>
</select>
</div>
Expand Down
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default nextTranslate(withBundleAnalyzer(
remotePatterns: [
{
protocol: 'https',
hostname: 'img.gujiakai.cn'
hostname: 'image.gujiakai.top'
},
],
}
Expand Down
2 changes: 1 addition & 1 deletion pages/api/chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function handler(req, res) {

try {
const stream = await openai.chat.completions.create({
model: 'gpt-4o-mini',
model: 'gemini-1.5-flash',
messages: [{ role: 'user', content: message }],
stream: true,
})
Expand Down

0 comments on commit af1aa22

Please sign in to comment.