MCPcopy Create free account
hub / github.com/AmberSahdev/Open-Interface / get_instructions_for_objective

Method get_instructions_for_objective

app/models/gpt4v.py:10–14  ·  view source on GitHub ↗
(self, original_user_request: str, step_num: int = 0)

Source from the content-addressed store, hash-verified

8
9class GPT4v(Model):
10 def get_instructions_for_objective(self, original_user_request: str, step_num: int = 0) -> dict[str, Any]:
11 message: list[dict[str, Any]] = self.format_user_request_for_llm(original_user_request, step_num)
12 llm_response = self.send_message_to_llm(message)
13 json_instructions: dict[str, Any] = self.convert_llm_response_to_json_instructions(llm_response)
14 return json_instructions
15
16 def format_user_request_for_llm(self, original_user_request, step_num) -> list[dict[str, Any]]:
17 base64_img: str = Screen().get_screenshot_in_base64()

Callers

nothing calls this directly

Tested by

no test coverage detected