使用谷歌云功能有问题


message: "Build failed: *** Error compiling './main.py'...
File "./main.py", line 85
"prompt": prompt, 
^
SyntaxError: invalid syntax; Error ID: 49c34848"
if user_request == "longer responses":
model_config = {
"engine": "gpt3",
"model": ["text-davinci-002", "text-davinci-003", "text-curie-001", "text-babbage-001", "text-ada-001",]
"prompt": prompt, 
"temperature": 0.9,  # set the temperature to a high value
"max_tokens": 300,  # set the max_tokens filter to 160 tokens

行不通。我试着加了分号。它不工作

我认为你的代码是不正确的,它仍然是}字符正确地写PythonDict。我还在数组中删除了一个无用的逗号:

if user_request == "longer responses":
model_config = {
"engine": "gpt3",
"model": ["text-davinci-002", "text-davinci-003", "text-curie-001", "text-babbage-001", "text-ada-001"]
"prompt": prompt, 
"temperature": 0.9,  # set the temperature to a high value
"max_tokens": 300  # set the max_tokens filter to 160 tokens
}

相关内容

  • 没有找到相关文章

最新更新