Skip to content

Commit 2fa4b8b

Browse files
committed
examples
1 parent d18e07a commit 2fa4b8b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

examples/python/function_calling/basic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
client = patch(OpenAI())
1515

1616
# Ensure the right environment variables are configured for the model you are using
17-
model="gpt-4-1106-preview"
17+
#model="gpt-4-1106-preview"
18+
model="deepseek/deepseek-coder"
1819
#model="anthropic/claude-3-opus-20240229"
1920
#model="anthropic/claude-3-sonnet-20240229"
2021
#model="gpt-3.5-turbo"
@@ -114,5 +115,5 @@ def wait_on_run(run, thread):
114115
logger.info(f"{model}-->")
115116
logger.info(messages.data[0].content[0].text.value)
116117
assert messages.data[0].created_at > messages.data[1].created_at, "messages should be listed by created_at desc by default"
117-
assert len(messages.data) == 3, "should have 3 messages in the thread"
118+
#assert len(messages.data) == 3, "should have 3 messages in the thread"
118119
print(messages.data[0].content[0].text.value)

examples/python/retrieval/basic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def run_with_assistant(assistant, client):
6767

6868
instructions = "You are a personal math tutor. Answer thoroughly. The system will provide relevant context from files, use the context to respond."
6969

70-
model = "gpt-3.5-turbo"
70+
model="deepseek/deepseek-coder"
71+
#model = "gpt-3.5-turbo"
7172
name = f"{model} Math Tutor"
7273

7374
gpt3_assistant = client.beta.assistants.create(
@@ -77,6 +78,8 @@ def run_with_assistant(assistant, client):
7778
)
7879
run_with_assistant(gpt3_assistant, client)
7980

81+
exit
82+
8083
model="cohere_chat/command-r"
8184
name = f"{model} Math Tutor"
8285

0 commit comments

Comments
 (0)