mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-06-01 10:04:00 +00:00
eat: make Gemma 4 the default model, enable thinking mode
This commit is contained in:
@@ -8,11 +8,10 @@
|
||||
|
||||
#include "data_generation/mock_generator.h"
|
||||
|
||||
auto MockGenerator::GenerateBrewery(const std::string& city_name,
|
||||
const std::string& country_name,
|
||||
auto MockGenerator::GenerateBrewery(const BreweryLocation& location,
|
||||
const std::string& /*region_context*/)
|
||||
-> BreweryResult {
|
||||
const std::size_t hash = DeterministicHash(city_name, country_name);
|
||||
const std::size_t hash = DeterministicHash(location);
|
||||
|
||||
const std::string& adjective =
|
||||
kBreweryAdjectives.at(hash % kBreweryAdjectives.size());
|
||||
@@ -21,11 +20,20 @@ auto MockGenerator::GenerateBrewery(const std::string& city_name,
|
||||
const std::string& base_description =
|
||||
kBreweryDescriptions.at((hash / 13) % kBreweryDescriptions.size());
|
||||
|
||||
const std::string name = city_name + " " + adjective + " " + noun;
|
||||
const std::string description =
|
||||
base_description + " Based in " + city_name +
|
||||
(country_name.empty() ? std::string(".")
|
||||
: std::string(", ") + country_name + ".");
|
||||
std::string name(location.city_name);
|
||||
name.append(" ");
|
||||
name.append(adjective);
|
||||
name.append(" ");
|
||||
name.append(noun);
|
||||
|
||||
std::string description = base_description;
|
||||
description.append(" Based in ");
|
||||
description.append(location.city_name);
|
||||
if (!location.country_name.empty()) {
|
||||
description.append(", ");
|
||||
description.append(location.country_name);
|
||||
}
|
||||
description.append(".");
|
||||
|
||||
return {name, description};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user