You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a SyntaxError: unterminated string literal from time to time on various runs. It only affects multi-line code strings and sometimes it resolves but other times it causes the interpreter to hit the iteration limit. The query causing the issue can vary. I can coerce this bug out with some additional guidelines in my request like "don't use a line break at the start of a code string" but it isn't ideal.
Here's the code causing the error:
from codeinterpreterapi import CodeInterpreterSession, schema, settings
settings.TEMPERATURE = 0
files = [schema.File.from_path('synthetic_cancer_patient_data.csv')]
def chat(prompt):
with CodeInterpreterSession(model='gpt-4') as session:
print('session:', session)
response = session.generate_response(
prompt,
files
)
for file in response.files:
file.show_image()
return response.content, response
response, r = chat(prompt)
print(response)
Here's a screenshot of the Error in LangSmith:
The text was updated successfully, but these errors were encountered:
I'm getting a SyntaxError: unterminated string literal from time to time on various runs. It only affects multi-line code strings and sometimes it resolves but other times it causes the interpreter to hit the iteration limit. The query causing the issue can vary. I can coerce this bug out with some additional guidelines in my request like "don't use a line break at the start of a code string" but it isn't ideal.
Here's the code causing the error:
Here's a screenshot of the Error in LangSmith:
The text was updated successfully, but these errors were encountered: