Skip to content

fix(api): use dynamic baseUrl instead of hardcoded localhost#9

Merged
OhYee merged 1 commit intomainfrom
browser-integration
Feb 4, 2026
Merged

fix(api): use dynamic baseUrl instead of hardcoded localhost#9
OhYee merged 1 commit intomainfrom
browser-integration

Conversation

@OhYee
Copy link
Member

@OhYee OhYee commented Feb 4, 2026

Replace hardcoded 'http://127.0.0.1:8080' with dynamic info.baseUrl to support configurable API endpoints.

This allows the ModelAPI to work with different base URLs configured in the info object rather than being locked to localhost.

将硬编码的 'http://127.0.0.1:8080' 替换为动态的 info.baseUrl, 以支持可配置的 API 端点。

这使得 ModelAPI 能够使用 info 对象中配置的不同基础 URL,
而不是锁定到本地主机。

Change-Id: I6c29429edc03add8e0440bcfd9f44c27ab015d4b

Thank you for creating a pull request to contribute to Serverless Devs agentrun-sdk-python code! Before you open the request please answer the following questions to help it be more easily integrated. Please check the boxes "[ ]" with "[x]" when done too.
Please select one of the PR types below to complete


Fix bugs

Bug detail

The specific manifestation of the bug or the associated issue.

Pull request tasks

  • Add test cases for the changes
  • Passed the CI test

Update docs

Reason for update

Why do you need to update your documentation?

Pull request tasks

  • Update Chinese documentation
  • Update English documentation

Add contributor

Contributed content

  • Code
  • Document

Content detail

if content_type == 'code' || content_type == 'document':
    please tell us `PR url`,like: https://github.com/Serverless-Devs/agentrun-sdk-python/pull/1
else:
    please describe your contribution in detail

Others

Reason for update

Why do you need to update your documentation?

Replace hardcoded 'http://127.0.0.1:8080' with dynamic info.baseUrl
to support configurable API endpoints.

This allows the ModelAPI to work with different base URLs configured
in the info object rather than being locked to localhost.

将硬编码的 'http://127.0.0.1:8080' 替换为动态的 info.baseUrl,
以支持可配置的 API 端点。

这使得 ModelAPI 能够使用 info 对象中配置的不同基础 URL,
而不是锁定到本地主机。

Change-Id: I6c29429edc03add8e0440bcfd9f44c27ab015d4b
Signed-off-by: OhYee <oyohyee@oyohyee.com>
@OhYee OhYee merged commit e0d1c0b into main Feb 4, 2026
9 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.

1 participant