From da777f055c0833c091bdd8207cdb970b2a60e42f Mon Sep 17 00:00:00 2001 From: sunjiayu <767978963@qq.com> Date: Fri, 26 Jul 2024 14:39:00 +0800 Subject: [PATCH] add update root interface --- liboai/include/components/audio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liboai/include/components/audio.h b/liboai/include/components/audio.h index 984f794..d08e039 100644 --- a/liboai/include/components/audio.h +++ b/liboai/include/components/audio.h @@ -25,6 +25,9 @@ namespace liboai { Audio& operator=(const Audio&) = delete; Audio& operator=(Audio&&) = delete; + void UpdateOpenAIRoot(const std::string& new_openai_root) { + Network::UpdateOpenAIRoot(new_openai_root); + } /* @brief Transcribes audio into the input language.