fix imageAgent port error

This commit is contained in:
musistudio
2025-10-09 09:00:12 +08:00
parent 2ddc144996
commit 6825d631a0
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ export class ImageAgent implements IAgent {
// Send to analysis agent and get response
const agentResponse = await fetch(`http://127.0.0.1:${context.config.PORT}/v1/messages`, {
const agentResponse = await fetch(`http://127.0.0.1:${context.config.PORT || 3456}/v1/messages`, {
method: "POST",
headers: {
'x-api-key': context.config.APIKEY,

View File

@@ -270,7 +270,7 @@ async function run(options: RunOptions = {}) {
role: 'user',
content: toolMessages
})
const response = await fetch(`http://127.0.0.1:${config.PORT}/v1/messages`, {
const response = await fetch(`http://127.0.0.1:${config.PORT || 3456}/v1/messages`, {
method: "POST",
headers: {
'x-api-key': config.APIKEY,