Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove function calling #102

Merged

Conversation

nalbion
Copy link
Contributor

@nalbion nalbion commented Sep 22, 2023

See also notes in #99

@nalbion nalbion changed the base branch from main to debugging_ipc September 22, 2023 09:23
@nalbion nalbion marked this pull request as ready for review September 25, 2023 00:37
@@ -51,7 +51,7 @@ https://github.com/Pythagora-io/gpt-pilot/assets/10895136/0495631b-511e-451b-93d
# 🔌 Requirements


- **Python**
- **Python >= 3.10**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why python 3.10? I am using 3.9.6 on my current macbook and it works fine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran into an (minor) issue with typing and figured that Python 3.10 came out in 2021 so it would not be likely to be used anymore.

utils/function_calling.py:5: in <module>
    JsonType = str | int | float | bool | None | list["JsonType"] | dict[str, "JsonType"]
E   TypeError: unsupported operand type(s) for |: 'type' and 'type'


# TODO: I don't think llm_response would ever be 'DONE'?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, once it is done it will return 'INSTALLED' which is defined in 'development/env_setup/install_next_technology.prompt'. This should be updated and maybe best way would be to put it in const/llm.py with other llm constants

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but also have in mind that this feature is disabled at the moment (return on line 312) so it is not important to fix it now

cli_response, response = execute_command(convo.agent.project, command, timeout)
if response is None:
response = convo.send_message('dev_ops/ran_command.prompt',
# TODO: Prompt mentions `command` could be `INSTALLED` or `NOT_INSTALLED`, where is this handled?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for devops agent while installing tech dependencies response will be INSTALLED or NOT_INSTALLED but for developer agent, or in other words commands executed while coding eg. npm run start, it can return DONE or NEEDS_DEBUGGING.

return

model: str = gpt_data['model']
is_llama = 'llama' in model or 'anthropic' in model
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it different for llama compared to all other llms, or do we have to add implementation for each llm individually?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to rename this to is_instruct. Wrapping in [INST] seemed to have a negative affect for some models.

model: str = gpt_data['model']
is_llama = 'llama' in model or 'anthropic' in model

# if model == 'gpt-4':
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this commented part here?

@nalbion
Copy link
Contributor Author

nalbion commented Sep 26, 2023

I still need to fix the colored vs fabulous issue

Need to fix prompts for GPT-4
@LeonOstrez LeonOstrez merged commit c9afca2 into Pythagora-io:debugging_ipc Sep 26, 2023
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants