20 Commits (55de9f139eb6b849f4879e9a4b822166f54edfa0)

Author SHA1 Message Date
root a7be70ab41 update openai_api: support stop words for streaming chat 12 months ago
yangapku ab109ced9f update openai_api.py 1 year ago
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