File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ from code_it.task_executor import TaskExecutionConfig
113113llm = VicunaLLM()
114114config = TaskExecutionConfig()
115115print (config)
116- config.install_dependencies = False
116+ config.install_dependencies = True
117117config.execute_code = True
118118code_editor = CodeItTool(build_llama_base_llm, config)
119119
@@ -127,17 +127,12 @@ agent = initialize_agent(
127127
128128agent.run(
129129 """
130-
131130Remember to use the following format:
132131Action: <>
133132Action Input:
134133<>
135134
136- Question: The endpoint https://api.chucknorris.io/jokes/random returns a joke about Chuck Norries
137-
138- 1. Write a python Program that fetches a joke from this endpoint.
139- 2. Extract the joke from the response. Access the 'value' in the JSON to extract it.
140- 3. Prints the joke to the screen.
135+ Question: Extract a joke from https://api.chucknorris.io/jokes/random - access the key 'value' from the returned JSON.
141136"""
142137)
143138```
You can’t perform that action at this time.
0 commit comments