Skip to content

Commit c7ae835

Browse files
committed
fix: Provider
1 parent e47abb8 commit c7ae835

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/pytgpt/opengpt/main.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,15 @@ def __init__(
4343
self.stream_chunk_size = 64
4444
self.timeout = timeout
4545
self.last_response = {}
46-
self.assistant_id = "d50a5d6c-2598-437b-940e-e6918d19810c"
46+
self.assistant_id = "bca37014-6f97-4f2b-8928-81ea8d478d88"
4747
self.authority = "opengpts-example-vz4y4ooboq-uc.a.run.app"
4848

49-
self.uuid = uuid4().__str__()
50-
5149
self.headers = {
5250
"authority": self.authority,
5351
"accept": "text/event-stream",
5452
"accept-language": "en-US,en;q=0.7",
5553
"cache-control": "no-cache",
5654
"content-type": "application/json",
57-
"cookie": f"opengpts_user_id={self.uuid}",
5855
"origin": "https://opengpts-example-vz4y4ooboq-uc.a.run.app",
5956
"pragma": "no-cache",
6057
"referer": "https://opengpts-example-vz4y4ooboq-uc.a.run.app/",
@@ -138,6 +135,11 @@ def ask(
138135
)
139136

140137
session.headers.update(self.headers)
138+
session.headers.update(
139+
dict(
140+
cookie=f"opengpts_user_id={uuid4().__str__()}",
141+
)
142+
)
141143
payload = {
142144
"input": [
143145
{

0 commit comments

Comments
 (0)