#muse
1 messages · Page 1 of 1 (latest)
so even without muse enabled, there's a prompt you can find in the behavior package
and it explicitly calls out a bunch of things, but still has to go clean it up later lmao
also it's apparently just using gpt
wait shit i forgot i was gonna show this and already deleted the project and editor lmao
one sec...
yeah it's just chatgpt lol
/*
* Muse API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.2.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
//just in case the LLM removes this namespace, we add it back
if (!output.Contains("using Action = Unity.Behavior.Action;"))
{
output = output.Insert(0,"using Action = Unity.Behavior.Action;\n");
}
string date = System.DateTime.Now.ToString("yyyy-MM-dd");
string legalHeader = $"// {date} AI-Tag\n" +
"// This was created with assistance from Muse, a Unity Artificial Intelligence product.\n";
output = output.Insert(0,legalHeader);
// A problem started popping up when we switch backend LLM which is causing markdown tags to appear
// when they should not. This line sanitizes the output to remove them. This should stop some failures
// when the AI does not generate the expected output
output = SanitizeOutput(output);
@woven axle .. are they using their own api key or are you expected to add a key as well. ?
Also to me is kinda sad they had to mix this crap with just having a goddam Behaviour Tree lol
im not sure, i found an api key hardcoded but maybe it's just for demo or smth
internal class MuseChatModel : ILanguageModel
{
private const string MuseEndpoint = "https://rest-api.prd.azure.muse.unity.com";
private const string DefaultApiAccessToken = "f5vv0wIGD-iJB3ulhlr5knNaywrccISH_PTOLopnjUk";
#if UNITY_EDITOR
static Configuration CreateConfig()
{
Configuration config = new()
{
BasePath = MuseEndpoint
};
config.ApiKey.Add("access_token", DefaultApiAccessToken);
config.DefaultHeaders.Add("Authorization", $"Bearer {CloudProjectSettings.accessToken}");
return config;
}
#endif
is this actually gone in the newest behavior ? I want to create behavior trees soon but without this gen ai crap