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:
parent
3a97917cd7
commit
b6fabc8836
1 changed files with 14 additions and 35 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue