release v0.2.3

This commit is contained in:
liam 2025-03-05 20:21:04 +08:00
parent 034a116365
commit 848fe8ab97
9 changed files with 233 additions and 8 deletions

View file

@ -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 = {