Where is dg defined? How do the tests work, especially for ones interacting with the…
- User
Where is dg defined? How do the tests work, especially for ones interacting with the Discord API?
Assistant
The variable
dgis defined in theTestMainfunction in thediscord_test.gofile. It is a*Sessionobject that is created using theNewfunction from thediscordgopackage, passing in theenvBotTokenorenvOAuth2Tokenenvironment variable as the token.goif d, err := New(envBotToken); err == nil { dgBot = d } if envOAuth2Token == "" { envOAuth2Token = os.Getenv("DGU_TOKEN") } if d, err := New(envOAuth2Token); err == nil { dg = d }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.