+
    *j  c                   f    ^ RI t^ RIHu Ht ^ RIHt  ! R R]4      tR R lt	R R lt
R	 R
 ltR# )    N)OllamaClientc                   T   a a ] tR t^t oV3R lV 3R lltRV3R lR lltRtVtV ;t# )CapturingOllamac                $   < V ^8  d   QhRS[ RR/# )   modelreturnN)str)format__classdict__s   ",/Volumes/www/pataniscAI/tests/test_ollama.py__annotate__CapturingOllama.__annotate__   s      c d     c                F   < \         SV `  R V^4       RV n        / V n        R# )zhttp://127.0.0.1:11434 N)super__init__pathbody)selfr   	__class__s   &&r   r   CapturingOllama.__init__   s#    15"=		r   c                :   < V ^8  d   QhRS[ RS[R,          RS[/# )r   r   r   Nr   )r	   dict)r
   r   s   "r   r   r   
   s&     6 6S 6t 6t 6r   c                <    Wn         T;'       g    / V n        R RR^/# )responsetexto
eval_count)r   r   )r   r   r   s   &&&r   _requestCapturingOllama._request
   s#    	JJB	G\155r   )r   r   )N)	__name__
__module____qualname____firstlineno__r   r   __static_attributes____classdictcell____classcell__)r   r   s   @@r   r   r      s      
6 6 6r   r   c                    V ^8  d   QhRR/# r   r   N )r
   s   "r   r   r      s      d r   c            	         \        R 4      p V P                  RR4       V P                  pRq!V8H  q3'       g   \        P                  ! RV3RW34      RR\
        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pRR	V/,          p\        \        P                  ! V4      4      hR
;p;r2V P                  R,          pRq6V8H  qw'       gy   \        P                  ! RV3RWc34      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p	\        \        P                  ! V	4      4      hR
;p;rsV P                  R,          pR^ RRRRRR/q6V8H  qw'       gy   \        P                  ! RV3RWc34      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p	\        \        P                  ! V	4      4      hR
;p;rsR
# )%AuditAid/PaddleOCR-VL-1.6-0.9B:latest   imagezTranscreve./api/generatepy0clientpy2py5assert %(py7)spy7Npromptpy1py4assert %(py6)spy6optionstemperaturenum_predictix  repeat_penaltygffffff?repeat_last_n   ==z,%(py2)s
{%(py2)s = %(py0)s.path
} == %(py5)sz%(py1)s == %(py4)sr   
transcriber   
@pytest_ar_call_reprcompare@py_builtinslocals_should_repr_global_name	_safereprAssertionError_format_explanationr   
r0   @py_assert1@py_assert4@py_assert3@py_format6@py_format8@py_assert0@py_assert2@py_format5@py_format7s
             r   4test_paddle_keeps_generate_and_deterministic_optionsrX      s   DEF
h.;;)/)/)))));))))))6))))6)));)))/))))))));;x 1M1M11111 111 111M11111111;;y! qt$	&  &   
 !  
 !  
  &     
   r   c                    V ^8  d   QhRR/# r)   r*   )r
   s   "r   r   r      s     
 
 
r   c                     \        R 4      p V P                  RRR4       V P                  R,          pR^ R^RRR	^@/q!V8H  q3'       gy   \        P                  ! RV3RW34      R
\        P
                  ! V4      R\        P
                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;r2R# )r,   r-   zTranscreve as linhas.cc_frente_identificacaor:   r;   r<   r=   g?r>   r6   r7   r8   r9   Nr@   rC   )r   rE   r   rF   rG   rK   rL   rM   )r0   rT   rQ   rU   rV   rW   s         r   7test_paddle_cc_front_focus_uses_short_generation_budgetr\      s    DEF
h 79RS;;y! qs$	&  &   
 !  
 !  
  &     
   r   c                    V ^8  d   QhRR/# r)   r*   )r
   s   "r   r   r   ,   s     	9 	9t 	9r   c            	         \        R 4      p V P                  RR4       V P                  pRq!V8H  q3'       g   \        P                  ! RV3RW34      RR\
        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pRR	V/,          p\        \        P                  ! V4      4      hR
;p;r2V P                  R,          pRq6V8H  qw'       gy   \        P                  ! RV3RWc34      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p	\        \        P                  ! V	4      4      hR
;p;rsV P                  R,          R,          p^ q6V8H  qw'       gy   \        P                  ! RV3RWc34      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p	\        \        P                  ! V	4      4      hR
;p;rsV P                  R,          R,          p^q6V8H  qw'       gy   \        P                  ! RV3RWc34      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p	\        \        P                  ! V	4      4      hR
;p;rsV P                  R,          R,          pRq6V8H  qw'       gy   \        P                  ! RV3RWc34      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p	\        \        P                  ! V	4      4      hR
;p;rsR
# )zglm-ocr:latestr-   zText Recognition:r.   r/   r0   r1   r2   r3   r4   Nr5   r6   r7   r8   r9   r:   r;   top_kr<   i`	  r@   rB   rC   rD   rN   s
             r   -test_glm_keeps_generate_and_canonical_optionsr`   ,   s   -.F
h 34;;)/)/)))));))))))6))))6)));)))/))))))));;x 7$77$777777 777 777$777777777;;y!-05A5A5555505550555A55555555;;y!'*/a/a/////*///*///a////////;;y!-08D8D8888808880888D88888888r   )builtinsrH   _pytest.assertion.rewrite	assertionrewriterF   pataniscai.ollamar   r   rX   r\   r`   r*   r   r   <module>rf      s(       *	6l 	6
	9r   