18 Commits (4aab1d490b268783bdda80b87b7fb501539b7929)

Author SHA1 Message Date
Jianxin Ma 54bca4fcd6
Merge pull request #606 from joindn/api-auth
add api-auth for openai_api.py
1 year ago
兼欣 2408eea7d6 openai_api.py: compatible with both pydantic v1 and v2 1 year ago
曾金栋 ee4b20f2fa add api-auth 1 year ago
yangapku 83368388aa update openai_api.py 1 year ago
yangapku cbfaada8de update cache GC in demo and add vocab expansion example 1 year ago
Junyang Lin 54189acc41
Update openai_api.py
fix typo
1 year ago
yangapku fc57dea277 release latest models 1 year ago
yangapku 7ba36aad16 update openai_api.py 1 year ago
兼欣 9e80cc085c add function calling support 1 year ago
yangapku 5c49d35a7e format line 1 year ago
cyente a3a5b3de47 add stop word on openai api ChatCompletion 1 year ago
Yang An 555d815ec0
Update openai_api.py 1 year ago
Yang An 2252578da0
Update openai_api.py 1 year ago
Artificial d2fc7c95db
Update openai_api.py
解决调用api的bug:response, _ = model.chat_stream(tokenizer, query, history=history)
ValueError: too many values to unpack (expected 2)

用api的时候建议把stream改成false
1 year ago
Junyang Lin 31a496fd24
Update openai_api.py 1 year ago
Junyang Lin c84d2f685a
add exception 1 year ago
Junyang Lin dfced1aec0
Update openai_api.py 1 year ago
hanpeng 3006ef34e9 Add openai_api 1 year ago