Skip to content

feat(jev): add configurable endpoint path to JevClient (#4211) - #4225

Merged
jujn merged 2 commits into
agentscope-ai:mainfrom
iluv7:feat/4211-jev-custom-endpoint
Nov 17, 2026
Merged

jujn merged 2 commits into
agentscope-ai:mainfrom
iluv7:feat/4211-jev-custom-endpoint

Conversation

@iluv7

@iluv7 iluv7 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

AgentScope-Java Version

2.1.0-SNAPSHOT

Description

Closes #4211.

JevClient hardcodes /v1/systemone as the request path, which blocks deployments against compatible gateways and inner providers that expose a different path (e.g. /v1/decisions).

Changes:

  • JevClient.Builder gains endpointPath(String), mirroring OpenAIChatModel.Builder#endpointPath. When set, the path replaces /v1/systemone and is appended to the base URL (a missing leading slash is normalized; a base URL that already ends with the path is not duplicated). When unset, behavior is unchanged.
  • Spring Boot starter: new agentscope.jev.endpoint-path property wired through JevAutoConfiguration.
  • Tests: 4 new JevClientTest cases (custom path, no duplication, slash normalization, blank rejection) and starter coverage for both custom and default paths.
  • Docs: EN/ZH client guides updated with an example and the new property.

How to test:

mvn -T1C -pl agentscope-extensions/agentscope-extensions-judge/agentscope-extensions-jev,agentscope-extensions/agentscope-spring-boot-starters/agentscope-jev-spring-boot-starter -am test

Both modules pass (131 + 6 tests). JevBrowserDriverTest was not run locally as it requires a real browser environment and is unrelated to this change.

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply (verified with mvn spotless:check)
  • All tests are passing (mvn test) for the affected modules
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

🤖 Generated with Claude Code

…#4211)

JevClient hardcodes /v1/systemone as the request path. Add
Builder.endpointPath(String) so compatible gateways and inner providers
can use a custom path, keeping /v1/systemone as the default. Wire the
equivalent agentscope.jev.endpoint-path property through the Spring Boot
starter, and update the EN/ZH client guides.

Co-Authored-By: Claude Code <[email protected]>
@mintlify

mintlify Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 68389d1.

Approve preview

@jujn
jujn merged commit 5a7e8e5 into agentscope-ai:main Nov 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: add new api to set custom endpoint for JevClient

2 participants