File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/vertexai/src/requests Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ describe('request methods', () => {
112112 ) ;
113113 it ( 'adds client headers' , async ( ) => {
114114 const headers = await getHeaders ( fakeUrl ) ;
115- expect ( headers . get ( 'x-goog-api-client' ) ) . to . include ( 'gl-js/ fire/' ) ;
115+ expect ( headers . get ( 'x-goog-api-client' ) ) . to . match (
116+ / g l - j s \/ [ 0 - 9 \. ] + f i r e \/ [ 0 - 9 \. ] + /
117+ ) ;
116118 } ) ;
117119 it ( 'adds api key' , async ( ) => {
118120 const headers = await getHeaders ( fakeUrl ) ;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export class RequestUrl {
7171 */
7272function getClientHeaders ( ) : string {
7373 const loggingTags = [ ] ;
74- loggingTags . push ( `${ LANGUAGE_TAG } /` ) ;
74+ loggingTags . push ( `${ LANGUAGE_TAG } /${ PACKAGE_VERSION } ` ) ;
7575 loggingTags . push ( `fire/${ PACKAGE_VERSION } ` ) ;
7676 return loggingTags . join ( ' ' ) ;
7777}
You can’t perform that action at this time.
0 commit comments