Skip to content

Commit 78bbd0e

Browse files
authored
sync to template (#1)
* try fix max_retries from google call * try fix llm with retry * test set versions for packages * revert testing changes * update readme to match template
1 parent 04ad3c6 commit 78bbd0e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ git clone <repository-url>
6262

6363
You're ready to start developing your chat function. Head over to the [Development](#development) section to learn more.
6464

65-
#### 4. Update the README
65+
#### 4. Deploy the chat function
66+
67+
You will have to add your API key and LLM model name into the Github repo settings. Under `Secrets and variables/Actions`: the API key must be added as a secret and the LLM model must be added as a variable.
68+
69+
You must ensure the same namings as in your `.env` file. So, make sure to update the `.github/{dev and main}.yml` files with the correct parameter names.
70+
71+
#### 5. Update the README
6672

6773
In the `README.md` file, change the title and description so it fits the purpose of your chat function.
6874

src/module.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import time
22
from typing import Any
3-
from lf_toolkit.chat import ChatResult as Result, ChatParams as Params
3+
from lf_toolkit.chat.result import ChatResult as Result
4+
from lf_toolkit.chat.params import ChatParams as Params
45

56
try:
67
from .agents.utils.parse_json_context_to_prompt import parse_json_to_prompt

0 commit comments

Comments
 (0)