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

chore(weave): ChatCompletion not imported #2741

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

gtarpenning
Copy link
Member

Description

Causes:

Traceback (most recent call last):
  File "/Users/griffin/.pyenv/versions/weave-python-service/bin/programmer", line 8, in <module>
    sys.exit(main())
  File "/Users/griffin/.pyenv/versions/3.10.8/envs/weave-python-service/lib/python3.10/site-packages/programmer/programmer.py", line 199, in main
    programmer()
  File "/Users/griffin/.pyenv/versions/3.10.8/envs/weave-python-service/lib/python3.10/site-packages/programmer/programmer.py", line 194, in programmer
    session(agent, state)
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 575, in wrapper
    res, _ = _do_call(
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 393, in _do_call
    execute_result = _execute_call(
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 309, in _execute_call
    handle_exception(e)
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 307, in _execute_call
    res = func(*args, **kwargs)
  File "/Users/griffin/.pyenv/versions/3.10.8/envs/weave-python-service/lib/python3.10/site-packages/programmer/programmer.py", line 100, in session
    result = agent.run(agent_state)
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 575, in wrapper
    res, _ = _do_call(
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 393, in _do_call
    execute_result = _execute_call(
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 309, in _execute_call
    handle_exception(e)
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 307, in _execute_call
    res = func(*args, **kwargs)
  File "/Users/griffin/.pyenv/versions/3.10.8/envs/weave-python-service/lib/python3.10/site-packages/programmer/agent.py", line 140, in run
    state = self.step(state)
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 575, in wrapper
    res, _ = _do_call(
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 393, in _do_call
    execute_result = _execute_call(
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 309, in _execute_call
    handle_exception(e)
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/trace/op.py", line 307, in _execute_call
    res = func(*args, **kwargs)
  File "/Users/griffin/.pyenv/versions/3.10.8/envs/weave-python-service/lib/python3.10/site-packages/programmer/agent.py", line 114, in step
    response = wrapped_stream.final_response()
  File "/Users/griffin/Desktop/core/services/weave-python/weave-public/weave/flow/chat_util.py", line 105, in final_response
    return ChatCompletion(
NameError: name 'ChatCompletion' is not defined

@gtarpenning gtarpenning marked this pull request as ready for review October 18, 2024 19:52
@gtarpenning gtarpenning requested a review from a team as a code owner October 18, 2024 19:52
@gtarpenning gtarpenning enabled auto-merge (squash) October 18, 2024 19:54
@circle-job-mirror
Copy link

@gtarpenning gtarpenning merged commit fbee7c3 into master Oct 18, 2024
104 checks passed
@gtarpenning gtarpenning deleted the griffin/small-weave-type-issue branch October 18, 2024 20:01
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants