Spaces:
Running
Running
Update custom_llm.py
Browse files- custom_llm.py +2 -2
custom_llm.py
CHANGED
@@ -17,10 +17,10 @@ class CustomLLM(LLM):
|
|
17 |
if stop is not None:
|
18 |
raise ValueError("stop kwargs are not permitted.")
|
19 |
|
20 |
-
response = co.chat(
|
21 |
print(response.text)
|
22 |
|
23 |
-
return f'
|
24 |
|
25 |
@property
|
26 |
def _identifying_params(self):
|
|
|
17 |
if stop is not None:
|
18 |
raise ValueError("stop kwargs are not permitted.")
|
19 |
|
20 |
+
response = co.chat(message=f'{prompt}', max_tokens=1700, temperature=0.9)
|
21 |
print(response.text)
|
22 |
|
23 |
+
return f' {response.text} '
|
24 |
|
25 |
@property
|
26 |
def _identifying_params(self):
|