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

docs(weave): fix table of contents in Log Audio with Weave notebook a… #3200

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/docs/reference/gen_notebooks/01-intro_notebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ weave.init(PROJECT)

client = OpenAI()
response = client.chat.completions.create(
model="gpt-3.5-turbo-1106",
model="gpt-4o-mini",
messages=[
{
"role": "system",
Expand Down Expand Up @@ -153,7 +153,7 @@ def correct_grammar(user_input):

stripped = strip_user_input(user_input)
response = client.chat.completions.create(
model="gpt-3.5-turbo-1106",
model="gpt-4o-mini",
messages=[
{
"role": "system",
Expand Down Expand Up @@ -198,7 +198,7 @@ def correct_grammar(user_input):

stripped = strip_user_input(user_input)
response = client.chat.completions.create(
model="gpt-3.5-turbo-1106",
model="gpt-4o-mini",
messages=[
{
"role": "system",
Expand Down Expand Up @@ -282,7 +282,7 @@ class OpenAIGrammarCorrector(weave.Model):


corrector = OpenAIGrammarCorrector(
openai_model_name="gpt-3.5-turbo-1106",
openai_model_name="gpt-4o-mini",
system_message="You are a grammar checker, correct the following user input.",
)

Expand All @@ -307,8 +307,8 @@ dataset = weave.Dataset(
},
{"user_input": " I write good ", "expected": "I write well"},
{
"user_input": " GPT-3 is smartest AI model. ",
"expected": "GPT-3 is the smartest AI model.",
"user_input": " GPT-4 is smartest AI model. ",
"expected": "GPT-4 is the smartest AI model.",
},
],
)
Expand All @@ -331,7 +331,7 @@ import weave
weave.init(PROJECT)

corrector = OpenAIGrammarCorrector(
openai_model_name="gpt-3.5-turbo-1106",
openai_model_name="gpt-4o-mini",
system_message="You are a grammar checker, correct the following user input.",
)

Expand Down
Loading
Loading