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

fix(conversation): allow changes to systemPrompt, inferenceConfig, aiModel to be hotswapped #2923

Merged
merged 3 commits into from
Oct 7, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
prettier
atierian committed Oct 4, 2024
commit 691f38bed6413b9af68074cf06ecb6b49f4ec68b
Original file line number Diff line number Diff line change
@@ -83,19 +83,19 @@ const assertResolverSnapshot = (routeName: string, resources: DeploymentResource
expect(resolverCode).toBeDefined();
expect(resolverCode).toMatchSnapshot();

const authFn = resources?.resolvers[`Mutation.${routeName}.auth.js`]
const authFn = resources?.resolvers[`Mutation.${routeName}.auth.js`];
expect(authFn).toBeDefined();
expect(authFn).toMatchSnapshot();

const verifySessionOwnerFn = resources?.resolvers[`Mutation.${routeName}.verify-session-owner.js`]
const verifySessionOwnerFn = resources?.resolvers[`Mutation.${routeName}.verify-session-owner.js`];
expect(verifySessionOwnerFn).toBeDefined();
expect(verifySessionOwnerFn).toMatchSnapshot();

const writeMessageToTableFn = resources?.resolvers[`Mutation.${routeName}.write-message-to-table.js`]
const writeMessageToTableFn = resources?.resolvers[`Mutation.${routeName}.write-message-to-table.js`];
expect(writeMessageToTableFn).toBeDefined();
expect(writeMessageToTableFn).toMatchSnapshot();

const invokeLambdaFn = resources?.resolvers[`Mutation.${routeName}.invoke-lambda.js`]
const invokeLambdaFn = resources?.resolvers[`Mutation.${routeName}.invoke-lambda.js`];
expect(invokeLambdaFn).toBeDefined();
expect(invokeLambdaFn).toMatchSnapshot();
};
Original file line number Diff line number Diff line change
@@ -9,9 +9,7 @@ import path from 'path';
*
* @returns {MappingTemplateProvider} An object containing request and response MappingTemplateProviders.
*/
export const initMappingTemplate = (
ctx: TransformerContextProvider,
): MappingTemplateProvider => {
export const initMappingTemplate = (ctx: TransformerContextProvider): MappingTemplateProvider => {
const substitutions = {
GRAPHQL_API_ENDPOINT: ctx.api.graphqlUrl,
};