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

setup: fix mac os x toolkit local install #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

francisco-perez-sorrosal

Without the versions added in the commit, the make first-run command failed

@CLAassistant
Copy link

CLAassistant commented May 10, 2024

CLA assistant check
All committers have signed the CLA.

@francisco-perez-sorrosal
Copy link
Author

After these changes, I can exercise finally the toolkit successfully in my mac:

╰─❯ $ curl --location 'http://localhost:8000/chat-stream' --header 'User-Id: test-user' --header 'Content-Type: application/json' --data '{"message": "hey"}'


data: {"event": "stream-start", "data": {"is_finished": false, "generation_id": "41296b9b-7bc5-419a-b4ed-163bc0d4ef73", "conversation_id": null}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": "Hey"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " there"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": "!"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " How"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": "'s"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " it"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " going"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": "?"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " I"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " hope"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " you"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": "'re"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " having"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " a"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " fantastic"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " day"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": "!"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " Is"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " there"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " anything"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " you"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": "'d"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " like"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " to"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " talk"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " about"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " or"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " any"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " questions"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " you"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " have"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " in"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " mind"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": "?"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " I"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": "'m"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " here"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " to"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " help"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " and"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " provide"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " some"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " enjoyable"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " and"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " informative"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": " conversations"}}

data: {"event": "text-generation", "data": {"is_finished": false, "text": "."}}

data: {"event": "stream-end", "data": {"response_id": "75598b24-7307-499f-955f-696ffe0e92c7", "generation_id": "41296b9b-7bc5-419a-b4ed-163bc0d4ef73", "conversation_id": "ce219a20-42e4-4aec-a06c-28563d6712da", "text": "Hey there! How's it going? I hope you're having a fantastic day! Is there anything you'd like to talk about or any questions you have in mind? I'm here to help and provide some enjoyable and informative conversations.", "citations": [], "documents": [], "search_results": [], "search_queries": [], "tool_calls": [], "finish_reason": "COMPLETE"}}

@scott-cohere
Copy link
Contributor

scott-cohere commented May 11, 2024

@francisco-perez-sorrosal thanks for doing this! left one comment :)

docker-compose.yml Outdated Show resolved Hide resolved
@francisco-perez-sorrosal
Copy link
Author

Hey, sorry for the delay in doing this. Updated the main branch, rebased my commits, squashed them into a single one and signed it. Hope is what you need! Thanks!

@yodamad
Copy link

yodamad commented Jun 3, 2024

I had to remove completly psycopg2 on my side otherwise it fails
psycopg2-binary seems to be enough

@tianjing-li
Copy link
Collaborator

@francisco-perez-sorrosal pytest is failing because you need to update the lock file. run poetry lock

@tianjing-li tianjing-li closed this Jun 6, 2024
@tianjing-li tianjing-li reopened this Jun 6, 2024
 - Without these versions, the make first-run command failed
 - Add psycopg2 deps also to regular poetry deps to avoid backend docker compose fail

Signed-off-by: Francisco Perez-Sorrosal <fperezsorrosal@gmail.com>
@francisco-perez-sorrosal
Copy link
Author

Done! Just, updated poetry.lock

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.

None yet

5 participants