#78

How to set the base URL of the transit station?

Openerdan111opened 5mo ago

I'm using a relay station and encountered an error when configuring the environment, possibly because I've fixed the baseurl. I'd like to know where I can set the baseurl.

Activity

6
GH05TCREW5mo ago

In .env, set: PENTESTAGENT_MODEL=openai/your-model OPENAI_API_KEY=sk-placeholder OPENAI_API_BASE=http://relay-host:port/v1

LiteLLM will route through your base URL. If you're using Ollama, use PENTESTAGENT_MODEL=ollama/model-name and OLLAMA_BASE_URL=http://your-host:11434.

erdan1115mo ago

在 .env 文件中,设置: PENTESTAGENT_MODEL=openai/your-model OPENAI_API_KEY=sk-placeholder OPENAI_API_BASE= http://relay\-host:port/v1

LiteLLM 将通过您的基本 URL 进行路由。如果您使用的是 Ollama,请使用 PENTESTAGENT_MODEL=ollama/model-name 和 OLLAMA_BASE_URL= http://your\-host:11434。

Could you help me see where the problem is?

GH05TCREW5mo ago

The issue is the model name with claude/claude-opus-4 isn't valid. Try changing it to: PENTESTAGENT_MODEL=anthropic/claude-opus-4-20250514

erdan1115mo ago

问题在于模型名称中包含 claude/claude-opus-4 的模型无效。请尝试将其更改为: PENTESTAGENT_MODEL=anthropic/claude-opus-4-20250514

I've tried many methods, but I still get the same result.

GH05TCREW5mo ago

If your relay exposes the model as claude/claude-opus-4, try: OPENAI_API_BASE=https://your-relay-host/v1 PENTESTAGENT_MODEL=openai/claude/claude-opus-4 PENTESTAGENT_EMBEDDINGS=local

erdan1115mo ago
Still not possible