大模型接口都支持API KEY的传入,mindieserver如何才能开启API KEY的验证,如下接口
curl -X POST http://127.0.0.1:30000/v1/chat/completions -H "Content-Type:application/json" -H "Authorization: Bearer 此处为API KEY" -d '{"model": "/models/DeepSeek-R1", "stream": true, "messages": [ {"role": "system", "content": "You are a helpful assistant."},{"role": "user", "content":"介绍一下阿里云"}]}'
大模型接口都支持API KEY的传入,mindieserver如何才能开启API KEY的验证,如下接口
curl -X POST http://127.0.0.1:30000/v1/chat/completions -H "Content-Type:application/json" -H "Authorization: Bearer 此处为API KEY" -d '{"model": "/models/DeepSeek-R1", "stream": true, "messages": [ {"role": "system", "content": "You are a helpful assistant."},{"role": "user", "content":"介绍一下阿里云"}]}'