Skip to content

Commit c245d90

Browse files
committed
fix: rename shenanigans
1 parent 6b630df commit c245d90

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

src/dreamscape/AI/AIRatings.gd

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ extends Node
44
signal ratings_retrieved(ratings_dict, evaluating)
55

66
#const TELEMETRY_URI := "http://dbzer0.com"
7-
const TELEMETRY_URI := "http://dbzer0.com"
87
const TELEMETRY_PORT := 8000
8+
const TELEMETRY_URI := "http://127.0.0.1"
99

1010
# In case this node is going to be used to submit stories,
1111
# we need to know the encounter to submit
@@ -35,6 +35,7 @@ func submit(classification: int):
3535
"type": encounter.type,
3636
"classification": classification,
3737
"client_id": cfc.game_settings['Client UUID'],
38+
"kai_instance": "%s:%s" % [cfc.game_settings.get("kai_url",'http://127.0.0.1'),cfc.game_settings.get("kai_port", 5000)]
3839
}
3940
var ret = _initiate_rest(HTTPClient.METHOD_POST, "/generation/", data)
4041

src/dreamscape/AI/AIStories.gd

+4
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ func _init_koboldai_story() -> void:
184184
if not sp:
185185
push_warning("KoboldAI instance not found")
186186
return
187+
var sp_to_model:= {
188+
"surrealism_and_dreams_2.7B.zip": "KoboldAI/fairseq-dense-2.7B-Nerys",
189+
"surrealism_and_dreams_13B.zip": "KoboldAI/fairseq-dense-13B-Nerys"
190+
}
187191
if sp.has("value"):
188192
if sp.value != "hypnagonia_dreams_and_surrealism.zip":
189193
var ret = KoboldAI.put_soft_prompt()

src/dreamscape/AI/KoboldAI.gd

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ static func post_gui_story(prompt: String):
8181
static func _initiate_rest(method, endpoint: String, data: Dictionary = {}):
8282
var http = HTTPClient.new()
8383
# Connect to host/port.
84-
var err = http.connect_to_host(cfc.game_settings.kai_url, cfc.game_settings.kai_port)
84+
var err = http.connect_to_host(
85+
cfc.game_settings.get("kai_url",'http://127.0.0.1'),
86+
cfc.game_settings.get("kai_port", 5000))
8587
# Make sure connection was OK.
8688
assert(err == OK)
8789
# Wait until resolved and connected.

0 commit comments

Comments
 (0)