WASHINGTON (AP) _ James Daniel Theberge, 57, a former U.S. ambassador to Chile and Nicaragua who also worked as a CIA consultant, professor and author, died after suffering a heart attack while on vacation in Jamaica. He was 57.

Theberge died Wednesday in Montego Bay, The Washington Post reported in Saturday's editions.

The Oceanside, N.Y. native who was educated at Columbia University, Oxford University in England, Harvard University and Heidelberg University in West Germany, was ambassador to Nicaragua from 1975 to 1977 and ambassador to Chile from 1982 to 1985.

Theberge, who lived in Washington, most recently had been president of CORE International, an international management consulting firm. He was a member of the CIA's central review panel and an adviser to Vice President George Bush on drug trafficking.

Previously, he had worked as an economic adviser at the U.S. Embassy in Argentina from 1961 to 1964, special adviser to the secretary of the Treasury in 1966, senior economist for the Inter-American Development Bank from 1966 to1969 and as a special adviser to the Department of Defense from 1981 to 1982.

He directed the Latin American and Hispanic studies at the Center for Strategic and International Studies - formerly associated with Georgetown University - from 1970 to 1975, and taught at St. Anthony's and St. Peter's Colleges in England, the University of California at Los Angeles and at universities in Argentina and Brazil.

The numerous books written or edited by Theberge include ''Reflections of a Diplomat,'' published in 1985.

Theberge also was chairman of the National Council on Latin America and senior counselor of the Atlantic Council of the United States.

His survivors include his wife, Giselle Fages Theberge, and three sons, James Christopher, John Paul and Alexander Leonard, all of Washington.