package 存储过程  内容精选
  • ChatGLM2-6B-INT4 - ModelBuilder

    ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package

    查看更多>>

  • Linly-Chinese-LLaMA-2-13B - ModelBuilder

    ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package

    查看更多>>

package 存储过程  更多内容
  • Mistral-7B-Instruct - ModelBuilder

    ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package

    查看更多>>

  • OA-Pythia-12B-SFT-4 - ModelBuilder

    ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package

    查看更多>>

  • ChatGLM3-6B - ModelBuilder

    ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package

    查看更多>>

  • XVERSE-13B-Chat - ModelBuilder

    ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : 你好 } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package

    查看更多>>

  • Gemma-2B-it - ModelBuilder

    ChatCompletion ( ) # 使用自行发布的模型 resp = chat_comp . do ( endpoint = your_custom_endpoint , messages = [ { role : user , content : hi } ] ) # 可以通过resp[ body ]获取接口返回的内容 print ( resp [ body ] ) package

    查看更多>>

  • chatglm3-6b-32k - ModelBuilder

    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

    查看更多>>

  • 表格文字识别(同步接口) - 文字识别OCR

    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

    查看更多>>