Spaces:
Runtime error
Runtime error
workflows(suggest_headlines): Update temperate to 0.8
Browse files
workflows/til/suggest_headlines_v2.py
CHANGED
|
@@ -40,7 +40,7 @@ class SuggestHeadlinesV2():
|
|
| 40 |
|
| 41 |
def _get_til_headline(self) -> Response:
|
| 42 |
prompt = hub.pull("til_suggest_headline")
|
| 43 |
-
llm = ChatOpenAI(model=os.environ['OPENAI_MODEL'], temperature=0.
|
| 44 |
parser = JsonOutputParser(pydantic_object=HeadlineResults)
|
| 45 |
|
| 46 |
chain = (prompt | llm | parser).with_config({
|
|
|
|
| 40 |
|
| 41 |
def _get_til_headline(self) -> Response:
|
| 42 |
prompt = hub.pull("til_suggest_headline")
|
| 43 |
+
llm = ChatOpenAI(model=os.environ['OPENAI_MODEL'], temperature=0.8)
|
| 44 |
parser = JsonOutputParser(pydantic_object=HeadlineResults)
|
| 45 |
|
| 46 |
chain = (prompt | llm | parser).with_config({
|