Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: api base #725

Merged
merged 2 commits into from
Feb 6, 2025
Merged

fix: api base #725

merged 2 commits into from
Feb 6, 2025

Conversation

RaoHai
Copy link
Contributor

@RaoHai RaoHai commented Feb 6, 2025

No description provided.

Copy link

vercel bot commented Feb 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 4:20am

Copy link

Walkthrough

This pull request introduces a new client class DashScopeClient for interacting with the DashScope API. It utilizes the ChatOpenAI model and includes methods for client initialization, tool conversion, and content parsing.

Changes

File Summary
server/agent/llm/clients/bailian.py Added a new class DashScopeClient for DashScope API integration, with methods for client setup, tool conversion, and content parsing.

from petercat_utils.data_class import MessageContent
from petercat_utils import get_env_variable

DASHSCOPE_API_KEY = get_env_variable("DASHSCOPE_API_KEY")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the DASHSCOPE_API_KEY is securely managed and not exposed in logs or error messages to prevent unauthorized access.

@RaoHai RaoHai merged commit c0e3bbe into main Feb 6, 2025
2 of 4 checks passed
@RaoHai RaoHai deleted the chore/fix-api-base branch February 6, 2025 04:17
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

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