Functions | |
| std::string | NormalizeOpenAIApiBase (std::string base) |
| bool | IsLikelyOracleRomPath (absl::string_view rom_path) |
| std::string | NormalizeBrowserProviderAlias (std::string provider) |
| bool | IsOpenAiCompatibleProvider (absl::string_view provider) |
| bool | IsBrowserSupportedProvider (absl::string_view provider) |
| std::string | ReadAssetFile (absl::string_view relative_path) |
| std::string | ResolveOracleSystemInstruction (const yaze::cli::AIServiceConfig &config) |
| yaze::cli::AIServiceConfig | NormalizeConfig (yaze::cli::AIServiceConfig config) |
| std::unique_ptr< yaze::cli::AIService > | FinalizeService (std::unique_ptr< yaze::cli::AIService > service, const yaze::cli::AIServiceConfig &config) |
Variables | |
| constexpr char | kDefaultOpenAiBaseUrl [] = "https://api.openai.com" |
| constexpr char | kOraclePromptAsset [] = "agent/oracle_of_secrets_guide.txt" |
| std::string anonymous_namespace{service_factory_browser.cc}::NormalizeOpenAIApiBase | ( | std::string | base | ) |
Definition at line 23 of file service_factory_browser.cc.
References yaze::cli::NormalizeOpenAiBaseUrl().

| bool anonymous_namespace{service_factory_browser.cc}::IsLikelyOracleRomPath | ( | absl::string_view | rom_path | ) |
Definition at line 34 of file service_factory_browser.cc.
| std::string anonymous_namespace{service_factory_browser.cc}::NormalizeBrowserProviderAlias | ( | std::string | provider | ) |
Definition at line 43 of file service_factory_browser.cc.
References yaze::cli::kProviderChatGpt, yaze::cli::kProviderCustomOpenAi, yaze::cli::kProviderGemini, yaze::cli::kProviderGoogle, yaze::cli::kProviderGoogleGemini, yaze::cli::kProviderGpt, yaze::cli::kProviderLmStudio, yaze::cli::kProviderLmStudioDashed, yaze::cli::kProviderOpenAi, and yaze::cli::kProviderOpenAiCompatible.
Referenced by NormalizeConfig().
| bool anonymous_namespace{service_factory_browser.cc}::IsOpenAiCompatibleProvider | ( | absl::string_view | provider | ) |
Definition at line 61 of file service_factory_browser.cc.
References yaze::cli::kProviderAfsBridge, yaze::cli::kProviderHalext, yaze::cli::kProviderLmStudio, and yaze::cli::kProviderOpenAi.
Referenced by IsBrowserSupportedProvider().
| bool anonymous_namespace{service_factory_browser.cc}::IsBrowserSupportedProvider | ( | absl::string_view | provider | ) |
Definition at line 68 of file service_factory_browser.cc.
References IsOpenAiCompatibleProvider(), yaze::cli::kProviderGemini, and yaze::cli::kProviderMock.

| std::string anonymous_namespace{service_factory_browser.cc}::ReadAssetFile | ( | absl::string_view | relative_path | ) |
Definition at line 74 of file service_factory_browser.cc.
References yaze::util::PlatformPaths::FindAsset().
Referenced by ResolveOracleSystemInstruction().

| std::string anonymous_namespace{service_factory_browser.cc}::ResolveOracleSystemInstruction | ( | const yaze::cli::AIServiceConfig & | config | ) |
Definition at line 88 of file service_factory_browser.cc.
References yaze::cli::DetectPromptProfile(), yaze::cli::kOracleOfSecrets, kOraclePromptAsset, and ReadAssetFile().

| yaze::cli::AIServiceConfig anonymous_namespace{service_factory_browser.cc}::NormalizeConfig | ( | yaze::cli::AIServiceConfig | config | ) |
Definition at line 97 of file service_factory_browser.cc.
References yaze::cli::kProviderAuto, NormalizeBrowserProviderAlias(), yaze::cli::NormalizeOpenAiBaseUrl(), yaze::cli::AIServiceConfig::openai_base_url, and yaze::cli::AIServiceConfig::provider.

| std::unique_ptr< yaze::cli::AIService > anonymous_namespace{service_factory_browser.cc}::FinalizeService | ( | std::unique_ptr< yaze::cli::AIService > | service, |
| const yaze::cli::AIServiceConfig & | config ) |
Definition at line 107 of file service_factory_browser.cc.
References yaze::cli::AIServiceConfig::rom_context.
|
constexpr |
Definition at line 20 of file service_factory_browser.cc.
|
constexpr |
Definition at line 21 of file service_factory_browser.cc.
Referenced by ResolveOracleSystemInstruction().