Skip to content

Commit

Permalink
test: Update model used in OpenAI tests to gpt-4o-mini (davidmigloz#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmigloz authored and KennethKnudsen97 committed Oct 1, 2024
1 parent 910aec1 commit 3739397
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 155 deletions.
3 changes: 0 additions & 3 deletions packages/langchain_openai/test/agents/tools_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ void main() {
final llm = ChatOpenAI(
apiKey: openaiApiKey,
defaultOptions: const ChatOpenAIOptions(
model: 'gpt-4-turbo',
temperature: 0,
),
);
Expand All @@ -46,7 +45,6 @@ void main() {
final llm = ChatOpenAI(
apiKey: openaiApiKey,
defaultOptions: const ChatOpenAIOptions(
model: 'gpt-4-turbo',
temperature: 0,
),
);
Expand Down Expand Up @@ -135,7 +133,6 @@ void main() {
final model = ChatOpenAI(
apiKey: openaiApiKey,
defaultOptions: const ChatOpenAIOptions(
model: 'gpt-4-turbo',
temperature: 0,
),
).bind(ChatOpenAIOptions(tools: [tool]));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ Question: {question}
final chatModel = ChatOpenAI(
apiKey: openaiApiKey,
defaultOptions: const ChatOpenAIOptions(
model: 'gpt-4o-mini',
temperature: 0,
),
);
Expand Down
111 changes: 0 additions & 111 deletions packages/langchain_openai/test/chat_models/anyscale_test.dart

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ void main() {

test('Test countTokens messages', () async {
final models = [
'gpt-3.5-turbo-16k-0613',
'gpt-4-0314',
'gpt-4-0613',
];
Expand Down Expand Up @@ -328,7 +327,7 @@ void main() {
final llm = ChatOpenAI(
apiKey: openaiApiKey,
defaultOptions: const ChatOpenAIOptions(
model: 'gpt-4-turbo',
model: defaultModel,
temperature: 0,
seed: 12345,
),
Expand Down Expand Up @@ -455,7 +454,7 @@ void main() {
final chatModel = ChatOpenAI(
apiKey: openaiApiKey,
defaultOptions: const ChatOpenAIOptions(
model: 'gpt-4-turbo',
model: defaultModel,
),
);

Expand All @@ -482,7 +481,7 @@ void main() {
final chatModel = ChatOpenAI(
apiKey: openaiApiKey,
defaultOptions: const ChatOpenAIOptions(
model: 'gpt-4-turbo',
model: defaultModel,
),
);

Expand Down

This file was deleted.

0 comments on commit 3739397

Please sign in to comment.