include(cc_library)

cc_library(
  NAME
    api_service
  HDRS
    api_service.h
    api_service_impl.h
    call.h
    chat_json_parser.h
    completion_service_impl.h
    rec_completion_service_impl.h
    chat_service_impl.h
    anthropic_service_impl.h
    sample_service_impl.h
    embedding_service_impl.h
    image_generation_service_impl.h
    rerank_service_impl.h
    qwen3_rerank_service_impl.h
    non_stream_call.h
    service_impl_factory.h
    serving_mode.h
    stream_call.h
    models_service_impl.h
    stream_output_parser.h
    mm_service_utils.h
    embedding_output_builder.h
    utils.h
  SRCS
    api_service.cpp
    chat_json_parser.cpp
    service_impl_factory.cpp
    call.cpp
    completion_service_impl.cpp
    rec_completion_service_impl.cpp
    chat_service_impl.cpp
    anthropic_service_impl.cpp
    sample_service_impl.cpp
    embedding_service_impl.cpp
    image_generation_service_impl.cpp
    models_service_impl.cpp
    rerank_service_impl.cpp
    stream_output_parser.cpp
    qwen3_rerank_service_impl.cpp
    embedding_output_builder.cpp
  DEPS
    :master
    :chat_template
    :util
    glog::glog
    proto::xllm_proto
    absl::flat_hash_set
    absl::random_random
    :function_call
    :reasoning
    torch
    $<$<BOOL:${USE_NPU}>:torch_npu>
)
