请求
PS C:\Users\Administrator> $response = Invoke-WebRequest -Uri "https://api.lingyiwanwu.com/v1/chat/completions" -Headers @{"Content-Type"="application/json"; "Authorization"="Bearer fa75942eb8914a57bdddb44af543164f"} -Method POST -Body '{
>> "model": "yi-large",
>> "messages": [{"role": "user", "content": "Hi, who are you?"}],
>> "temperature": 0.3
>> }'
>>
显示
{"id":"cmpl-e33a53cc","object":"chat.completion","created":14390708,"model":"yi-large","usage":{"completion_tokens":59,"prompt_tokens":16,"total_tokens":75},"choices":[{"index":0,"message":{"role":"assistant","content":"Hello! I am an AI-powered language model based on the transformers architecture developed by OpenAI. My purpose is to be a helpful resource for you, capable of answering questions and offering insightful information across a wide range of topics. How may I be of service to you today?"},"finish_reason":"stop"}]}
PS C:\Users\Administrator>
即问
"Hi, who are you?"
回答
"Hello! I am an AI-powered language model based on the transformers architecture developed by OpenAI. My purpose is to be a helpful resource for you, capable of answering questions and offering insightful information across a wide range of topics. How may I be of service to you today?
翻译结果:
问:“嗨,你是谁?”
答:“你好!我是一个基于OpenAI开发的变换器架构的人工智能语言模型。我的目的是成为你的有帮助的资源,能够回答问题并就广泛的话题提供有见地的信息。我今天如何为您服务?”
作者: 丙丁先生, 来源:面包板社区
链接: https://mbb.eet-china.com/blog/uid-me-3996156.html
版权声明:本文为博主原创,未经本人允许,禁止转载!
文章评论(0条评论)
登录后参与讨论