Chinese Communist Party Chairman Hua Kuo-feng affirmed for the first time in a speech published today his commitment to continued relations with the United States to counter the Soviet threat.

In Hua's most comprehensive statement on foreign policy to date, filling all six pages of the official People's Daily on the second day of U.S. Secretary of State Cyrus Vance's trip here, the Chinese leader repeated Lenin's advice to take "advantage of every, even the smallest, opportunity of gaining a mass ally, even though this ally may be temporary, vacillating, unstable, unreliable and conditional."

This typical Chinese backhanded compliment to the U.S. was followed by a significant upgrading of the Vance talks with an announcement that the nation's No. 3 leader, Vice Premier Teng Hsiao-ping, would meet Vance Wednesday and entertain him at a special dinner at the Summer Palace, the playgound of the old Ching dynasty emperors.

Hua's statement and the introduction of Teng, the only top Chinese leader who has visited the United States, indicated that the Chinese still put great importance on improved ties with Washington despite the impatience they have shown in the last two years of stalled progress.

Up until now the Vance visit has been very low-key, with no publicity in the People's Daily and with the Chinese side represented by Foreign Minister Huang Hua, who is not a member of the decision-making [WORD ILLEGIBLE].

Some American analysts have warned that China might turn to Moscow if, the Carter administration does not recognize Peking quickly, but [WORD ILLEGIBLE] statement seems to make that less likely, at least in the near future.

[WORD ILLEGIBLE] statement appeared principally [WORD ILLEGIBLE] to answer criticism from [WORD ILLEGIBLE] China's long-time ally, of Peking's new dealings with the United States; but it also provides some backhanded encouragement to Vance's slow and cautions approach to full diplomatic relations.

For the first time in his visit here, this morning Vance brought up in his talks with Huang the issue of American diplomatic and military ties to Taiwan, which China insists must end if Peking and Washington are to move closer together. Vance is reportedly seeking a compromise that would let the United States still guarantee the safety of Taiwan in exchange for cooperating with Peking in countering Soviet expansion.

Hua's remarks on U.S. relations [WORD ILLEGIBLE] in his political report to the 11th National Communist Party Congress, [WORD ILLEGIBLE] Aug. 12 but not published in the People's Daily until this morning.

His report emphasized the importance of self-reliance, but added: "At the same time, it is ncessary to win over as many allies as possible," Hua used Lenin's comment on the occasional need to cooperate with bourgeois countries to achieve revolutionary goals as justification for Peking's relations with the United States.

"Those who fail to understand this," Hua quoted Lenin as saying, "fail to understand even a particle of Marxism' or scientific, modern socialism in general."

Hua then concluded: "Both theoretically and practically, this Marxist principle is of enormous and immediate significance to the present-day struggle of the people of the world against hegemonism.

China and United States differ in social system and ideology and there are fundamental differences between them," Hua said.

"The Sino-U.S. Shanghai [WORD ILLEGIBLE] issued in 1972 constitutes the [WORD ILLEGIBLE] the relation between the two [WORD ILLEGIBLE] at present. It states that neither should seek hegemony and that each is opposed to efforts by any other country or group of countries to establish such hegemony," Hua said;

"The relations between the two countries will continue to imporve provided the principles laid down in the communique are carried out in earnest."

In a toast at a welcoming banquet for Vance last night, Huang himself said little about U.S. Chinese relations but referred this guests to Hua's speech.

At the time, American reporter here had seen only a small portion of the speech, reasserting China's demand that United States end its treaty relationships with Taiwan. But the Chinese later made certain that each member of the American press party had a copy of the full, 81-page English text of Hua's speech.

The Lenin quote was used by the late Premier Chou-En-lai to justify his and Chairman Mao Tse-tung's decision to seek an reappearance in this first lengthly statement on foreign affairs by Hua underlines the new chairman's intention to follow the Moa-Chou policy in that particular.

Vance and Huang, along with their aides, met for 2 1/2 hours today at the guesthouse in the western part of the city where Vance is staying.

The secretary completed his lengthy statement on U.S. policy in all the important regions of the world and then began to discuss the Taiwan question.

U.S. officials declined to reveal what was said at the closed sessions. One source said the Chinese asked some questions about U.S. policy in Africa, where they have expressed great concern about Soviet efforts to influence independent black states.

Hua's speech vehemently denounced the Soviet Union as a world peace. It was the kind of hostility often used by Mao in his attacks on Moscow after the Sino-Soviet split of the early 1960s.