ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package
ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package
ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package
ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package
ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package
ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package
ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : hi } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package
ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package
img = base64_encode ( $img ) ; $bodys = array ( 'brief' = > {\ name\ :\ 小度\ , \ id\ :\ 1\ } , 'image' = > $img , 'tags' = > 1,1 ) ; $res = request_post ( $url , $bodys ) ; var_dump ( $res ) ; package
access_token headers = { 'content-type' : 'application/x-www-form-urlencoded' } response = requests . post ( request_url , data = params , headers = headers ) if response : print ( response . json ( ) ) package