File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 1111from  jedi .api .classes  import  Name 
1212from  libcst  import  CSTNode 
1313
14- from  codeflash .cli_cmds .console  import  code_print ,  logger 
14+ from  codeflash .cli_cmds .console  import  logger 
1515from  codeflash .code_utils .code_extractor  import  add_needed_imports_from_module , find_preexisting_objects 
1616from  codeflash .code_utils .code_utils  import  get_qualified_name , path_belongs_to_site_packages 
1717from  codeflash .discovery .functions_to_optimize  import  FunctionToOptimize 
@@ -73,7 +73,6 @@ def get_code_optimization_context(
7373
7474 # Handle token limits 
7575 tokenizer  =  tiktoken .encoding_for_model ("gpt-4o" )
76-  code_print (final_read_writable_code )
7776 final_read_writable_tokens  =  len (tokenizer .encode (final_read_writable_code ))
7877 if  final_read_writable_tokens  >  optim_token_limit :
7978 raise  ValueError ("Read-writable code has exceeded token limit, cannot proceed" )
                         You can’t perform that action at this time. 
           
                  
0 commit comments