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

openai callback #17

Closed
stoneLee81 opened this issue Jun 24, 2023 · 3 comments
Closed

openai callback #17

stoneLee81 opened this issue Jun 24, 2023 · 3 comments

Comments

@stoneLee81
Copy link

我从向量数据库根据query拿到了similarity_search的文档,我想通过类似langchain的这样函数,
with get_openai_callback() as cb:
print(chain.run(input_documents=docs, question=query))
print(cb)
传递给openai的大模型,这个可以在这个项目实现么?

@HamaWhiteGG
Copy link
Owner

Callback is not supported at the moment.

@fmatar
Copy link

fmatar commented Jun 24, 2023

Is there a plan to do it?

@HamaWhiteGG
Copy link
Owner

Yes, I will implement it next month.

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

No branches or pull requests

3 participants