mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-02 10:29:02 +08:00
refactor: update API configuration handling and improve logging level
This commit is contained in:
parent
781b01ee17
commit
e02f826707
@ -68,11 +68,7 @@ class ClaudeCodeService implements AgentServiceInterface {
|
||||
return aiStream
|
||||
}
|
||||
|
||||
// TODO: use cherry studio api server config instead of direct provider config to provide more flexibility (e.g. custom headers, proxy, statistics, etc).
|
||||
const apiConfig = await apiConfigService.get()
|
||||
// process.env.ANTHROPIC_AUTH_TOKEN = apiConfig.apiKey
|
||||
// process.env.ANTHROPIC_BASE_URL = `http://${apiConfig.host}:${apiConfig.port}`
|
||||
|
||||
const loginShellEnv = await getLoginShellEnvironment()
|
||||
const env = {
|
||||
...loginShellEnv,
|
||||
@ -126,7 +122,7 @@ class ClaudeCodeService implements AgentServiceInterface {
|
||||
options.resume = lastAgentSessionId
|
||||
}
|
||||
|
||||
logger.silly('Starting Claude Code SDK query', {
|
||||
logger.info('Starting Claude Code SDK query', {
|
||||
prompt,
|
||||
cwd: options.cwd,
|
||||
model: options.model,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user