mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2025-09-14 17:19:42 +00:00
⚡ release v0.2.3
This commit is contained in:
parent
034a116365
commit
848fe8ab97
9 changed files with 233 additions and 8 deletions
|
@ -13,7 +13,7 @@ def generate_text(api_url,question , model_name, stream=False, auth_token=None):
|
|||
'accept': 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
# 添加 API Key
|
||||
'Authorization' : 'Bearer ' + auth_token
|
||||
'Authorization' : 'Bearer ' + auth_token if auth_token else ''
|
||||
}
|
||||
question = instruct_prompt(question)
|
||||
data = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue