|
@@ -89,11 +89,12 @@ func (k *Kimi) GetName() string {
|
|
|
return "kimi"
|
|
|
}
|
|
|
|
|
|
-func (k *Kimi) NewChat(ctx context.Context) (llm.Chat, error) {
|
|
|
+func (k *Kimi) NewChat(ctx context.Context, user *llm.UserContext) (llm.Chat, error) {
|
|
|
c := &Chat{
|
|
|
- ai: k,
|
|
|
- Page: k.browser.Context(ctx).MustIncognito().MustPage(),
|
|
|
- qaSingle: make(chan bool),
|
|
|
+ ai: k,
|
|
|
+ userContext: user,
|
|
|
+ Page: k.browser.Context(ctx).MustIncognito().MustPage(),
|
|
|
+ qaSingle: make(chan bool),
|
|
|
}
|
|
|
wait := c.Page.MustWaitNavigation()
|
|
|
|