| 991 | }; |
| 992 | |
| 993 | struct llama_sampler * llama_sampler_init_temp(float temp) { |
| 994 | return llama_sampler_init( |
| 995 | /* .iface = */ &llama_sampler_temp_i, |
| 996 | /* .ctx = */ new llama_sampler_temp { |
| 997 | /*.temp = */ temp, |
| 998 | } |
| 999 | ); |
| 1000 | } |
| 1001 | |
| 1002 | // temp-ext |
| 1003 |