Closed yixian3500 closed 1 month ago
I got it!
The reason is the variable result
is not recognized in the scope where I'm trying to print it. This is because the result
variable is defined inside the main
function, and its scope is limited to that function.
I replaced the print(result) with print(markdown_result) and it works!
close this cuz it works
Hi,
thanks to the good project, but anyone can help me about this problem?
My python code is :
it return this:
20:01:40 - LiteLLM:WARNING: vertex_ai_non_gemini.py:198 - No text in user content. Adding a blank text to user content, to ensure Gemini doesn't fail the request. Relevant Issue - https://github.com/BerriAI/litellm/issues/5515 20:01:40 - LiteLLM:WARNING: vertex_ai_non_gemini.py:198 - No text in user content. Adding a blank text to user content, to ensure Gemini doesn't fail the request. Relevant Issue - https://github.com/BerriAI/litellm/issues/5515 Markdown result:
NameError Traceback (most recent call last) Cell In[7], line 53 51 # 打印结果 52 print("Markdown result:") ---> 53 print(result)
NameError: name 'result' is not defined
if I change to open_ai model, it returned :
Markdown result:
NameError Traceback (most recent call last) Cell In[9], line 53 51 # 打印结果 52 print("Markdown result:") ---> 53 print(result)
NameError: name 'result' is not defined