mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-09 01:24:49 +08:00
feat: b5-reasoning-guard — batch 5 upstream parity
This commit is contained in:
@@ -5,6 +5,7 @@ use serde::Deserialize;
|
||||
use serde_json::{json, Value};
|
||||
|
||||
use crate::error::ApiError;
|
||||
use crate::http_client::build_http_client_or_default;
|
||||
use crate::types::{
|
||||
ContentBlockDelta, ContentBlockDeltaEvent, ContentBlockStartEvent, ContentBlockStopEvent,
|
||||
InputContentBlock, InputMessage, MessageDelta, MessageDeltaEvent, MessageRequest,
|
||||
@@ -81,7 +82,7 @@ impl OpenAiCompatClient {
|
||||
#[must_use]
|
||||
pub fn new(api_key: impl Into<String>, config: OpenAiCompatConfig) -> Self {
|
||||
Self {
|
||||
http: reqwest::Client::new(),
|
||||
http: build_http_client_or_default(),
|
||||
api_key: api_key.into(),
|
||||
config,
|
||||
base_url: read_base_url(config),
|
||||
|
||||
Reference in New Issue
Block a user