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

strip not given kwargs for openai #154

Merged
merged 2 commits into from
Apr 25, 2024
Merged

Conversation

wenzhe-log10
Copy link
Collaborator

@wenzhe-log10 wenzhe-log10 commented Apr 25, 2024

repro

from openai import NOT_GIVEN

from log10.load import OpenAI


client = OpenAI()

completion = client.chat.completions.create(
    model="gpt-3.5-turbo",
    messages=[
        {
            "role": "user",
            "content": "tell a joke.",
        },
    ],
    tools=NOT_GIVEN,
    tool_choice=NOT_GIVEN,
)

print(completion.choices[0].message.content)

@wenzhe-log10 wenzhe-log10 force-pushed the wenzhe/fix_type_not_given branch from 381e3b1 to 25ac101 Compare April 25, 2024 22:29
@wenzhe-log10 wenzhe-log10 requested review from nqn and kxtran April 25, 2024 22:39
@wenzhe-log10 wenzhe-log10 force-pushed the wenzhe/fix_type_not_given branch from 715dc83 to acc3089 Compare April 25, 2024 22:57
@wenzhe-log10 wenzhe-log10 force-pushed the wenzhe/fix_type_not_given branch from acc3089 to 291f607 Compare April 25, 2024 23:10
@wenzhe-log10 wenzhe-log10 merged commit 209cf6c into main Apr 25, 2024
1 check passed
@wenzhe-log10 wenzhe-log10 deleted the wenzhe/fix_type_not_given branch April 25, 2024 23:13
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