mirror of
				https://github.com/linux-do/new-api.git
				synced 2025-11-04 05:13:41 +08:00 
			
		
		
		
	fix: fix time_test.sh (#191)
* Update time_test.sh to fix the params 修复测试脚本入参问题 * Update time_test.sh to fix the params
This commit is contained in:
		@@ -16,7 +16,7 @@ for ((i=1; i<=count; i++)); do
 | 
			
		||||
           https://"$domain"/v1/chat/completions \
 | 
			
		||||
           -H "Content-Type: application/json" \
 | 
			
		||||
           -H "Authorization: Bearer $key" \
 | 
			
		||||
           -d '{"prompt": "hi!", "max_tokens": 1, "model": "gpt-3.5-turbo"}')
 | 
			
		||||
           -d '{"messages": [{"content": "echo hi", "role": "user"}], "model": "gpt-3.5-turbo", "stream": false, "max_tokens": 1}')
 | 
			
		||||
  echo "$result"
 | 
			
		||||
  total_time=$(bc <<< "$total_time + $result")
 | 
			
		||||
  times+=("$result")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user