chore: make proxy in simple-chat configure (#134)

and remove some prints and some useless codes

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
jokemanfire 2025-04-20 11:00:47 +08:00 • committed by GitHub
commit b6fabc8836
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ async fn main() -> Result<()> {
.unwrap_or_else(|| std::env::var("OPENAI_API_KEY").expect("need set api key"));
let url = config.chat_url.clone();
println!("url is {:?}", url);
let openai_client = Arc::new(OpenAIClient::new(api_key, url));
let openai_client = Arc::new(OpenAIClient::new(api_key, url, config.proxy));
// create tool set
let mut tool_set = ToolSet::default();