-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved logic related to passing props to custom adapters
- Loading branch information
Showing
34 changed files
with
485 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import {ChatAdapterBuilder} from './hf/builder/builder'; | ||
import {ChatAdapterBuilderImpl} from './hf/builder/builderImpl'; | ||
|
||
export const createChatAdapter = <AiMsg>(): ChatAdapterBuilder<AiMsg> => new ChatAdapterBuilderImpl<AiMsg>(); | ||
export const createChatAdapter = <AiMsg = string>(): ChatAdapterBuilder<AiMsg> => { | ||
return new ChatAdapterBuilderImpl<AiMsg>(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/js/langchain/src/langserve/builder/createChatAdapter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import {ChatAdapterBuilder} from './builder'; | ||
import {LangServeAdapterBuilderImpl} from './builderImpl'; | ||
|
||
export const createChatAdapter = function <AiMsg>(): ChatAdapterBuilder<AiMsg> { | ||
export const createChatAdapter = <AiMsg = string>(): ChatAdapterBuilder<AiMsg> => { | ||
return new LangServeAdapterBuilderImpl(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
packages/js/nlbridge/src/nlbridge/chatAdapter/builder/createChatAdapter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import {ChatAdapterBuilder} from './builder'; | ||
import {ChatAdapterBuilderImpl} from './builderImpl'; | ||
|
||
export const createChatAdapter = <AiMsg = string>(): ChatAdapterBuilder<AiMsg> => new ChatAdapterBuilderImpl<AiMsg>(); | ||
export const createChatAdapter = <AiMsg = string>(): ChatAdapterBuilder<AiMsg> => { | ||
return new ChatAdapterBuilderImpl<AiMsg>(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.