fix openai import
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
module openai
|
||||
|
||||
import freeflowuniverse.herolib.core.playbook
|
||||
|
||||
// run heroscript starting from path, text or giturl
|
||||
//```
|
||||
// !!OpenAIclient.define
|
||||
@@ -13,7 +15,7 @@ pub fn heroplay(mut plbook playbook.PlayBook) ! {
|
||||
instance := p.get_default('instance', 'default')!
|
||||
// cfg.keyname = p.get('keyname')!
|
||||
mut cl := get(instance,
|
||||
openaikey: p.get('openaikey')!
|
||||
openaikey: p.get('openaikey')!
|
||||
description: p.get_default('description', '')!
|
||||
)!
|
||||
cl.config_save()!
|
||||
|
||||
Reference in New Issue
Block a user