from openai import OpenAI client = OpenAI( base_url='https://api.ppinfra.com/llm/v1/chat/completions', api_key='<YOUR API Key>', ) completion_res = client.completions.create( model='Qwen2-7B-Instruct', prompt='云产品能用于哪些场景?', stream=True, max_tokens=512, ) 易语言怎么调用这个 |
欢迎光临 精易论坛 (https://125.confly.eu.org/) | Powered by Discuz! X3.4 |