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[patch]: Release 0.2.4 #6129

Merged
merged 1 commit into from
Jul 18, 2024
Merged
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
2 changes: 1 addition & 1 deletion libs/langchain-openai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langchain/openai",
"version": "0.2.3",
"version": "0.2.4",
"description": "OpenAI integrations for LangChain.js",
"type": "module",
"engines": {

Unchanged files with check annotations Beta

/**
* Install a internal template to a given `root` directory.
*/
export async function installTemplate({ appName, root }: any) {

Check warning on line 10 in libs/create-langchain-integration/helpers/templates.ts

GitHub Actions / Check linting

Unexpected any. Specify a different type
/**
* Copy the template files to the target directory.
*/
* Update the package.json scripts.
*/
const packageJsonFile = path.join(root, "package.json");
const packageJson: any = JSON.parse(

Check warning on line 28 in libs/create-langchain-integration/helpers/templates.ts

GitHub Actions / Check linting

Unexpected any. Specify a different type
await fs.readFile(packageJsonFile, "utf8")
);
} from "@langchain/core/language_models/chat_models";
import { BaseMessageChunk } from "@langchain/core/messages";
export type RecordStringAny = Record<string, any>;

Check warning on line 7 in libs/langchain-standard-tests/src/base.ts

GitHub Actions / Check linting

Unexpected any. Specify a different type
export type BaseChatModelConstructor<
CallOptions extends BaseChatModelCallOptions = BaseChatModelCallOptions,
],
});
const prompt = getBufferString([humanMessage]);
const llmKey = model._getSerializedCacheKeyParametersForCall({} as any);

Check warning on line 497 in libs/langchain-standard-tests/src/integration_tests/chat_models.ts

GitHub Actions / Check linting

Unexpected any. Specify a different type
// Invoke the model to trigger a cache update.
await model.invoke([humanMessage]);
try {
await this.testInvoke();
} catch (e: any) {

Check warning on line 534 in libs/langchain-standard-tests/src/integration_tests/chat_models.ts

GitHub Actions / Check linting

Unexpected any. Specify a different type
allTestsPassed = false;
console.error("testInvoke failed", e);
}
try {
await this.testStream();
} catch (e: any) {

Check warning on line 541 in libs/langchain-standard-tests/src/integration_tests/chat_models.ts

GitHub Actions / Check linting

Unexpected any. Specify a different type
allTestsPassed = false;
console.error("testStream failed", e);
}
try {
await this.testBatch();
} catch (e: any) {

Check warning on line 548 in libs/langchain-standard-tests/src/integration_tests/chat_models.ts

GitHub Actions / Check linting

Unexpected any. Specify a different type
allTestsPassed = false;
console.error("testBatch failed", e);
}
try {
await this.testConversation();
} catch (e: any) {

Check warning on line 555 in libs/langchain-standard-tests/src/integration_tests/chat_models.ts

GitHub Actions / Check linting

Unexpected any. Specify a different type
allTestsPassed = false;
console.error("testConversation failed", e);
}
try {
await this.testUsageMetadata();
} catch (e: any) {

Check warning on line 562 in libs/langchain-standard-tests/src/integration_tests/chat_models.ts

GitHub Actions / Check linting

Unexpected any. Specify a different type
allTestsPassed = false;
console.error("testUsageMetadata failed", e);
}
try {
await this.testUsageMetadataStreaming();
} catch (e: any) {

Check warning on line 569 in libs/langchain-standard-tests/src/integration_tests/chat_models.ts

GitHub Actions / Check linting

Unexpected any. Specify a different type
allTestsPassed = false;
console.error("testUsageMetadataStreaming failed", e);
}