LostRuins / koboldcpp

A simple one-file way to run various GGML and GGUF models with KoboldAI's UI
https://github.com/lostruins/koboldcpp
GNU Affero General Public License v3.0
4.35k stars 312 forks source link

Update expose.h - Compile error #880

Closed askmyteapot closed 1 month ago

askmyteapot commented 1 month ago

Fixes compile issues on Windows with w64devkit

In file included from ./model_adapter.h:14,
                 from otherarch/whispercpp/whisper_adapter.cpp:1:
./expose.h:29:5: error: 'int32_t' does not name a type
   29 |     int32_t token_id;
      |     ^~~~~~~
./expose.h:1:1: note: 'int32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint '
  +++ |+#include <cstdint>
    1 | #pragma once
jojorne commented 1 month ago

Interesting, I just changed to:

int token_id;